cmd batch file guru help pls...
#1
cmd batch file guru help pls...
I'd like a solution where I can copy the files/directories i have right-click-selected to the same location on another disk. is that possible? In fact I want to copy the files to 2 other separate disks, but still same relative path.
I don't mind having a .bat in the 'Send To...' context menu or I can add a class reg entry, but I don't know the batch commands
any ideas? or is there an app? (vista 64 btw)
I don't mind having a .bat in the 'Send To...' context menu or I can add a class reg entry, but I don't know the batch commands
any ideas? or is there an app? (vista 64 btw)
#2
Scooby Regular
iTrader: (1)
Join Date: Jul 2004
Location: There on the stair
Posts: 10,208
Likes: 0
Received 0 Likes
on
0 Posts
Your best bet is robocopy. A very good util that allows tree mirroring if you require it - and the help file is excellent:
Download details: Windows Server 2003 Resource Kit Tools
for the download
Ah.
Further reading reveals it does not work on 64-bit.... bugger
Download details: Windows Server 2003 Resource Kit Tools
for the download
Ah.
Further reading reveals it does not work on 64-bit.... bugger
Last edited by Kieran_Burns; 05 July 2008 at 10:41 AM.
#3
Scooby Regular
Join Date: Nov 2001
Location: Leeds - It was 562.4bhp@28psi on Optimax, How much closer to 600 with race fuel and a bigger turbo?
Posts: 15,239
Likes: 0
Received 1 Like
on
1 Post
save this as a .reg file.. you can then right click on a folder run a batch file and pass the folder name to it.
That should then run a batchfile called c:\mybatchfile.bat
then run your command from a batch file..
If you call windows\syswow64\cmd.exe you should be able to use robocopy.. it works fine on windows xp x64
David
Code:
Windows Registry Editor Version 5.00 [HKEY_CLASSES_ROOT\Folder\shell\MenuText] @="Copy Folder" [HKEY_CLASSES_ROOT\Folder\shell\MenuText\Command] @="cmd.exe /k c:\mybatchfile.bat "%1""
then run your command from a batch file..
If you call windows\syswow64\cmd.exe you should be able to use robocopy.. it works fine on windows xp x64
David
Thread
Thread Starter
Forum
Replies
Last Post