Register to post in forums, or Log in to your existing account
 

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » CMUD Beta Forum
jed
Adept


Joined: 18 Dec 2005
Posts: 246

PostPosted: Mon Aug 28, 2006 4:42 am   

File write location
 
Sorry if this is redundant to other posts or if the feature is already rolled into Cmud... Hopefully this can still get on the wishlist. In Zmud, I like the #write command and obviously use it with #file, however to my knowledge there is no way to change the directory of where the .txt output file is stored. It would be nice to write to a file in a different directory, or possibly to a subdirectory in the Cmud directory. If the ability to choose isn't rolled in, it would be nice if this subdirectory were limited to only the files created by #write
Reply with quote
shalimar
GURU


Joined: 04 Aug 2002
Posts: 4691
Location: Pensacola, FL, USA

PostPosted: Mon Aug 28, 2006 5:14 am   
 
in the #FILE comand, use the full file name
c:\logs\%title\%char\%time( "mm-dd-yy").txt
_________________
Discord: Shalimarwildcat
Reply with quote
jed
Adept


Joined: 18 Dec 2005
Posts: 246

PostPosted: Mon Aug 28, 2006 9:05 pm   still cant get it to work...
 
hmm still can't get it to work... I tried something simple:
#file 1 c:\testlog.txt
#write 1 TEEEESSSSSTTTTTT
and it wrote it to the zmud directory, not to the C drive...
Also I tried
#file 1 .\testlogs\testlog.txt
and
#file 1 ..\testlogs\testlog.txt

all of them still wrote to main zmud directory... any other suggestions?
Reply with quote
MattLofton
GURU


Joined: 23 Dec 2000
Posts: 4834
Location: USA

PostPosted: Mon Aug 28, 2006 11:32 pm   
 
I think it's not possible, but try using quotes?
_________________
EDIT: I didn't like my old signature
Reply with quote
Rorso
Wizard


Joined: 14 Oct 2000
Posts: 1368

PostPosted: Tue Aug 29, 2006 9:05 pm   
 
Actually zMUD and I guess CMUD too doesn't allow you to read/write files that aren't in the client directory for security reasons. Quote from the helpfile:
Quote:

The filename given in name is restricted to the current directory containing ZMUD.EXE and cannot refer to a EXE, HLP, or MUD file. This protects you from accidentally modifying important files on your disk.
Reply with quote
Vodoc
Apprentice


Joined: 11 Apr 2003
Posts: 119
Location: Sweden

PostPosted: Wed Aug 30, 2006 5:41 am   
 
That's interesting because I don't think there are any such restrictions with the #LOG command. Granted the #LOG command is a little more limited with what you can write, can't exactly write a binary file I guess. It can however be made to create great havoc among existing files, append the hosts file with new IP numbers etc.
Reply with quote
FiendishX
Wanderer


Joined: 19 Nov 2005
Posts: 53

PostPosted: Mon Mar 17, 2008 11:02 pm   
 
I know this is way late for a reply to this thread, but I find myself looking for a solution to a related problem, so I might as well add to it.

I've found that you actually can control where files go in zMUD by using the unix directory format.
C:\Program Files\ for instance becomes "/Program Files/"
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » CMUD Beta Forum All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

© 2009 Zugg Software. Hosted by Wolfpaw.net