In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-15 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/03 Report--
This article mainly explains "the method tutorial of deleting FTP virtual directory using Iisftpdr.vbs", interested friends may wish to have a look. The method introduced in this paper is simple, fast and practical. Let's let the editor take you to learn the tutorial on how to delete a FTP virtual directory using Iisftpdr.vbs.
Apply to: Windows Server 2003, Windows Server 2003 R2, Windows Server 2003 with SP1
You can use the command line script iisftpdr.vbs (stored in systemroot\ System32) to delete the FTP virtual directory on a local or remote computer running Windows Server 2003 family members with IIS 6.0. This command does not create or destroy content, but simply deletes the virtual directory structure.
You should not use this command to delete FTP sites because they may still be listed but partially disabled. To delete a FTP site, use Iisftp.vbs to delete the FTP site.
Important matters
Only members of the Administrators group on the local computer can run scripts and executables. As a security best practice, log on to the computer using an account that is not part of the Administrators group, and then use the runas command to run scripts and executables as an administrator. At the command prompt, type runas / profile / User:MyComputer\ Administrator cmd, open a command window with administrator privileges, and then type cscript.exeScriptName (including the full path to the script and any parameters).
This topic includes the following information:
Syntax: the order in which you must type a command and any parameters and options that follow it.
Parameter: the value assigned to the variable in the command.
Example: sample code and a description of the result.
Grammar
Iisftpdr / delete FTPSite [VirtualPath] / Name [/ s Computer [/ u [Domain\] User / p Password]]
Parameters.
FTPSite
Necessary. Specify the descriptive name of the FTP site or the configuration database path.
VirtualPath
Specifies the path to the virtual directory within the FTP site. This parameter is required when the virtual directory is not in the root directory of the FTP site.
Name
Necessary. Specify a name for the virtual directory. The virtual directory name does not have to be unique. However, when a FTP site includes virtual and physical directories with the same name, the physical directory will not be visible on the Internet.
/ s Computer
Runs the script on the specified remote computer. Type the computer name or IP address without a backslash. The default is the local computer.
/ u [Domain\] User
Runs the script with the privileges of the specified user account. The account must be a member of the Administrators group on the remote computer. By default, the script runs with the permissions of the current user on the local computer.
/ p Password
Specifies the password for the user account specified in the / u parameter.
Example
Example 1:
The following example deletes the "Insurance" virtual directory on the "Finance" FTP site on the local computer. This deletes not only the directory, but also all physical and virtual subdirectories.
The copy code is as follows:
Iisftpdr / delete Finance/Insurance
Because the default computer is the local computer and the user running the command must log in as an administrator, the / s, / u, and / p parameters are not required in this case.
In response, iisftpdr displays the following message:
Connecting to server... Done.
FTP directory Finance/Insurance has been DELETED.
Example 2:
The following example deletes the "Updates" virtual subdirectory on the "Finance" FTP site of the remote computer. This command uses the "Finance" FTP site configuration database path "MSFTPSVC/2109607139" to identify the FTP site. It represents the virtual path "Finance/Insurance" by appending it to the name of the FTP site.
The example also uses the / s parameter to identify the remote computer and the / u and / p parameters to run iisftpdr.vbs with the user's administrator account privileges.
The copy code is as follows:
Iisftpdr / delete MSFTPSVC/2109607139/Insurance/Updates / s SVR01 / u Admin01 / p p@SSw#rD2
In response, iisftpdr displays the following message:
Connecting to server... Done.
FTP directory Finance/Insurance/Updates has been DELETED.
Of course, we can combine bat to achieve batch operation, if combined with scheduled tasks, we can complete the task at a fixed time, which is convenient and fast.
At this point, I believe you have a deeper understanding of the "tutorial on how to delete a FTP virtual directory using Iisftpdr.vbs". You might as well do it in practice. Here is the website, more related content can enter the relevant channels to inquire, follow us, continue to learn!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.