 |
StormDragon Newbie
Joined: 15 Dec 2004 Posts: 2
|
Posted: Wed Dec 15, 2004 8:21 pm
Moving Output Files Away From Default Folders |
I am trying to accomplish two things.
1) I have a autologger set up, using an ATCONNECT alias to set up a #LOG command. However, I would like to move the output so that it dumps the text files in a specific folder instead of the zMud folder.
2) I would also like to move the settings file out of the zMud/mudname folder to another location. I don't really care about most of the settings, except the .MUD file. If the rest of the world folder moves too, I can tolerate that. One possible solution I've thought of is having a trigger that saves a copy of the .mud file in another directory on disconnect. Its not perfect, but works fine for my purposes. I don't know how to do this, however.
I do not, however, want to install the zMud folder into that directory, if possible, I want the minimum extra files besides the .log and .mud files.
Thank you in advance. |
|
|
 |
a5hi5m Beginner
Joined: 04 Mar 2004 Posts: 24 Location: Australia
|
Posted: Wed Dec 15, 2004 10:46 pm |
you should be able to write your logs to any directory, by adding/putting this in your #atconnect alias
#var logfile {C:\Folder\folder2\logs\Dated logs\%time( "yyyy-mm-dd").txt}
#log @logfile
Where obviously you can put your own directory names. |
|
_________________ Smoking@BatMUD |
|
|
 |
Vijilante SubAdmin

Joined: 18 Nov 2001 Posts: 5182
|
Posted: Thu Dec 16, 2004 12:23 am |
You can use the #LAUNCH command to preform the copy. Simply have it run your system's command processor (command.com or cmd.exe) with the necessary parameter to preform the copy, something like "/c copy *.mud destination /s".
|
|
_________________ The only good questions are the ones we have never answered before.
Search the Forums |
|
|
 |
StormDragon Newbie
Joined: 15 Dec 2004 Posts: 2
|
Posted: Thu Dec 16, 2004 9:12 pm |
Ok, I fiddled around, here's what I'm using in my atconnect alias:
Code: |
#VAR Folder { C:\Folder1\Folder2\MudName\Mudname} {_nodef} "Basic"
#LOG @Folder.%time( "yyyy-mm-dd").txt |
You should note, this will turn out a txt called "Mudname.YYYY-MM-DD.txt" inside of folder Mudname. Also, this was designed to be put in a folder named Basic in the settings files, which is where I placed the atconnect alias, so I rigged the variable to appear in the same folder.
Seemes to work alright....for the log, anyways. Reason the variable is Folder, and then the log part seperate is because I wanted to dump a .mud file in the same place and didn't feel like using two variables.
Unfortunatly, I can't get the #SAVE command to read a file path. Instead, it grabs the folder at the end, and uses that name to create a .mud file which it dumps in the Mud's folder in the zMud directory. That doesn't do me much good, in this case.
-StormDragon
PS: I have yet to try the #LAUNCH trick. I don't think it'll work though, because I'm running this on a computer which I'm not the admin of and the admin disabled command prompt (long story). |
|
|
 |
|
|
|
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
|
|