| Member with 41 posts. | | Join Date: Apr 2005 Location: Merced, Ca Experience: Beginner | |
More Batch Files Below is the Batch File Im working with.. any ideas how i can get the Xcopy in there? or the Backup?? This works.. but I would just like to make a backup of the stuff..
thanks. @echo off
if (%1)==(/h) goto help
if (%1)==(/?) goto help
if (%1)==(h) goto help
if (%1)==(?) goto help
if (%1)==(-h) goto help
if (%1)==(-?) goto help
:start
set outfile=filecopy.log
echo copying file %1 to %2 >> %outfile%
set user=sportster
echo copying file to %user% >> %outfile%
copy %1 \\%user%\c$\%2 /Y >> %outfile%
set user=rickr
echo copying file to %user% >> %outfile%
copy %1 \\%user%\c$\%2 /Y >> %outfile%
set user=roberts
echo copying file to %user% >> %outfile%
copy %1 \\%user%\c$\%2 /Y >> %outfile%
set user=adanp
echo copying file to %user% >> %outfile%
copy %1 \\%user%\c$\%2 /Y >> %outfile%
set user=yery
echo copying file to %user% >> %outfile%
copy %1 \\%user%\c$\%2 /Y >> %outfile%
set user=barbarap
echo copying file to %user% >> %outfile%
copy %1 \\%user%\c$\%2 /Y >> %outfile%
set user=stevenl
echo copying file to %user% >> %outfile%
copy %1 \\%user%\c$\%2 /Y >> %outfile%
set user=danf
echo copying file to %user% >> %outfile%
copy %1 \\%user%\c$\%2 /Y >> %outfile%
set user=warrenl
echo copying file to %user% >> %outfile%
copy %1 \\%user%\c$\%2 /Y >> %outfile%
set user=deborahs
echo copying file to %user% >> %outfile%
copy %1 \\%user%\c$\%2 /Y >> %outfile%
set user=barryb
echo copying file to %user% >> %outfile%
copy %1 \\%user%\c$\%2 /Y >> %outfile%
set user=stevel
echo copying file to %user% >> %outfile%
copy %1 \\%user%\c$\%2 /Y >> %outfile%
set user=martinf
echo copying file to %user% >> %outfile%
copy %1 \\%user%\c$\%2 /Y >> %outfile%
set user=dickn
echo copying file to %user% >> %outfile%
copy %1 \\%user%\c$\%2 /Y >> %outfile%
set user=sylviaj
echo copying file to %user% >> %outfile%
copy %1 \\%user%\c$\%2 /Y >> %outfile%
set user=ceciliaf
echo copying file to %user% >> %outfile%
copy %1 \\%user%\c$\%2 /Y >> %outfile%
set user=heidiv
echo copying file to %user% >> %outfile%
copy %1 \\%user%\c$\%2 /Y >> %outfile%
set user=roxannem
echo copying file to %user% >> %outfile%
copy %1 \\%user%\c$\%2 /Y >> %outfile%
set user=davidj
echo copying file to %user% >> %outfile%
copy %1 \\%user%\c$\%2 /Y >> %outfile%
set user=jorgem
echo copying file to %user% >> %outfile%
copy %1 \\%user%\c$\%2 /Y >> %outfile%
set user=mikes
echo copying file to %user% >> %outfile%
copy %1 \\%user%\c$\%2 /Y >> %outfile%
set user=timl
echo copying file to %user% >> %outfile%
copy %1 \\%user%\c$\%2 /Y >> %outfile%
set user=sandraf
echo copying file to %user% >> %outfile%
copy %1 \\%user%\c$\%2 /Y >> %outfile%
set user=michelleh
echo copying file to %user% >> %outfile%
copy %1 \\%user%\c$\%2 /Y >> %outfile%
set user=robf
echo copying file to %user% >> %outfile%
copy %1 \\%user%\c$\%2 /Y >> %outfile%
set user=aliciar
echo copying file to %user% >> %outfile%
copy %1 \\%user%\c$\%2 /Y >> %outfile%
set user=mareae
echo copying file to %user% >> %outfile%
copy %1 \\%user%\c\%2 /Y >> %outfile%
set user=darrens
echo copying file to %user% >> %outfile%
copy %1 \\%user%\c$\%2 /Y >> %outfile%
set user=brendab
echo copying file to %user% >> %outfile%
copy %1 \\%user%\c$\%2 /Y >> %outfile%
set user=monicar
echo copying file to %user% >> %outfile%
copy %1 \\%user%\c$\%2 /Y >> %outfile%
set user=lizd
echo copying file to %user% >> %outfile%
copy %1 \\%user%\c$\%2 /Y >> %outfile%
set user=dianam
echo copying file to %user% >> %outfile%
copy %1 \\%user%\c$\%2 /Y >> %outfile%
set user=susiew
echo copying file to %user% >> %outfile%
copy %1 \\%user%\c$\%2 /Y >> %outfile%
set user=donnal
echo copying file to %user% >> %outfile%
copy %1 \\%user%\c$\%2 /Y >> %outfile%
set user=robinb
echo copying file to %user% >> %outfile%
copy %1 \\%user%\c$\%2 /Y >> %outfile%
set user=tenhs
echo copying file to %user% >> %outfile%
copy %1 \\%user%\c$\%2 /Y >> %outfile%
set user=rozf
echo copying file to %user% >> %outfile%
copy %1 \\%user%\c$\%2 /Y >> %outfile%
set user=jacobm
echo copying file to %user% >> %outfile%
copy %1 \\%user%\c$\%2 /Y >> %outfile%
set user=scottb
echo copying file to %user% >> %outfile%
copy %1 \\%user%\c$\%2 /Y >> %outfile%
set user=elleryc
echo copying file to %user% >> %outfile%
copy %1 \\%user%\c$\%2 /Y >> %outfile%
set user=kelleya
echo copying file to %user% >> %outfile%
copy %1 \\%user%\c$\%2 /Y >> %outfile%
set user=caship-01
echo copying file to %user% >> %outfile%
copy %1 \\%user%\c$\%2 /Y >> %outfile%
set user=caship-02
echo copying file to %user% >> %outfile%
copy %1 \\%user%\c$\%2 /Y >> %outfile%
goto :end
:help
echo Copies target file to destination folder on all Dynamics computers.
echo.
echo DYNCOPY target destfolder
echo.
echo target File to be copied.
echo.
echo destfolder Destination folder, starting with the local drive
echo share ("\\computer_name\c$\") on all machines.
echo.
echo example:
echo DYNCOPY "c:\program files\eEntrprs\Reports.dic" "program files\eEntrprs"
echo.
echo This will copy "c:\program files\eEntrprs\Reports.dic" to
echo "\\computer_name\c$\program files\eEntrprs". Where computer_name is all
echo computers with Dynamics.
echo.
echo NOTE: DO NOT FORGET THE QUOTES (") AROUND FILE PATHS WITH SPACES IN THEM.
goto :end
:end
__________________ User Terms Agreement By Clicking 'Accept' and downloading this really super-duper cool toolbar you are able to check local weather and news. You also give up your rights to your hard-drive space, Privacy, Credit Card Numbers, Social Security Number, Medical History, Contact Information, and any information contained on your computer. You also give us the right to change information without your consent or acknowledgement. Also, by accepting these term agreements, you agree that you are dumb. |