Computer Forums

Member Login

Remember Me? Sign Up! | Forgot Password
 
Slogan
 
Computer Forums > PC Technology Zone > Windows Operating Systems and Software » syncing the same file from 2 different directories?
Closed Thread
Old 06-29-2009, 03:49 PM   #1 (permalink)
 
This is sparta!

Join Date: Oct 2006

Posts: 671

akasixcon is on a distinguished road

Default syncing the same file from 2 different directories?

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?)
__________________
Windows Vista Ultimate
2.26 Core 2 duo
4gb dd3 ram
9800m gts 512mb
17" 1920x1200 LCD
akasixcon is offline  
Old 06-29-2009, 10:49 PM   #2 (permalink)
Baez's Avatar
 

Join Date: Sep 2005

Location: Toronto, Canada

Posts: 5,469

Baez is a glorious beacon of lightBaez is a glorious beacon of lightBaez is a glorious beacon of lightBaez is a glorious beacon of lightBaez is a glorious beacon of light

Default Re: syncing the same file from 2 different directories?

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?
__________________


Last edited by Baez; 06-29-2009 at 10:52 PM.
Baez is online now  
Old 07-01-2009, 08:32 AM   #3 (permalink)
 
This is sparta!

Join Date: Oct 2006

Posts: 671

akasixcon is on a distinguished road

Default Re: syncing the same file from 2 different directories?

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.
__________________
Windows Vista Ultimate
2.26 Core 2 duo
4gb dd3 ram
9800m gts 512mb
17" 1920x1200 LCD
akasixcon is offline  
Old 07-01-2009, 02:35 PM   #4 (permalink)
Baez's Avatar
 

Join Date: Sep 2005

Location: Toronto, Canada

Posts: 5,469

Baez is a glorious beacon of lightBaez is a glorious beacon of lightBaez is a glorious beacon of lightBaez is a glorious beacon of lightBaez is a glorious beacon of light

Default Re: syncing the same file from 2 different directories?

Cool I play TDA and DXD on Azeroth.

And no problem glad to help.
__________________

Baez is online now  
Old 07-02-2009, 07:31 PM   #5 (permalink)
 
This is sparta!

Join Date: Oct 2006

Posts: 671

akasixcon is on a distinguished road

Default Re: syncing the same file from 2 different directories?

whats your b.net account name?
__________________
Windows Vista Ultimate
2.26 Core 2 duo
4gb dd3 ram
9800m gts 512mb
17" 1920x1200 LCD
akasixcon is offline  
Old 07-05-2009, 01:37 PM   #6 (permalink)
Baez's Avatar
 

Join Date: Sep 2005

Location: Toronto, Canada

Posts: 5,469

Baez is a glorious beacon of lightBaez is a glorious beacon of lightBaez is a glorious beacon of lightBaez is a glorious beacon of lightBaez is a glorious beacon of light

Default Re: syncing the same file from 2 different directories?

Same as my forum name
__________________

Baez is online now  
 
Closed Thread

Thread Tools
Display Modes

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
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
logs. please analyze myr707 HijackThis Logs (finished) 5 06-11-2009 02:31 PM
wincodecpro infestation clcrutch Virus - Spyware Protection / Detection 16 05-18-2009 07:09 PM
Installing Ubuntu. 95BlackGA Linux, BSD, other *nixes & Open Source Software 1 10-16-2008 09:44 PM
WTF is a Bad Block? MikesCreation Hardware Troubleshooting 18 02-24-2008 09:31 PM
Another Hijack Log boo HijackThis Logs (finished) 17 06-26-2007 12:30 PM