Congratulations to AcaCandy on her 100,000th post!
There's no such thing as a stupid question, but they're the easiest to answer.
JoinTour
Login
 
Tag Cloud
acer black screen blue screen boot bsod computer connection crash css dell display drive driver drivers email error ethernet excel firefox firefox 3 game hard drive internet internet explorer itunes laptop linux malware monitor network networking nvidia outlook outlook 2003 outlook 2007 outlook express partition problem router slow software sound trojan usb video virus vista windows windows xp wireless
Software Development
Search
Search in:
 
Advanced Search
Tech Support Guy Forums > Software & Hardware > Software Development >
More Batch Files


HELLO AND WELCOME! Before you can post your question, you'll have to register -- it's completely free! Click here to join today! We highly recommend that you print a copy of our Guide for New Members. Enjoy!

Closed Thread
 
Thread Tools
Nerds's Avatar
Member with 41 posts.
 
Join Date: Apr 2005
Location: Merced, Ca
Experience: Beginner
16-Aug-2005, 05:20 PM #1
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.
Closed Thread

THIS THREAD HAS EXPIRED.
Are you having the same problem? We have volunteers ready to answer your question, but first you'll have to join for free. Need help getting started? Check out our Welcome Guide.


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
WELCOME TO TECH SUPPORT GUY! Are you looking for the solution to your computer problem? Join our site today to ask your question -- for free! Our site is run completely by volunteers who help people like you solve computer problems. See our Welcome Guide to get started.



Thread Tools


You Are Using:
Server ID
Advertisements do not imply our endorsement of that product or service.
All times are GMT -4. The time now is 06:17 AM.
Copyright © 1996 - 2008 TechGuy, Inc. All rights reserved.
Powered by vBulletin, Copyright © 2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0
Powered by Cermak Technologies, Inc.