Notices
Computer & Technology Related Post here for help and discussion of computing and related technology. Internet, TVs, phones, consoles, computers, tablets and any other gadgets.

cmd batch file guru help pls...

Thread Tools
 
Search this Thread
 
Old 05 July 2008, 09:10 AM
  #1  
ChefDude
Scooby Regular
Thread Starter
 
ChefDude's Avatar
 
Join Date: Aug 2005
Posts: 4,290
Likes: 0
Received 0 Likes on 0 Posts
Default 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)
Old 05 July 2008, 10:39 AM
  #2  
Kieran_Burns
Scooby Regular
Support Scoobynet!
iTrader: (1)
 
Kieran_Burns's Avatar
 
Join Date: Jul 2004
Location: There on the stair
Posts: 10,208
Likes: 0
Received 0 Likes on 0 Posts
Default

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

Last edited by Kieran_Burns; 05 July 2008 at 10:41 AM.
Old 08 July 2008, 11:35 AM
  #3  
David_Wallis
Scooby Regular
 
David_Wallis's Avatar
 
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
Default

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.
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""
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
Old 08 July 2008, 11:47 AM
  #4  
ChefDude
Scooby Regular
Thread Starter
 
ChefDude's Avatar
 
Join Date: Aug 2005
Posts: 4,290
Likes: 0
Received 0 Likes on 0 Posts
Default

thanks chaps.

I happen to have robocopy, so will give this a go
Related Topics
Thread
Thread Starter
Forum
Replies
Last Post
yabbadoo4
ScoobyNet General
11
30 September 2015 10:33 PM
Nick_Cat
Computer & Technology Related
2
26 September 2015 08:00 AM
Littleted
Computer & Technology Related
0
25 September 2015 08:44 AM
ALi-B
Computer & Technology Related
0
14 September 2015 07:49 AM
riiidaa
ScoobyNet General
1
12 September 2015 11:52 AM



Quick Reply: cmd batch file guru help pls...



All times are GMT +1. The time now is 05:29 PM.