My requirement is : we have one folder called Reports in E Drive (which is the shared one in XYZ server), This Reports folder is updating frequently with new files(New reports outputs in Exel,pdf,htm,xml.. versions). ** Requirement is these updated files should move automatically to a Sharepoint(http://server.com/folder) example : http://server.com/Shared%20Document...
I think this would be a rough code for that:
@echo off
:LOOP
if exist e:\Reports (goto COPY) else (goto END)
:COPY
copy e:\Reports\*.* http://server.com/blah blah
echo Copied successfully.
timeout /t 5 /nobreak>nul
goto LOOP
:END
echo Err. Shut off in 3 seconds...
timeout /t 3 /nobreak>nul
exit
You need to probably double check the 'copy' extension for escape commands by typing: copy /? in the command.com prompt.Dave,
nuevaware.com
Yes (14) | ![]() | |
No (14) | ![]() | |
I don't know (15) | ![]() |