Arni,
Did you get your problem resolved?
-
Posted 5 years ago #
-
Still haven't gone through it all yet. Didn't make the time over the weekend.Posted 5 years ago #
-
bored at a freinds house today - i started playing with my thumb drive...
so slowly setting it all up
surprisingly easy
Posted 5 years ago # -
Arni wrote:Still haven't gone through it all yet. Didn't make the time over the weekend.
Arni, you could set it up for auto launch, then use some if exist statements to goto various loops. I do this for my network backups. I put a file in a directory and test to see it is there, if not then I stop with a delay and restart the net service. You could use a variation of this to test a specified path, if it fails, then loop to the next path etc. When it finds the path then call your synch script.
Script example:
IF EXIST "C:\Program Files\Folder\868.txt" goto Update
goto :eof
:Update
DEL "C:\Program Files\Folder\868.txt"
COPY \\SERVER\SHARE\Folder\869.txt "C:\Program Files\Folder"
NET STOP "My Service"
:: a delay is needed here - stopping a service needs some time.
ping -n 10 localhost >NUL
NET START "My Service"
IF ERRORLEVEL 0 goto :Email
echo error %errorlevel% occured
goto :eof
:Email
cscript \\SERVER\SHARE\Folder\Email.vbs
I should add since you won't know the drive letter assigned to the thumbdrive on various computers, I suggest you use relative paths.Politicians and diapers have one thing in common. They both should be changed regularly and for the same reason.Posted 5 years ago #

