 |
Talahaski Enchanter
Joined: 10 Oct 2000 Posts: 656 Location: USA
|
Posted: 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 |
|
|
|
 |
LightBulb MASTER
Joined: 28 Nov 2000 Posts: 4817 Location: USA
|
Posted: 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 |
|
|
|
 |
Talahaski Enchanter
Joined: 10 Oct 2000 Posts: 656 Location: USA
|
Posted: 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 |
|
|
|
 |
Vijilante SubAdmin

Joined: 18 Nov 2001 Posts: 5187
|
Posted: Mon Sep 23, 2002 10:58 am |
Cough, cough %concat.
#LOG %concat("C:Documents and Settings",%host,"",%char,"",%time("yyyymmdd"),".txt") |
|
|
|
 |
Talahaski Enchanter
Joined: 10 Oct 2000 Posts: 656 Location: USA
|
Posted: 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 |
|
|
|
 |
LightBulb MASTER
Joined: 28 Nov 2000 Posts: 4817 Location: USA
|
Posted: Mon Sep 23, 2002 6:21 pm |
#log {C:Documents and Settingsmudnamecharactername%time( yyyymmdd).txt}
LightBulb
Senior Member |
|
|
|
 |
|
|
|