Intro Download and install Frequently Asked Questions Tips and tricks

Homepage







© J.C. Kessels 2009
MyDefrag Forum
May 20, 2013, 01:55:41 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: Problem when targeting disk root directory  (Read 2606 times)
MerleOne
JkDefrag Supporter
***
Posts: 19


View Profile
« on: February 25, 2007, 03:32:35 pm »

Hi,

I have observed a possible problem when using JkDefrag, both with 3.6 and 3.7, in the following situation:

I have defined a Total Commander Button which launches the following command :

JkDefrag -a 2 "%P"
where %P is the current source dir, with a '\' at the end.  That is, when the current selected dir is 'C:\Windows', the %P string equals to 'C:\Windows\'

It seems that this added '\' has a consequence when the selected dir is a root dir of a disk.  In that case I observed JkDefrag just launches the graphic window and finished instantly.

I was able to reproduce this on a command line :

JkDefrag -a 2 "C:\" does nothing (except displaying the file layout)
JkDefrag -a 2 "C:" works as intented and defrags all files from C:

When it's a subfolder there is no difference.

Is it normal ? If not, could this be fixed so that C:\ and C: are handled the same way.

Thanks !

.merle1.
Logged
jeroen
Administrator
JkDefrag Hero
*****
Posts: 7155



View Profile WWW
« Reply #1 on: February 26, 2007, 12:57:42 am »

Quote from: "MerleOne"
JkDefrag -a 2 "C:\"

The problem is not caused by JkDefrag, but by the odd double function of the backslash. Windows uses a backslash not only to separate subdirectories, but also to escape special characters. Look at the logfile and you will see that JkDefrag receives 'C:\"' in your problem case. Notice the double quote in there! Perhaps it will work for you if you specify "%P*" in the mask (notice the asterisk), instead of "%P".
Logged
MerleOne
JkDefrag Supporter
***
Posts: 19


View Profile
« Reply #2 on: February 26, 2007, 08:53:36 am »

Thanks, now it is working fine !!!!

.merle1.
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!