.bat file (move folders)

Soldato
Joined
28 Sep 2004
Posts
3,128
Location
Devon, UK
Hi, I'm wanting to create a .bat file to move folders from a directory on one pc to another directory on another pc thats on the network. Everything is shared that needs to be.

What I want to be able to do is have this .bat file so when I click on it I enter the name of the folder or wildcard (e.g folder is called Time of day and i'd enter something like Time of*) that I want to move across the network and then it does it for me.

I know it might seem lazy but when you have loads of folders to move its just something to make life abit easier.

Any ideas or scripts please? Have searched around but not been able to find anything on the 'enter name' bit

Thanks,
Mark
 
Thanks for that, but for some reason when I enter the folder name and press enter nothing happens :confused:

Cheers for the script though :)
 
Thanks will try that!

Not to be awkward but really was looking for an on the fly transfer. Else its quicker for me to Cut and Paste the folder.

RobH's would have been perfect but it doesn't seem to work :(
 
RobH said:
Are you running the batch file from the same folder your moving stuff from? Because a folder called "New Folder" is only valid in the context of the working directory.

If that is not the case you'd need to change the the following line:

IF NOT '%Choice%'=='' MOVE C:\WorkingDirectory\%Choice% C:\

where "C:\WorkingDirectory\" is the path to the folder containing the folders you want to move.
I've changed that Thanks!! But still nothing happens after I press enter :(
 
Back
Top Bottom