SA-MP Forums Archive
Auto copy edited file? - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: Other (https://sampforum.blast.hk/forumdisplay.php?fid=7)
+--- Forum: Everything and Nothing (https://sampforum.blast.hk/forumdisplay.php?fid=23)
+--- Thread: Auto copy edited file? (/showthread.php?tid=346756)



Auto copy edited file? - Face9000 - 29.05.2012

Hello,im working on a gamemode and i have to do backup everytime i compile it,this because my pc keeps shut down for no reason.

So i was wondering,there is a program that copy the last edited file (in this case the .amx) in a folder?

Thanks.


Re: Auto copy edited file? - AMEENAMEEN - 29.05.2012

see power options , in control panel maybe its set to shut down every certain amount of time


Re: Auto copy edited file? - dannyk0ed - 29.05.2012

That's odd how your computer shuts own, i would reformat to fix some stuff, or upgrade


Re: Auto copy edited file? - IceCube! - 29.05.2012

https://sampforum.blast.hk/showthread.php?tid=342240

Lets not go through it again, if you wish to post a solution post it on topic in the above.


Re: Auto copy edited file? - Face9000 - 29.05.2012

Quote:
Originally Posted by dannyk0ed
Посмотреть сообщение
That's odd how your computer shuts own, i would reformat to fix some stuff, or upgrade
Quote:
Originally Posted by AMEENAMEEN
Посмотреть сообщение
see power options , in control panel maybe its set to shut down every certain amount of time
Quote:
Originally Posted by IceCube!
Посмотреть сообщение
https://sampforum.blast.hk/showthread.php?tid=342240

Lets not go through it again, if you wish to post a solution post it on topic in the above.
The first 2 guys quoted,read IceCube post please.I didn't asked a solution about the pc shut down,but a program to autocopy last edited file,btw thanks for trying to help.


Re: Auto copy edited file? - IceCube! - 29.05.2012

EDIT: removed quote had nothing to do with my post.

If you have somone you trust or have another PC in another house use that t cide Via TV this will prevnt data loss, other than that I dont know what does this.


Re: Auto copy edited file? - [MM]IKKE - 29.05.2012

http://www.overclock.net/t/114345/ho...y-backup-files

Open notepad, type there:
Код:
xcopy /e /y "C:\\Directory you want to copy\\" "C:\\Directory where you want to copy\\"
Notice the TWO backslashes

Eg
Код:
xcopy /e /y "C:\\Users\\My Documents\\Frog Porn\\" "D:\\Backup\\Family Stuff\\"
Save this as "backup.bat". Remember where you saved it. Don't forget the .BAT extension instead of .txt!

Now, open Control Panel and go to Scheduled Tasks. Do "Add scheduled task" and add the link to the .BAT file somewhere. Make it run once an hour, for instance.

In windows 7, you can access scheduled tasks in: "Control Panel">"System and Security">"Task Scheduler">"Action\Add basic task"


Re: Auto copy edited file? - Mauzen - 29.05.2012

Look for a private svn or git repository, there are several free ones. You can upload and synchronize your script with that, and also got it available everywhere and on a sure server.