Need a Batch script

November 12, 2010 at 04:27:23
Specs: Windows 2003
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...

See More: Need a Batch script

Report •

#1
November 25, 2010 at 17:48:54
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


Report •
Related Solutions


Ask Question