Intro Download and install Frequently Asked Questions Tips and tricks

Homepage







© J.C. Kessels 2009
MyDefrag Forum
May 25, 2013, 08:48:32 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: Format of Variables written to log files.  (Read 818 times)
smurphdude
JkDefrag Senior
****
Posts: 29


View Profile
« on: December 11, 2010, 09:50:26 am »

Would it be possible for Mydefrag when writing variables containing numbers to log files to ignore Windows settings for digit grouping, and also to write numbers without leading blank spaces. Would facilitate creating log files that can also be run as a script.

Eg. I would like to use the following message definition in my script...

Quote
Message("Lastrunzone","
SETVARIABLE (Zone!Zonenumber!Begin,!ZoneBegin!)
")

but the output has leading blank spaces before the !Zonenumber!..

e.g.
Quote
SETVARIABLE (Zone                1Begin,                  0)

So instead I have to use the following.

Quote
Message("Lastrunzone1","
SETVARIABLE (Zone1Begin,!ZoneBegin!)
")
Message("Lastrunzone2","
SETVARIABLE (Zone2Begin,!ZoneBegin!)
")
Message("Lastrunzone3","
SETVARIABLE (Zone3Begin,!ZoneBegin!)
")
Message("Lastrunzone4","
SETVARIABLE (Zone4Begin,!ZoneBegin!)
")
Message("Lastrunzone5","
SETVARIABLE (Zone5Begin,!ZoneBegin!)
")
Message("Lastrunzone6","
SETVARIABLE (Zone6Begin,!ZoneBegin!)
")
Message("Lastrunzone7","
SETVARIABLE (Zone7Begin,!ZoneBegin!)
")
Message("Lastrunzone8","
SETVARIABLE (Zone8Begin,!ZoneBegin!)
")
)
« Last Edit: December 11, 2010, 10:45:56 am by smurphdude » Logged
jeroen
Administrator
JkDefrag Hero
*****
Posts: 7155



View Profile WWW
« Reply #1 on: December 12, 2010, 09:58:12 am »

I agree that the number formatting is not flexible enough. The way numbers are printed at the moment is useful for making logfiles, to print nicely formatted output, but it's not so good for other kinds of output. I have it on my list to make something more flexible. Perhaps a setting where the scriptwriter can change the number formatting, something like that.
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!