syncing the same file from 2 different directories?

Status
Not open for further replies.

akasixcon

This is sparta!
Messages
783
I have a gaming software for DoTA that outputs a textfile (.txt) for list of points and access levels. I run multiple instances of the software and I want them to sync to only one file. So lets call this software Stealthtbot 1 and Stealthbot 2. Stealthbot 1 outputs the file to the access and user level to a .txt file. I want Stealthbot 2 to access this same file.

my solution is that to sync the file from the directory that stealthbot 1 uses and then copy and re-write it over the folder that stealthbot2 uses.
Anyway to do this lets say every few mins (or possibly instantly?)
 
Code:
:TOP
copy C:\StealthBot1\log.txt C:\StealthBot2\ /Y
@ping 127.0.0.1 -n 5 -w 1000 > nul
GOTO TOP

Create a new text file and copy the code I gave you into it. Change the two file paths to wherever the logs are kept. Then rename the file but give it the extension "bat", for example stealth.bat

Then simply run the batch file before playing DotA. It copies the log every 5 seconds, that's what the ping delay is as the SLEEP command doesn't work in XP and Vista. Don't worry you're just pinging yourself so no bandwidth used.

To exit it press Ctrl+C.

Where do you play DotA?
 
i play DotA on Azeroth in the TDA League. I assume you play yourself?

And thanks for the script! As I get off work I will check it out.
 
Status
Not open for further replies.
Back
Top Bottom