Open Side Menu Go to the Top
Register
Player notes backup method Player notes backup method

11-19-2014 , 01:02 PM
I see complaints about player notes files disappearing on players machines on 2+2 and other sites so I wrote at batch file to allow easy backup management of the files.

Only for pokerstars now but others should easy to do based on the below but let me know and I can get it working on other sites if wanted

What it does
  1. Makes a backup of the notes file - puts it in a folder with a date stamp
  2. Launches pokerstars
  3. When pokerstars closes it waits 30 secs then makes another copy of the notes file

How to use
Open a new notepad file
Paste in the below code
Save it as pokerstars.bat
Next time you want to play poker use this .bat to launch the client instead of the pokerstars shortcut

Notes
It works for Windows7, I don't have access to other OS's to figure out what changes are needed to get it running. For Windows based systems it's probably just a case of changing the location of the notes file and maybe the stars exe
It launches the update exe for stars so change that if you don't want to automatically update the stars software
Because it also performs a backup on exit you will have a small CMD window open while the stars software is running. Just minimize it ore leave it in the background. If you close it the backup on exit will not run
I haven't looked at batch files in a number of years, I don't think it has any bugs but I'm pretty sure it could be optimized by someone with more knowledge

Code:
@echo off
for /f "delims=" %%a in ('wmic OS Get localdatetime  ^| find "."') do set dt=%%a
set YYYY=%dt:~0,4%
set MM=%dt:~4,2%
set DD=%dt:~6,2%
set HH=%dt:~8,2%
set Min=%dt:~10,2%
set Sec=%dt:~12,2%

set stamp=%YYYY%-%MM%-%DD%_%HH%-%Min%-%Sec%

echo d | xcopy /d /s "C:\Users\neilh\AppData\Local\PokerStars\*.xml" "c:\PokerNotes\Pokerstars\notes - %stamp%"

CD "C:\Program Files (x86)\PokerStars\"
PokerStarsUpdate.exe

:Loop
tasklist /NH |findstr /i /C:"PokerStars.exe" >nul && (
ping -n 30 localhost>nul
GOTO :Loop
)

@echo off
for /f "delims=" %%a in ('wmic OS Get localdatetime  ^| find "."') do set dt=%%a
set YYYY=%dt:~0,4%
set MM=%dt:~4,2%
set DD=%dt:~6,2%
set HH=%dt:~8,2%
set Min=%dt:~10,2%
set Sec=%dt:~12,2%

set stamp=%YYYY%-%MM%-%DD%_%HH%-%Min%-%Sec%

echo d | xcopy /d /s "C:\Users\neilh\AppData\Local\PokerStars\*.xml" "c:\PokerNotes\Pokerstars\notes - %stamp%"
Player notes backup method Quote
12-10-2014 , 09:11 AM
Heads up, your windows username is in the script if you care about that kind of thing.
Player notes backup method Quote

      
m