Directory Structure

Use this forum to ask any questions and to submit bug reports

Moderator: vuser

Post Reply
dbrannick
Posts: 22
Joined: Tue Feb 08, 2011 8:19 am

Directory Structure

Post by dbrannick »

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?
FileViewer
Site Admin
Posts: 287
Joined: Fri Apr 30, 2010 5:50 pm

Re: Directory Structure

Post by FileViewer »

Is there a way to use V to create entire 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.

The following XCOPY command should do what you want:

Code: Select all

xcopy /t /e /i September October
To Create a User Command in V, select Organize/Configure from the UserCommands menu. Press the Insert Command button and then press the Rename button to give the command a name (like Clone Directory Structure).

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.
Post Reply