#1
|
|||
|
|||
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. |
#2
|
|||
|
|||
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 |
#3
|
|||
|
|||
Re: Really simple/easy request for a script, one minutes work
That's great thanks, will try it later when I get home.
|
#4
|
|||
|
|||
Re: Really simple/easy request for a script, one minutes work
how does one save as a .bat file?
|
#5
|
|||
|
|||
Re: Really simple/easy request for a script, one minutes work
thanks for doing this btw Phil
|
#6
|
|||
|
|||
Re: Really simple/easy request for a script, one minutes work
fabulous
|
#7
|
|||
|
|||
Re: Really simple/easy request for a script, one minutes work
[ QUOTE ]
how does one save as a .bat file? [/ QUOTE ] |
#8
|
|||
|
|||
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 |
#9
|
|||
|
|||
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 |
#10
|
|||
|
|||
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] |
|
|