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( example :

See More: Need a Batch script

Report •

November 25, 2010 at 17:48:54
I think this would be a rough code for that:

@echo off
if exist e:\Reports (goto COPY) else (goto END)
copy e:\Reports\*.* blah
echo Copied successfully.
timeout /t 5 /nobreak>nul
goto LOOP
echo Err. Shut off in 3 seconds...
timeout /t 3 /nobreak>nul

You need to probably double check the 'copy' extension for escape commands by typing: copy /? in the prompt.


Report •
Related Solutions

Ask Question