|
Answer» Hi,
I'm a complete beginner at bat files, I've tried searching but don't really KNOW how to word it correctly to get an accurate search result.
Here's what I'd like to do:-
Create a bat file that when Double clicked will copy a FOLDER and all its files and sub-folders to a new folder. The source folder will always have the same path, but the destination will be a different one every time. Is there a way to, for example, copy the bat file in (windows) to the destination folder, then double clicking it will result in copying from the source folder to the folder that I've just copied the bat file into?
Hope I've explained it OK Would be grateful for any help, thanks. MMM...aaaa. YES! If the source folder is always the same. and you create a new folder and your put just the BAT into the folder and you CD to that new folder and you start the BAT
The BAT files shall referee to the source folder as either an absolute path or a relative path that ALREADY exists and is reusable. Examples: d:\MyStuff\Homework\ is and absolute path ..\Homework\ is a relative path REACHABLE from d:\MyStuff\anyfolder
So the BAT file might contain xcopy ..\Homework\*.*
Try it first on some DUMMY files. I did not call you a dummy. I am the dummy.
|