Intro Download and install Frequently Asked Questions Tips and tricks

Homepage







© J.C. Kessels 2009
MyDefrag Forum
May 24, 2013, 05:12:58 am *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: 1 [2] 3
  Print  
Author Topic: [Tool] MyDefrag Tray Tools  (Read 23374 times)
yo612
JkDefrag Junior
**
Posts: 5


View Profile
« Reply #15 on: September 08, 2009, 08:36:13 pm »

Yes it works perfectly with other script. But I have edited the script and found nothing incorrect.

This is the script :
# MyDefrag v4.0 default script: Force Together
#
# This is an example script.

Title('Force Together')
Description('
Move all the files and directories to the beginning of the disk, on all
the fixed, mounted, writable disks on the computer. Files will be
fragmented to perfectly fill all the gaps.
')

RunScript('Settings.MyD')

VolumeSelect
//  Select the volumes that you want to process here. By default no volumes are
//  processed. There are many functions that you can use to select volumes, see
//  the "VolumeBoolean" chapter in the manual.
//  For example:
//    Name("d:")
VolumeActions
  FileSelect
    All
  FileActions
    ForcedFill()
  FileEnd
VolumeEnd


I think FileSelect is good and FileActions too cause ForcedFill() is an item descripted in mydefrag.
You can see this at :
http://www.mydefrag.com/FileActions-ForcedFill.html
« Last Edit: September 08, 2009, 08:39:32 pm by yo612 » Logged
jonib
JkDefrag Hero
*****
Posts: 810


View Profile
« Reply #16 on: September 08, 2009, 08:45:22 pm »

You need to edit this section:
Code:
VolumeSelect
//  Select the volumes that you want to process here. By default no volumes are
//  processed. There are many functions that you can use to select volumes, see
//  the "VolumeBoolean" chapter in the manual.
//  For example:
//    Name("d:")
VolumeActions
Check here for details, and this has nothing to do with my tool.

jonib
Logged

yo612
JkDefrag Junior
**
Posts: 5


View Profile
« Reply #17 on: September 08, 2009, 08:54:04 pm »

Sorry.
You 're right cause this script has nothing to do with your tool but I was sure of you was able to help me in this script.
I appreciate very much your tool and your knowledge.
Thanks to watched me where was the problem in the script.
Logged
jonib
JkDefrag Hero
*****
Posts: 810


View Profile
« Reply #18 on: September 08, 2009, 09:02:47 pm »

Sorry.
You 're right cause this script has nothing to do with your tool but I was sure of you was able to help me in this script.
No need to be sorry, I just meant that this thread is not optimal for non Tray Tools (generic) MyDefrag questions.

Did you get the script working?

jonib
Logged

yo612
JkDefrag Junior
**
Posts: 5


View Profile
« Reply #19 on: September 08, 2009, 09:22:51 pm »

Yes it's fine
I have just add this :

VolumeSelect
  CommandlineVolumes()
  and Removable(no)
  and Writable(yes)
  and Mounted(yes)

and it works very well with your tool.


So to come bakc to your tool, is it possible to launch it at the startup of windows by a key in the registry in HKLM:Run due to the restriction of the UAC ? May be yes, but I've not tried yet.
Logged
jonib
JkDefrag Hero
*****
Posts: 810


View Profile
« Reply #20 on: September 08, 2009, 09:30:59 pm »

So to come bakc to your tool, is it possible to launch it at the startup of windows by a key in the registry in HKLM:Run due to the restriction of the UAC ? May be yes, but I've not tried yet.
I haven't done any testing on Vista or Windows 7 as I'm still using XP, I'll do some testing on Windows 7 tomorrow.

jonib
Logged

jonib
JkDefrag Hero
*****
Posts: 810


View Profile
« Reply #21 on: September 13, 2009, 07:39:37 pm »

I have updated to work with the new MyDefrag 4.2.0 beta.
Small change to find MyDefrag.

Edit: I have updated again to ver 0.63, I had to change one more thing to detect the new MyDefrag.

jonib
« Last Edit: September 13, 2009, 07:53:26 pm by jonib » Logged

jonib
JkDefrag Hero
*****
Posts: 810


View Profile
« Reply #22 on: October 04, 2009, 02:21:06 pm »

I have updated to 0.64, now it should detect the new 4.2.1 version of MyDefrag.

jonib
Logged

abwarts
JkDefrag Junior
**
Posts: 8


View Profile
« Reply #23 on: October 29, 2009, 02:06:11 pm »

hello

this add-on is great but since i've updated to version 4.2.4, i cant get it to work. worse i cant reinstall it anymore as i now get everytime this error:
error can't load icon. the current thread will exit

specifically: mydefrag.exe
line#
-> 009: menu, tray,icon, %mydefragpath%mydefrag

i do get an incon in the taskbar but all i can choose from the menu is
suspend hotkeys
pause script
exit

what i can do to have it run again?? i've tried uninstalling mydefrag and the tools, going back to ver 4.2.3 but no change at all i now always get that message Sad
Logged
jonib
JkDefrag Hero
*****
Posts: 810


View Profile
« Reply #24 on: October 29, 2009, 02:23:44 pm »

this add-on is great but since i've updated to version 4.2.4, i cant get it to work. worse i cant reinstall it anymore as i now get everytime this error:
error can't load icon. the current thread will exit

specifically: mydefrag.exe
line#
-> 009: menu, tray,icon, %mydefragpath%mydefrag

i do get an incon in the taskbar but all i can choose from the menu is
suspend hotkeys
pause script
exit
That's not a nice error, I'll add some error checking. The error basically complains that it can't find MyDefrag as it is using its icon.

Quote
what i can do to have it run again?? i've tried uninstalling mydefrag and the tools, going back to ver 4.2.3 but no change at all i now always get that message Sad
Do you have the latest version of the Tray tools from the first post in this thread? as I just tried it with MyDefrag 4.2.4 and it works fine.

jonib
Logged

abwarts
JkDefrag Junior
**
Posts: 8


View Profile
« Reply #25 on: October 29, 2009, 03:25:47 pm »

looks like i got it to work, so maybe i was doing the wrong thing....

i put both file from the zip in the mydefrag folder and it worked perfectly!!

i might have done that the 1st time i install your great tool but i don't remember doing that.....

anyway thanks for the reply and the tool (again)
Logged
jonib
JkDefrag Hero
*****
Posts: 810


View Profile
« Reply #26 on: October 29, 2009, 08:48:39 pm »

looks like i got it to work, so maybe i was doing the wrong thing....
Great you got it working. There should not be a way to do the wrong thing, hopyfully you are up to finding out what went wrong?
Quote
i put both file from the zip in the mydefrag folder and it worked perfectly!!
You only need the .exe as the .ahk file is the script source code. And it should work from any directory.
Quote
anyway thanks for the reply and the tool (again)
You are welcome for both Smiley

Would you mind running this Test.exe tool and posting the Test.log? Hopefully it can show why it didn't work for you.

jonib
Logged

abwarts
JkDefrag Junior
**
Posts: 8


View Profile
« Reply #27 on: October 30, 2009, 12:47:06 am »

here it is:

shell: "C:\Program Files\MyDefrag v4.2.3\MyDefrag.exe" -r "%1" %*
shell split: C:\Program Files\MyDefrag v4.2.3\MyDefrag.exe
shell path: C:\Program Files\MyDefrag v4.2.3
MyDefrag path: MyDefrag.exe

the surprising thing is that this is the old directory from my defrag!! i've since delete that folder and now it is located in a mydefrag folder, since with every new version it create by default a new one stating the ver. number)
Logged
jonib
JkDefrag Hero
*****
Posts: 810


View Profile
« Reply #28 on: October 30, 2009, 06:46:28 am »

here it is:
Thanks
Quote
shell: "C:\Program Files\MyDefrag v4.2.3\MyDefrag.exe" -r "%1" %*
shell split: C:\Program Files\MyDefrag v4.2.3\MyDefrag.exe
shell path: C:\Program Files\MyDefrag v4.2.3
MyDefrag path: MyDefrag.exe
I see that my tool assumes that a path it finds for MyDefrag is the right one without checking that the MyDefrag.exe is actually there. I'll add some more checks.
Quote
the surprising thing is that this is the old directory from my defrag!! i've since delete that folder and now it is located in a mydefrag folder, since with every new version it create by default a new one stating the ver. number)
If you doubleclick a .MyD script, does it work?
The log shows that your old MyDefrag path is still in the registry here: HKLM\SOFTWARE\Classes\Applications\MyDefrag.exe\shell\open\command that is used as default action for MyDefrag scripts.

jonib
Logged

abwarts
JkDefrag Junior
**
Posts: 8


View Profile
« Reply #29 on: October 31, 2009, 07:35:23 pm »

after deleting the registry key, the test returned nothing for the shell lines, add 3 icon lines with the correct path to the mydefrag folder, and the last line is the same

double cliking a script execute it
Logged
Pages: 1 [2] 3
  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!