Intro Download and install Frequently Asked Questions Tips and tricks

Homepage







© J.C. Kessels 2009
MyDefrag Forum
June 19, 2013, 02:21:20 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: Small feature to organize logs better...  (Read 3749 times)
djsnay
Newbie
*
Posts: 4


View Profile WWW
« on: October 09, 2007, 02:35:19 pm »

First of all I love the product.  Keep it up..

The suggestion I have is to output the Full Compute Name in the beginning of the log file.  This way if you were using this tool for multiple computers, a person can look at the log files and organize it better.

Also if you can, at the end of a Defreg log put some extra lines or maybe a row of dashes to signify the end of the log before another one is started.

If these features are already there and I am doing something correctly, please let me know.

Thanks for the oppertunity to make this tool the best it can be.
Snay
Logged
jeroen
Administrator
JkDefrag Hero
*****
Posts: 7156



View Profile WWW
« Reply #1 on: October 09, 2007, 05:42:32 pm »

Quote from: "djsnay"
The suggestion I have is to output the Full Compute Name in the beginning of the log file.

Thanks for sharing your ideas, I appreciate it! I am willing to write the name of the computer, but where can I find it? In the registry somewhere? Is there a system function that I can call?

Quote from: "djsnay"
Also if you can, at the end of a Defreg log put some extra lines or maybe a row of dashes to signify the end of the log before another one is started.

JkDefrag always deletes any old logfile when it is started. It does not append.
Logged
djsnay
Newbie
*
Posts: 4


View Profile WWW
« Reply #2 on: October 09, 2007, 09:13:31 pm »

Your welcome, glad that I can help out..


The registery location when you can find the info is...

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters

Fron here you can grab the folllowing info..

Hostname


About the logs, I am sure that it appends the data.  I have a log file that was run against 5 computer and there were lines showing different paths which were on different computers.

I can verify this after the above feature of adding the Hostname in the Output log is completed.

Let me know if you need anything else.
Snay
Logged
cquinn
JkDefrag Hero
*****
Posts: 81


View Profile WWW
« Reply #3 on: October 10, 2007, 01:08:48 am »

Can you post that log file you have then?  And the command string you used to start the defrag?

It is not normal behaviour for a fresh run of Jkdefrag to append to an exisitng log file.
Logged
cf
JkDefrag Hero
*****
Posts: 65



View Profile WWW
« Reply #4 on: October 10, 2007, 01:19:00 pm »

Quote from: "jeroen"
Is there a system function that I can call?

Before you go the difficult way through the registry: There are the GetComputerName or GetComputerNameEx functions, which should give you what you want.
Logged

Try JkDefragStarter - the smallest GUI for JkDefrag out there
Tihs txet suhlod be dfgaeegrd!
jeroen
Administrator
JkDefrag Hero
*****
Posts: 7156



View Profile WWW
« Reply #5 on: October 10, 2007, 06:51:45 pm »

Quote from: "cf"
Before you go the difficult way through the registry: There are the GetComputerName or GetComputerNameEx functions, which should give you what you want.

Excellent, thank you very much!
Logged
djsnay
Newbie
*
Posts: 4


View Profile WWW
« Reply #6 on: October 10, 2007, 08:09:21 pm »

I am getting approval so I can release the log file, but none the less if I can not post the file, I would be able to verify the appendings if Hostnames can be displayed in the logs.

I am using SMS to run the CMD executable (JkDefragCmd.exe).

Thanks,
Snay
Logged
jeroen
Administrator
JkDefrag Hero
*****
Posts: 7156



View Profile WWW
« Reply #7 on: October 10, 2007, 11:30:10 pm »

Quote from: "djsnay"
I would be able to verify the appendings if Hostnames can be displayed in the logs.

The logfile is deleted shortly after JkDefrag starts up. If you don't believe me then take a look at the sources of JkDefrag, search for the _wunlink() system call. Perhaps you have run JkDefrag simultaneously on multiple computers, all using the same logfile on a network disk or something? Tip: use the "-l" commandline option to specify a different logfile for every instance.
Logged
JamesOff
JkDefrag Supporter
***
Posts: 11


View Profile
« Reply #8 on: October 17, 2007, 09:58:55 am »

Launch it like this:
Code:
jkdefrag.exe -l %COMPUTERNAME%.log

%COMPUTERNAME% is a system environment variable that contains the machine name.
Logged
djsnay
Newbie
*
Posts: 4


View Profile WWW
« Reply #9 on: October 17, 2007, 08:27:23 pm »

Thanks JamesOff...

I tried it that way and it worked better then what I originally wanted to do.

Snay
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!