Page 2 of 2

Re: Handy script for cleanup (WGSCLEAN.bat)

Posted: Wed Feb 08, 2017 12:29 pm
by syntax
MiOw wrote:
syntax wrote:The one I posted ( http://www.mudinfo.net/viewtopic.php?p= ... b41d#p4336 ) backs up the entire WG folder, minus wccupda2.dat.
If I were to be picky and want it in the C:\BACKUP would I simply put "C:\BACKUP\" in place of the "..\_backup"?

Thanks again!
You'd replace all instances of "_backup" with whatever you want (other than illegal filename characters). And avoid using spaces.

Re: Handy script for cleanup (WGSCLEAN.bat)

Posted: Thu Feb 09, 2017 2:39 pm
by MiOw
syntax wrote:You'd replace all instances of "_backup" with whatever you want (other than illegal filename characters). And avoid using spaces.
Took me a second to recognize the ".." as a similar command to "cd .." so now I understand. :roll:

The script worked perfectly and I appreciate the help. Nice to have a very robust and solid backup process and when it comes to hosting multiple cloud-based servers the elimination of wasted space on that log file will save a few bucks each year.

Re: Handy script for cleanup (WGSCLEAN.bat)

Posted: Thu Feb 09, 2017 4:45 pm
by syntax
MiOw wrote:Took me a second to recognize the ".." as a similar command to "cd .." so now I understand. :roll:
It's not a command, per say. They part of the paths; ".." means previous directory and a single "." means current directory.

Re: Handy script for cleanup (WGSCLEAN.bat)

Posted: Thu Feb 09, 2017 8:17 pm
by MiOw
syntax wrote:
MiOw wrote:Took me a second to recognize the ".." as a similar command to "cd .." so now I understand. :roll:
It's not a command, per say. They part of the paths; ".." means previous directory and a single "." means current directory.
Aye, re-read my post and my intent was to say "similar to the command of "cd ..", not that ".." in the batch was itself a command.

Thanks again!

Re: Handy script for cleanup (WGSCLEAN.bat)

Posted: Tue Feb 14, 2017 8:00 pm
by Kithias
Sorry if I missed this, I did dig around a little online and on this site... but once I have the .bat backing up the way I want, how do I get it to launch when the BBS does clean up automatically?

Thanks in advance!

Re: Handy script for cleanup (WGSCLEAN.bat)

Posted: Tue Feb 14, 2017 11:41 pm
by BearFather
Name it WGSCLEAN.bat

Re: Handy script for cleanup (WGSCLEAN.bat)

Posted: Wed Feb 15, 2017 6:35 am
by Kithias
Ahhh, thank you BearFather! Thats why I didnt find that file on a directory search. Much appreciated. :)