In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/03 Report--
This article focuses on "how to use Iisftpdr.vbs to list FTP virtual directories". Interested friends may wish to have a look. The method introduced in this paper is simple, fast and practical. Let's let the editor learn how to use Iisftpdr.vbs to list FTP virtual directories.
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 list the FTP virtual directories on the local or remote computer running members of the Windows Server 2003 family with IIS 6.0.
The / query operation displays only virtual directories, not physical directories. Moreover, it only displays virtual directories located at the root of the FTP site or path and does not do a recursive search.
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 / query FTPSite [/ VirtualPath] [/ s Computer [/ u [Domain\] User / p Password]]
Parameters.
FTPSite
Necessary. Specify the descriptive name of the site or the configuration database path.
VirtualPath
If necessary, specify a path to the virtual directory within the site. This parameter is required when the virtual directory is not in the root directory of the site.
/ 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 shows the virtual directory located on the root directory of the FTP site "Test Downloads" on the local computer:
The copy code is as follows:
Iisftpdr / query "Test Downloads"
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 "Scripts" virtual directory located at the root of the FTP site "Test Downloads". Note that even if the actual location of the directory is not relevant, the directory appears in the root directory.
Remarks
The display does not include virtual directories as site subdirectories. The process of finding subdirectories is demonstrated in example 2 below.
Alias Physical Root
/ Scripts C:\ Libraries\ Scripts
Aliases represent the names of virtual directories, while physical roots describe their actual location.
Example 2
The following example shows a virtual directory that is a subdirectory of the Scripts virtual directory on the FTP site "Test Downloads". This command specifies it by using the virtual path of the "Scripts" directory. Note that quotation marks only surround the part of the path where they are needed.
The copy code is as follows:
Iisftpdr / query "Test Download"\ Scripts
In response, iisftpdr displays the VBScripts subdirectory of the virtual directory "Scripts".
Alias Physical Root
/ VBScripts D:\ Scripts\ VBScripts
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 "how to use Iisftpdr.vbs to list FTP virtual directories". 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.