Page 1 of 1 1
Topic Options
#199020 - 2010-07-16 02:26 AM win cmd batch help
mi_ninja Offline
Just in Town

Registered: 2010-07-16
Posts: 2
Loc: michigan
ok where to start. sorry for the wall of txt that you are about to have to see. and yes i will ask please point out where i have messed up. i will show 2 batch files that i am trying to work with. i am a comp tech and i am trying to make the backup automated. i need to make a autorun disk and pop it in a cd drive and walk away. i do run into some comps that have multi accounts. i have some code that get the data useing the %userprofile% variable. issue. if there are alot of accounts i need to log into each account. that = time. bad lol. i need it to do every account. so i tryed playing with the robocopy command. and i get a error. what i need this code to do is copy the folders that have "usfull" data like pics docs music. not the folders that are pointless like app data(for vista win7)here is the code that i tryed to play with.

cd "c:\users"
SET source=”C:\Users”
SET dest=”C:\DLI Backup”
SET what=/E /copyall /sec
SET options=/R:0 /W:0 /xd dirs app data
ROBOCOPY %source% %dest% %what% %options%
pause


so i guess i am asking plz fix my code and show me what i need to do so that it can work for the directorys for eather xp vista(win 7). that part i have not figured out yet

Top
#199021 - 2010-07-16 04:50 AM Re: win cmd batch help [Re: mi_ninja]
mi_ninja Offline
Just in Town

Registered: 2010-07-16
Posts: 2
Loc: michigan
nvm i figured it out.
Top
Page 1 of 1 1


Moderator:  Arend_, Allen, Jochen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Mart 
Hop to:
Shout Box

Who's Online
0 registered and 353 anonymous users online.
Newest Members
Praveer, Ollero, rayyo, Foxlicht, DonChild
17742 Registered Users

Generated in 0.068 seconds in which 0.032 seconds were spent on a total of 13 queries. Zlib compression enabled.

Search the board with:
superb Board Search
or try with google:
Google
Web kixtart.org