Batch file or Exe to copy & rename directory and update files

Proclaimer

New member
Local time
7:50 PM
Messages
1
I require a batch file or free utility that i can redistribute from my web site to other users, (gamers) that will copy the contents of a directory inside their game to a new location and re-name the directory at the same time. Something like this;

Copy "Genesis\Vehicles\truck\diesel\4tonbaker" to "Genesis\Vehicles\truck\diesel\4tonbutcher"

The batch file needs to be run without the need for a command line box being opened, that is, if the user can double click on it or run it with a 'right click' that would be great. Problem there is, I maybe need an exe file not a batch file. The other part of the problem is that the folder to be copied may or may not be in the same location on every PC that runs the file. It may be the case that the 4tonbaker folder is on;
C:\Genesis\Vehicles\truck\diesel\4tonbaker or
D:Genesis\Vehicles\truck\diesel\4tonbaker or even
E:\Games\mystuff\Genesis\Vehicles\truck\diesel\4tonbaker

and I require the end user to have no need to know, just for the directory to be copied and renamed when and where it is found.

If possible I then want the batch file to perform a second task. I want to distribute a folder, lets say it is 4tonbutcher and in that folder there are files lets say doc1.txt, doc2.txt and doc3.txt

On any given users PC 4tonbaker has these same named files but the content is different to the ones in my folder 4tonbutcher, I want to update the newly created folder, 4tonbutcher with the new txt files I distribute.

So, User downloads a folder called 4tonbutcher from my site.
Batch file copies and renames a folder from a location on the users PC, "Genesis\Vehicles\truck\diesel\4tonbaker" to "Genesis\Vehicles\truck\diesel\4tonbutcher"
Batch file copies doc1.txt, doc2.txt and doc3.txt from the downloaded folder to the newly created folder 4tonbutcher

I need this to be easy for me to do as well otherwise i would not be here asking how to accomplish this. Any ideas?

Thanks.
 

My Computer My Computer

At a glance

Windows 7 x64Intel Core i7 920 D0 SteppingOCZ Gold Low Voltage 6GB (3x2GB) DDR3 PC3-160...NVidia GTX480
Computer Manufacturer/Model Number
Custom
OS
Windows 7 x64
CPU
Intel Core i7 920 D0 Stepping
Motherboard
Gigabyte EX58-UDR3
Memory
OCZ Gold Low Voltage 6GB (3x2GB) DDR3 PC3-16000C10 Triple
Graphics Card(s)
NVidia GTX480
Sound Card
Sounblaster X-Fi
Monitor(s) Displays
EIZO Flexscan S2231W
Screen Resolution
1680x1050
Hard Drives
Seagate Barracuda 7200.12 500GB SATA-II 16MB Cache
PSU
1000w
Case
Antec 1200
Cooling
Cooler Master V8 CPU Cooler
Keyboard
MS Curve
Mouse
Intelimouse Explorer 3.0
Internet Speed
10gb
Other Info
Samsung SH-S222AL/RSMS 22x DVD±RW SATA Lightscribe ReWriter
Sounds like you need a windows shell program, I'm not expert enough to help you with this :(

Here's a nice tutorial:

Win32 Shell Scripting Tutorial

Off topic: this is trivial to do in UNIX, I can whip up a shell script for that in no time...
 

My Computer My Computer

At a glance

Windows 7 Ultimate x64 SP1Intel Core i7-3960X16 GB GSkill DDR3-2133 CL9EVGA SC GTX 680
Computer Manufacturer/Model Number
Custom
OS
Windows 7 Ultimate x64 SP1
CPU
Intel Core i7-3960X
Motherboard
Intel DX79SI
Memory
16 GB GSkill DDR3-2133 CL9
Graphics Card(s)
EVGA SC GTX 680
Sound Card
Onboard Realtek
Monitor(s) Displays
Dell 2005FPW
Screen Resolution
1680x1050
Hard Drives
Intel 520 SSD 240 GB,
2x Seagate 7200.12 1 TB
PSU
Corsair 850W HX
Case
Corsair 500R
Cooling
Corsair H100
Keyboard
Microsoft Natural 4000
Back
Top