ronaldmacdonald
MIS
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
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