Directory Structure
Moderator: vuser
Directory Structure
Is there a way to use V to create entire directory structure? I have a directory structure of about 20 sub-dirs that I would like to duplicate. I don't want to copy the files contained within the from directories but the directory organization. To help clarify, I have a September directory and now I'd like to duplicate this into and October directory structure. Can V do this?
-
- Site Admin
- Posts: 287
- Joined: Fri Apr 30, 2010 5:50 pm
Re: Directory Structure
There is no copy command in V to do this - but you can create a User Command which makes use of Windows XCOPY.Is there a way to use V to create entire directory structure?
The following XCOPY command should do what you want:
Code: Select all
xcopy /t /e /i September October
Enter XCOPY as the Command Path and /t /e /i %f as the Command Options and enable Prompt for extra options. Then press OK to save the command.
To clone the directory, you would select the directory to be cloned in the V directory listing (eg, September) and then select the User Command from the UserCommands menu. You will then be prompted for the extra options where you should enter the name of the new directory (eg, October). If the new directory name contains spaces you should enclose it in double quotes (eg, "Directory with Spaces").
BTW: I am not sure if XCOPY ships with Windows 7 (in C:\Windows\System32). If not, it can be easily found on the web.