Copying a new folder to new location

February 22, 2010 at 11:04:45
Specs: Windows XP
Hello,
I'm kind of new to batch files and i'm trying to do something that without any succeed.

I want to copy folder from one location to another but with a few conditions.
Detailed:
I have this folder :"C:\Version" , on this folder i have few subfolders as "C:\Version\1.0" , "C:\Version\1.1" and etc.
What i want to do is, everytime a new version folder is copied to "C:\Version\X.X" the batch will automatically copy the whole folder to "D:\Backup\X.X" .

Is there a possible way that the batch will run in the background and check every 6 hours if a new version folder is created and copy her?

Thanks for your help


See More: Copying a new folder to new location

Report •


#1
February 22, 2010 at 13:53:03
It could be done with a VBScript and WMI. A batch script would require heavy use of the Task Scheduler, and a file to hold the previous directory listing.

Report •

#2
February 23, 2010 at 02:41:47
Also check "at /?"

Report •

#3
February 23, 2010 at 05:40:24
I guess i will try go to diffrenet methods.
I thought there is maybe an esay way to create it on batch
Thanks guys

Report •

Related Solutions

#4
February 23, 2010 at 05:43:27
In another thing just for the folders search, can you help me with, Regardless the timing check

Report •

#5
February 23, 2010 at 06:24:07
Untested, but I assume something like this:
for /d %%a in ("C:\Version\?.?") do if not exist "D:\backup\%%~NXa" do xcopy /e /i "%~Fa" "D:\backup\%%~NXa"


Report •

Ask Question