Intro Download and install Frequently Asked Questions Tips and tricks

Homepage







© J.C. Kessels 2009
MyDefrag Forum
May 25, 2013, 09:11:03 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: can i move folders or files to a specific place of the hard disk (lcn ) ?  (Read 828 times)
drugo
JkDefrag Hero
*****
Posts: 105


View Profile
« on: July 02, 2011, 02:33:44 pm »

hi

can i move folders of files to a specific place of the partition ?

like  for example lcn=16.426.940

i found the lcn  moving the mouse in the mydefrag window

thanks
Logged
Darlis
JkDefrag Hero
*****
Posts: 1709


View Profile WWW
« Reply #1 on: July 02, 2011, 02:52:28 pm »

Code:
...
VolumeActions

    /* Set the position */
    MakeGap(16426940 * !BytesPerCluster!, DoNotVacate)

    /* Move the files to this position */
    FileSelect
        /* Select some files */
    FileActions
        SortByWhatever()
        /* Or use */
        MoveUpToZone()
        FastFill()
    FileEnd

VolumeEnd
« Last Edit: July 02, 2011, 02:55:30 pm by Darlis » Logged

Need help creating a script? Try MyDefrag Script Creator.
drugo
JkDefrag Hero
*****
Posts: 105


View Profile
« Reply #2 on: July 02, 2011, 05:27:15 pm »



thanks a lot


Code:
Title('move.')
Description("move @ ..")

VolumeSelect
  CommandlineVolumes()
  and Removable(no)
  and Writable(yes)
  and Mounted(yes)
VolumeActions
 /* Set the position */
    MakeGap(16426940 * !BytesPerCluster!, DoNotVacate)

    /* Move the files to this position */
    FileSelect
        /* Select some files */
     FileName("pagefile.sys")
     or FileName("hyper.sys")
     or or DirectoryName("c:\photos")
    FileActions
        SortByWhatever()
        /* Or use */
        MoveUpToZone()
        FastFill()
    FileEnd

VolumeEnd

is right?
cheers
Logged
Darlis
JkDefrag Hero
*****
Posts: 1709


View Profile WWW
« Reply #3 on: July 02, 2011, 06:10:57 pm »

  • the third "or" is too much
  • replace "SortByWhatever" with one of the SortBy FileActions if you want to sort them. Omit this line if don't want to do this.
  • don't you mean "hiberfil.sys" instead of "hyper.sys"?
Logged

Need help creating a script? Try MyDefrag Script Creator.
drugo
JkDefrag Hero
*****
Posts: 105


View Profile
« Reply #4 on: July 02, 2011, 06:40:47 pm »

  • the third "or" is too much
  • replace "SortByWhatever" with one of the SortBy FileActions if you want to sort them. Omit this line if don't want to do this.
  • don't you mean "hiberfil.sys" instead of "hyper.sys"?
thanks
Quote
don't you mean "hiberfil.sys" instead of "hyper.sys"?
i mean the system file in w7 ,i don't know exactly how it's his name , because it's hidden

Code:
Title('move.')
Description("move @ ..")

VolumeSelect
  CommandlineVolumes()
  and Removable(no)
  and Writable(yes)
  and Mounted(yes)
VolumeActions
 /* Set the position */
    MakeGap(16426940 * !BytesPerCluster!, DoNotVacate)

    /* Move the files to this position */
    FileSelect
        /* Select some files */
     FileName("pagefile.sys")
     or FileName("hyper.sys")
     or DirectoryName("c:\photos")
    FileActions
         /* Or use */
        MoveUpToZone()
        FastFill()
    FileEnd

now should i work?
thanks a lot
Logged
Darlis
JkDefrag Hero
*****
Posts: 1709


View Profile WWW
« Reply #5 on: July 02, 2011, 07:05:11 pm »

i mean the system file in w7 ,i don't know exactly how it's his name , because it's hidden
Which system file? There is no file "hyper.sys". The hibernation file name hasn't changed in Win7, if that's the file you're referring to. Btw. you can make hidden files visible if you set the option the Explorer.

now should i work?
If you append "VolumeEnd", yes.  Wink
Logged

Need help creating a script? Try MyDefrag Script Creator.
TAC109
JkDefrag Senior
****
Posts: 46


View Profile
« Reply #6 on: July 03, 2011, 12:06:26 am »

now should i work?
Of course, to defrag pagefile.sys and hiberfil.sys you'll need to boot to another Windows system first, such as a PE system which boots off CD or DVD. These two files will be locked by the normal running system, preventing defragmentation.
Logged
drugo
JkDefrag Hero
*****
Posts: 105


View Profile
« Reply #7 on: July 03, 2011, 06:24:18 am »


Quote
If you append "VolumeEnd", yes.  Wink

thanks
it gave me an error i tried to move the pagefile.sys
fatal error , can't execute the script lexical error line 11 colum 24
unknow symbol
Code:
Title('move.')
Description("move @pagefile.sys..")

VolumeSelect
  CommandlineVolumes()
  and Removable(no)
  and Writable(yes)
  and Mounted(yes)
VolumeActions
 /* Set the position */
    MakeGap(16426940 * !BytesPerCluster!, DoNotVacate)

    /* Move the files to this position */
    FileSelect
        /* Select some files */
     FileName("pagefile.sys")
    FileActions
         /* Or use */
        MoveUpToZone()
        FastFill()
    FileEnd

VolumeEnd
Logged
Darlis
JkDefrag Hero
*****
Posts: 1709


View Profile WWW
« Reply #8 on: July 03, 2011, 06:38:26 am »

Ah, sorry. The exclamation marks are only used for macros or within strings.
Code:
MakeGap(16426940 * BytesPerCluster, DoNotVacate)
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!