Sign in to follow this  
Followers 0
bobheart

Backup Your Ini Files .

9 posts in this topic

#1 ·  Posted (edited)

I made this just to see how to do dos.bat files and what it will do is backup your system ini files .(edit the bat file to see what it does ) but you need to make the folder in the c drive VAULT folder .

Download

It has the au3 file and the bat file if you want to look or play with it .

I know it is not much but it was lots for me . lol

Edited by bobheart

Share this post


Link to post
Share on other sites



you can do "md c:\vault" in your batch file to assure that the vault dir is there, it won't hurt anything if it already exists...

you going to make another bat to restore the files as well?


"I'm not even supposed to be here today!" -Dante (Hicks)

Share this post


Link to post
Share on other sites

I can if you want one ? a restore bat .

Share this post


Link to post
Share on other sites

#4 ·  Posted (edited)

it's not a tool I'd use, running xp and not messing with those files ... I was just thinking that for your own use, or whoever might want to use it, that'd be the logical completion of it...

another thought I had was that you could do this all within the autoit using filecopy and FileSetAttrib, allowing you to compile it into an exe and not have to worry about the presence of the bat file.

edit: the other bonus of that is having one button called backup files, and another one called restore files...

Edited by emmanuel

"I'm not even supposed to be here today!" -Dante (Hicks)

Share this post


Link to post
Share on other sites

I'll have to try that next when I understand thos more , if I ever do .

Share this post


Link to post
Share on other sites

Ok question . how would you add more ini files to this ?

FileCopy("C:\WINDOWS\control.ini,system.ini,", "E:\New Folder\*.*")

That didn't work .

Share this post


Link to post
Share on other sites

Ok question . how would you add more ini files to this ?

FileCopy("C:\WINDOWS\control.ini,system.ini,", "E:\New Folder\*.*")

That didn't work .

I don't think it's meant to be able to do more than one file on the same path, do it just like you would in batch file, with a seperate line for each file to copy, I'd also suggest doing the "c:\windows" part of it with the @WindowsDir macro, incase other people are wierd like me and install windows into c:\winders or c:\winnt or some such...

FileCopy(@WindowsDir & "\system.ini", "E:\New Folder\*.*")
FileCopy(@WindowsDir & "\control.ini", "E:\New Folder\*.*")

you can find more handy macros in the Macro Reference section, they're even sorted by type.


"I'm not even supposed to be here today!" -Dante (Hicks)

Share this post


Link to post
Share on other sites

Well thank you I learn something new today ..

I do ok if I can see how it is done as my reading things and using it have lost me now .

I still don't know where to put the codes to make them work right but I hope I will learn .

Thanks again .

Share this post


Link to post
Share on other sites

Well thank you I learn something new today ..

I do ok if I can see how it is done as my reading things and using it have lost me now .

I still don't know where to put the codes to make them work right but I hope I will learn .

Thanks again .

hey, glad to help, that's why I spend so much of my time trolling around this place, in hopes that something I say helps someone else along the way, someday, you'll be teaching me something, I promise.

"I'm not even supposed to be here today!" -Dante (Hicks)

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0