Intro Download and install Frequently Asked Questions Tips and tricks

Homepage







© J.C. Kessels 2009
MyDefrag Forum
June 20, 2013, 11:51:56 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: Move file with MoveToEndOfDisk  (Read 1108 times)
holden321
Newbie
*
Posts: 2


View Profile
« on: October 14, 2011, 07:13:14 pm »

I try to move a file to the 'end' of a disk with this script but nothing done, no errors, nothing at all  Sad
Quote
VolumeSelect
   Name("d:")
   VolumeActions
      FileSelect
         FileName("D:\pagefile.sys")
         FileActions
            MoveToEndOfDisk()
      FileEnd
VolumeEnd
Logged
Darlis
JkDefrag Hero
*****
Posts: 1725


View Profile WWW
« Reply #1 on: October 14, 2011, 07:31:05 pm »

The script selects nothing because there is no file named "D:\pagefile.sys". You have to use FileName("pagefile.sys") instead.
But apart from that, the file has to be actually movable. If the file is in use by Windows, you can't move it. Even more important: If you move the file to the end of the volume you can experience a decrease in performance.
Logged

Need help creating a script? Try MyDefrag Script Creator.
holden321
Newbie
*
Posts: 2


View Profile
« Reply #2 on: October 14, 2011, 08:06:58 pm »

Thanks, I'll try to change the filename. I do it from another Windows.
So I should move the pagefile to the beginning of the volume to increase performance, right?
Logged
Darlis
JkDefrag Hero
*****
Posts: 1725


View Profile WWW
« Reply #3 on: October 14, 2011, 08:30:00 pm »

It doesn't have to be exactly at the beginning, you can place the system and program files there and the pagefile behind these.
Logged

Need help creating a script? Try MyDefrag Script Creator.
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!