Intro Download and install Frequently Asked Questions Tips and tricks

Homepage







© J.C. Kessels 2009
MyDefrag Forum
May 22, 2013, 09:28:55 pm *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: specify log file for multilple sessions  (Read 1077 times)
Tracey2031
JkDefrag Hero
*****
Posts: 55


View Profile
« on: January 21, 2011, 07:39:49 pm »

Add an option for alternate log & debuglog path/filename when running multiple sessions/instances of myDefrag.
Tracey
Logged
Darlis
JkDefrag Hero
*****
Posts: 1707


View Profile WWW
« Reply #1 on: January 21, 2011, 08:09:13 pm »

You can already change the path and name of the logfile, see WriteLogfile and AppendLogfile. You will have to create separate scripts with the different logfile names or you can work with Macros to set the logfile name with a parameter.
Logged

Need help creating a script? Try MyDefrag Script Creator.
woodfold
JkDefrag Senior
****
Posts: 31


View Profile
« Reply #2 on: March 26, 2011, 05:27:12 pm »

I did this, but it requires editting each script file. I used a multi-file search and replace program to do this, as I want seperate logs, but I don't want to change the scripts' code. Here's an example from AnalyzeOnly.MyD:

Code:
WriteLogfile("!ScriptTitle!.log","LogHeader")

VolumeSelect
  CommandlineVolumes()
VolumeActions
  AppendLogfile("!ScriptTitle!.log","LogAnalyzeOnly")
  Pause()
VolumeEnd

AppendLogfile("!ScriptTitle!.log","LogFooter")
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.5 | SMF © 2006-2008, Simple Machines LLC Valid XHTML 1.0! Valid CSS!