Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

moving files

Status
Not open for further replies.
Dec 13, 2002
109
GB
Hi

I have an old BAT file program that monitors a directory for incoming files. Once a file hits the directory the BAT program moves it off to another location and the process continues (DOS bat code below). It worked on 98 but not on XP. My question is can this be done in vbscript and called by cscript from within xp?

:hell
if exist c:\old\*.* goto cont
:goto hell
:cont
move C:\old\*.* c:\new
goto hell
 
Why not use robocopy? Take a look at robocopy /mon, or robocopy /? from your xp command line.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top