Two Plus Two Newer Archives

Two Plus Two Newer Archives (http://archives1.twoplustwo.com/index.php)
-   Software (http://archives1.twoplustwo.com/forumdisplay.php?f=47)
-   -   Really simple/easy request for a script, one minutes work (http://archives1.twoplustwo.com/showthread.php?t=513750)

stigmata 10-02-2007 07:38 AM

Really simple/easy request for a script, one minutes work
 
There is a bug with PartyPoker in the latest version that the notes.txt file gets deleted/truncated.

We need a script that does this:

1) Copies the notes.txt file to a specified folder, and names it notes.datestamp-timestamp.txt
2) Starts party poker.

At least this way we can recover it, if it gets deleted again.

Phil153 10-02-2007 08:32 AM

Re: Really simple/easy request for a script, one minutes work
 
Copy paste the text into notepad. Save as a .bat file. Double click to run. The window will hang around until party is closed, someone else might be able to prevent this.

@echo off
IF NOT EXIST "%programfiles%\partygaming\partypoker\notes backup\" MKDIR "%programfiles%\partygaming\partypoker\notes backup\"

for /f "tokens=1-3 delims=/- " %%a in ('date /t') do set XDate=%%a-%%b-%%c
for /f "tokens=1-3 delims=: " %%a in ('time /t') do set XTime=%%a-%%b-%%c


IF EXIST "%programfiles%\partygaming\partypoker\notes.t xt" COPY "%programfiles%\partygaming\partypoker\notes.t xt" "%programfiles%\partygaming\partypoker\notes backup\notes.%XDate%_%XTime%.txt

cd %programfiles%\partygaming\

start partygaming.exe -P=PartyPoker

stigmata 10-02-2007 08:52 AM

Re: Really simple/easy request for a script, one minutes work
 
That's great thanks, will try it later when I get home.

FionnMac 10-02-2007 09:26 AM

Re: Really simple/easy request for a script, one minutes work
 
how does one save as a .bat file?

FionnMac 10-02-2007 09:29 AM

Re: Really simple/easy request for a script, one minutes work
 
thanks for doing this btw Phil

Nymfh23 10-02-2007 12:22 PM

Re: Really simple/easy request for a script, one minutes work
 
fabulous

PickyTooth 10-02-2007 01:46 PM

Re: Really simple/easy request for a script, one minutes work
 
[ QUOTE ]
how does one save as a .bat file?

[/ QUOTE ]

darksideofthewal 10-02-2007 01:59 PM

Re: Really simple/easy request for a script, one minutes work
 
goto save
at "save as filetype" select "all"
save the file as whateveryouwannanameit.bat

tozzy 10-04-2007 11:13 AM

Re: Really simple/easy request for a script, one minutes work
 
i changed programfiles to programme as im running a german windows and it keeps telling me it cant find partygaming.exe
hyahyhyhyhchchyhy

jukofyork 10-04-2007 11:40 AM

Re: Really simple/easy request for a script, one minutes work
 
[ QUOTE ]
i changed programfiles to programme as im running a german windows and it keeps telling me it cant find partygaming.exe
hyahyhyhyhchchyhy

[/ QUOTE ]
Try changing them all to "progra~1" instead.

Juk [img]/images/graemlins/smile.gif[/img]


All times are GMT -4. The time now is 07:56 AM.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.