Intro Download and install Frequently Asked Questions Tips and tricks

Homepage







© J.C. Kessels 2009
MyDefrag Forum
May 24, 2013, 11:55:17 am *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: 3.24 Log file disable depends on order of arguments  (Read 2180 times)
Capsaicin
JkDefrag Supporter
***
Posts: 11


View Profile
« on: September 07, 2007, 03:53:57 am »

With 3.24 (and 3.23, too, I think), I noticed that if I specify the -a option before the -l option, it still logs the "optimizemode" to the log file, and then disables the logfile after that.

Great program. Can't wait for v4. Cheesy
Logged
jeroen
Administrator
JkDefrag Hero
*****
Posts: 7155



View Profile WWW
« Reply #1 on: September 07, 2007, 05:52:27 am »

Yes, the program analyses the commandline arguments one by one from left to right. It has always done it like that, it's not not new to this version. I suppose I can first scan all the arguments for a "-l" argument, and then scan again for the other arguments. Ok, I'll put it on the list. In the meantime you can get around this idiosyncracy by always putting the "-l" as the very first argument.
Logged
ewieldra
JkDefrag Hero
*****
Posts: 246



View Profile WWW
« Reply #2 on: September 07, 2007, 10:14:58 am »

if i read this correct :

Logfile commandline specification must always be done before all other arguments ?

so it must be
JkDefrag.exe  -l c:\log.txt -a 7 -d 2 -q c: d:

and not

JkDefrag.exe  -a 7 -d 2 -q c: d:  -l c:\log.txt

Emiel
Logged

Best Regards,

Emiel Wieldraaijer

Download JkDefragGUI from http://www.wieldraaijer.nl
jeroen
Administrator
JkDefrag Hero
*****
Posts: 7155



View Profile WWW
« Reply #3 on: September 07, 2007, 11:50:14 am »

Quote from: "ewieldra"
Logfile commandline specification must always be done before all other arguments ?

It's not an absolute requirement, but it's better, yes. Since v3.17 the program will write lines to the logfile about interpreting the commandline. The "-l" argument will change the name of the logfile, but by then some lines may already have been written to the default logfile. To avoid that it should be the first argument.
Logged
ewieldra
JkDefrag Hero
*****
Posts: 246



View Profile WWW
« Reply #4 on: September 07, 2007, 12:34:32 pm »

Thnx

Emiel
Logged

Best Regards,

Emiel Wieldraaijer

Download JkDefragGUI from http://www.wieldraaijer.nl
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!