Two Plus Two Newer Archives  

Go Back   Two Plus Two Newer Archives > Internet Gambling > Software
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 10-02-2007, 07:38 AM
stigmata stigmata is offline
Senior Member
 
Join Date: Aug 2004
Location: UK
Posts: 4,817
Default 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.
Reply With Quote
  #2  
Old 10-02-2007, 08:32 AM
Phil153 Phil153 is offline
Senior Member
 
Join Date: Oct 2005
Posts: 4,905
Default 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
Reply With Quote
  #3  
Old 10-02-2007, 08:52 AM
stigmata stigmata is offline
Senior Member
 
Join Date: Aug 2004
Location: UK
Posts: 4,817
Default Re: Really simple/easy request for a script, one minutes work

That's great thanks, will try it later when I get home.
Reply With Quote
  #4  
Old 10-02-2007, 09:26 AM
FionnMac FionnMac is offline
Senior Member
 
Join Date: Jul 2006
Posts: 1,922
Default Re: Really simple/easy request for a script, one minutes work

how does one save as a .bat file?
Reply With Quote
  #5  
Old 10-02-2007, 09:29 AM
FionnMac FionnMac is offline
Senior Member
 
Join Date: Jul 2006
Posts: 1,922
Default Re: Really simple/easy request for a script, one minutes work

thanks for doing this btw Phil
Reply With Quote
  #6  
Old 10-02-2007, 12:22 PM
Nymfh23 Nymfh23 is offline
Senior Member
 
Join Date: Jun 2006
Location: Pervert and 17!!
Posts: 125
Default Re: Really simple/easy request for a script, one minutes work

fabulous
Reply With Quote
  #7  
Old 10-02-2007, 01:46 PM
PickyTooth PickyTooth is offline
Senior Member
 
Join Date: Dec 2004
Location: Montreal
Posts: 641
Default Re: Really simple/easy request for a script, one minutes work

[ QUOTE ]
how does one save as a .bat file?

[/ QUOTE ]
Reply With Quote
  #8  
Old 10-02-2007, 01:59 PM
darksideofthewal darksideofthewal is offline
Member
 
Join Date: Aug 2007
Posts: 53
Default 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
Reply With Quote
  #9  
Old 10-04-2007, 11:13 AM
tozzy tozzy is offline
Senior Member
 
Join Date: Nov 2006
Location: Vienna
Posts: 2,182
Default 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
Reply With Quote
  #10  
Old 10-04-2007, 11:40 AM
jukofyork jukofyork is offline
Senior Member
 
Join Date: Sep 2004
Location: Leeds, UK.
Posts: 2,551
Default 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]
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 04:15 PM.


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