|
||
|
|
|||||||
| Welcome to the Exploding Garrmondo Weiner Interactive Swiss Army Penis. |
|
GFF is a community of gaming and music enthusiasts. We have a team of dedicated moderators, constant member-organized activities, and plenty of custom features, including our unique journal system. If this is your first visit, be sure to check out the FAQ or our GFWiki. You will have to register before you can post. Membership is completely free (and gets rid of the pesky advertisement unit underneath this message).
|
![]() |
|
|
Thread Tools |
Looking for a program
Hello all! If you haven't heard of it, there's this nifty game called 'N' where you run around as a ninja inside a physics simulator, collecting gold. It's fun, but the problem comes with the fact that the game stores all the save data and progress in a temp folder inside of Application Data. So when I reboot or clean my internet cache, it's gone. You can manually move this, but it's kind of an inconvenience to do so every time. What I'd like is a program that will automatically copy the file to the game's directory when it closes, and restore it to the correct temp folder when the game is started. Is there a way to do this with a scheduled task, or a .bat file? I'm not entirely sure how I'd go about programming those in, so any help would be appreciated. Thanks in advance!
Jam it back in, in the dark. |
This seems like it will work, except for one thing: the temporary save directory is named as a random string of numbers and letters each time it is created. Will a "*" work as a wildcard for a directory? E.g.,
Code:
xcopy "C:\Ngamebak" "C:\Documents and Settings\Audio Phile\Application Data\*\N.sav" Edit: Actually, after a little thought, I figured it out. I just let it create its randomly named directory, then I copied the whole thing over to the save folder. When the batch file runs, it just copies the whole thing back, and even if the original directory was deleted, it still reads it just fine. Thanks! Edit 2: Okay, just one more thing . This would really just be icing on the cake, but is there any way to suppress the command window when the batch file is running? It's not a huge deal, but it would be nice.There's nowhere I can't reach.
Last edited by Audiophile; Jul 28, 2008 at 10:08 PM.
|
It is a little hard to read up there, but I managed to work around the random save directory by just copying the entire directory. If the random directory is already there, the program has no trouble reading from it. The only issue was that if the directory wasn't there, it would make a new one.
And running the command window minimized will work great! Thanks so much!This thing is sticky, and I don't like it. I don't appreciate it. |