Raised This Month: $ Target: $400
 0% 

use file somewhere in the computer


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
m0skVi4a
Senior Member
Join Date: May 2011
Location: Rousse, Bulgaria
Old 11-02-2012 , 05:19   use file somewhere in the computer
Reply With Quote #1

Is it possible to use .txt .cfg or .ini file that is not in the server folder (cstrike dir)?
I want to make my 3 servers use one file that is somewhere in the HDD so that the 3 servers use the data in the file?
MySQL is not solution.
m0skVi4a is offline
Send a message via Skype™ to m0skVi4a
Sylwester
Veteran Member
Join Date: Oct 2006
Location: Poland
Old 11-02-2012 , 05:59   Re: use file somewhere in the computer
Reply With Quote #2

If it's windows (2008, vista or newer) then you can use mklink command to create link somewhere in cstrike dir to a file located elsewhere.
__________________
Impossible is Nothing
Sylwester is offline
m0skVi4a
Senior Member
Join Date: May 2011
Location: Rousse, Bulgaria
Old 11-02-2012 , 12:17   Re: use file somewhere in the computer
Reply With Quote #3

Can you give an example?
m0skVi4a is offline
Send a message via Skype™ to m0skVi4a
Sylwester
Veteran Member
Join Date: Oct 2006
Location: Poland
Old 11-02-2012 , 13:04   Re: use file somewhere in the computer
Reply With Quote #4

example plugin using file cstrike\test.txt (writes hostname every 10 sec and displays contents with log_amx):
Spoiler


2 servers running this plugin:
Code:
H:\HLDS\hlds.exe
H:\HLDS2\hlds.exe
Create file that will be used as target for links:
Code:
H:\hlds_data\data.txt
Execute in cmd.exe:
Code:
mklink H:\HLDS\cstrike\test.txt H:\hlds_data\data.txt
mklink H:\HLDS2\cstrike\test.txt H:\hlds_data\data.txt
Now start both servers and see that plugin on both servers will write and read from H:\hlds_data\data.txt
__________________
Impossible is Nothing
Sylwester is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 11-02-2012 , 19:25   Re: use file somewhere in the computer
Reply With Quote #5

For Linux, you would use symlink.
__________________
fysiks is offline
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 01:30.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode