Batch files!
osaddict
London, UK
Hey all,
Yes, about 15 years behind everyone else, recently I have discovered batch files!
I recall doing one a few months ago, but now I seem stuck...
All I want to do is copy the bookmark.html file:
"C:\Documents and Settings\Owner1\Application Data\Mozilla\Profiles\default\eh0f12ts.slt\bookmark.html"
From its current location to a new location, say the route of a different hdd, like D: (or pretty much anywhere)
In cmd prompt:
C:\Documents and Settings\Owner1>xcopy "C:\Documents and Settings\Owner1\Application Data\Mozilla\Profiles\default\eh0f12ts.slt\bookmark.html" c:\test\ffmarks
Works fine, so as I understand it, batch files are basically this in notepad with the ext of .bat ?
What else do i need to do in notepad to make it work!!?!
Yes, about 15 years behind everyone else, recently I have discovered batch files!
I recall doing one a few months ago, but now I seem stuck...
All I want to do is copy the bookmark.html file:
"C:\Documents and Settings\Owner1\Application Data\Mozilla\Profiles\default\eh0f12ts.slt\bookmark.html"
From its current location to a new location, say the route of a different hdd, like D: (or pretty much anywhere)
In cmd prompt:
C:\Documents and Settings\Owner1>xcopy "C:\Documents and Settings\Owner1\Application Data\Mozilla\Profiles\default\eh0f12ts.slt\bookmark.html" c:\test\ffmarks
Works fine, so as I understand it, batch files are basically this in notepad with the ext of .bat ?
What else do i need to do in notepad to make it work!!?!
0
Comments
Yes, that is backing up my firefox bookmarks.
Ill give that tool a look.
This was more a 'can i do this using a batch file' kinda thing, as im sure being a part time sys admin, batch files will come in useful for me!
Ill defo investigate it on a 'slow' day though
Thanks again Thrax
1. Close MS Outlook (IF it is open)
2. Copy Outlook.pst from local machine to network drive
3. Have this automatically run on shutdown
http://www.publicshareware.com/public-share-outlook-utilities.html
so presumably once that runs i can run a simple batch to copy .pst....
now i need to see how i can get this to run at shutdown (and midnight for those who don't turn their pc's off...)
heres a sample of my latest creation, still not at 100%, what it does is first copies the required files to the local machine from my machine. then it asks for an EUID ( aka login name, some unique identifier ) then it asks what machine you want to back data up to, then it asks for the machines share folder name, then the big list there will show you the available drives on the local machine you can choose to backup to the servers share point. it will go to the servers share point and create a folder with the variable %FOLDER% and dredge the hard drive or any files that dont meet the exclude criteria. it creates a log file with it, then after that it contacts another one of my servers and creates a quality assurance file with the user who ran it, when, and where the data was copied to.
i designed it to copy all of your files ther are not currently open, to a server, inside of windows. im still tinkering with it.
\\edit\\ heh there are a few typos in there, ill repost it when i have it done.
Thats pretty damn impressive looking Armo...
A whole world apart from what I could/can do!
ok i finnally finished. now it maps the drive its going to copy to AFTER yu choose what drive you want to back up, lol. Its smart enough to determine if its the C:\ or a diffrent drive, so it wont create folders that are out of place. It can determine if theres already a drive mapped to the letter the program uses to copy to a server. XXXX represents PC names that i dont want to give out. but if you want to play with it, get a copy of SLEEP.EXE and ROBOCOPY.EXE and put them in C:\windows\System32and be careful to what server and share name you use. it will completly close out with out warning if you try to copy to a location to dont have rights to.