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

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » zMUD General Discussion
Talahaski
Enchanter


Joined: 10 Oct 2000
Posts: 656
Location: USA

PostPosted: Sun Sep 22, 2002 9:41 pm   

#log and variable handling
 
I'm trying to change the directory I log too.

My previous log command looked like the following, and it worked great:

#log C:mudnamecharactername%time( yyyymmdd).txt

I would like to move my logging to the My Documents folder. The problem is when I try the following, the log command does not work because of the spaces in the directory name.

#log C:Documents and Settingsmudnamecharactername%time( yyyymmdd).txt

If I put quotes around it, then the %time function does not get parsed.

I thought about setting up a variable, but how would I string the parts of the variable together.

part 1 C:Documents and Settingsmudnamecharactername
part 2 %time( yyyymmdd)
part 3 .txt

So the final log command would just like like:

#log {@log_ID}

Talahaski
Processor PIII 1000
Memory 265MB
Video NVIDIA 64MB
Windows XP
Zmud Version 6.34
Zmapper Version 1.10
Reply with quote
LightBulb
MASTER


Joined: 28 Nov 2000
Posts: 4817
Location: USA

PostPosted: Sun Sep 22, 2002 10:42 pm   
 
Use the directory's MS-DOS name, you can get it by looking at the directory's properties. It will probably be something like MYDOCU~1 for the "My Documents" directory. Don't forget that zMUD uses ~ as a special character, so you'll actually need two of them.

LightBulb
Senior Member
Reply with quote
Talahaski
Enchanter


Joined: 10 Oct 2000
Posts: 656
Location: USA

PostPosted: Mon Sep 23, 2002 1:24 am   
 
any other way besides uding the dos name. Dos names can change, especially from home to work PC. the number following the first part of the name can change depending on who created the first folder with similar name.

Talahaski
Processor PIII 1000
Memory 265MB
Video NVIDIA 64MB
Windows XP
Zmud Version 6.34
Zmapper Version 1.10
Reply with quote
Vijilante
SubAdmin


Joined: 18 Nov 2001
Posts: 5187

PostPosted: Mon Sep 23, 2002 10:58 am   
 
Cough, cough %concat.

#LOG %concat("C:Documents and Settings",%host,"",%char,"",%time("yyyymmdd"),".txt")
Reply with quote
Talahaski
Enchanter


Joined: 10 Oct 2000
Posts: 656
Location: USA

PostPosted: Mon Sep 23, 2002 5:57 pm   
 
Ahh, perfect.

Thanks Vijilante, I'll try it tonight.

Talahaski
Processor PIII 1000
Memory 265MB
Video NVIDIA 64MB
Windows XP
Zmud Version 6.34
Zmapper Version 1.10
Reply with quote
LightBulb
MASTER


Joined: 28 Nov 2000
Posts: 4817
Location: USA

PostPosted: Mon Sep 23, 2002 6:21 pm   
 
#log {C:Documents and Settingsmudnamecharactername%time( yyyymmdd).txt}

LightBulb
Senior Member
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » zMUD General Discussion 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