Intro Download and install Frequently Asked Questions Tips and tricks

Homepage







© J.C. Kessels 2009
MyDefrag Forum
October 25, 2014, 12:06:02 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: Problem moving a folder away  (Read 1719 times)
tonne
JkDefrag Hero
*****
Posts: 55


View Profile
« on: February 22, 2009, 12:44:11 pm »

I am trying to move a folder away into a specific location, but cannot make it work with directoryname, only fullpath - see comments in the script /* tonne: */
Title('Move directory away')
Description('
Move directory away
')

Slowdown(/*SLOWDOWN*/)
Debug(/*DEBUG*/)
OtherInstances(exit)
WhenFinished(/*WHENFINISHED*/)

VolumeSelect
  Removable(no) and Writable(yes) and Mounted(yes)
  /*VOLUMES*/
VolumeActions

  ReclaimMFTzone()

  FileSelect
    FileName("$mft")
    /*EXCLUDE*/
  FileActions
    SortByName(Ascending)
  FileEnd

  FileSelect
    Directory(yes)
    /*EXCLUDE*/
  FileActions
    Defragment()
    FastFill()
  FileEnd

  SetBeginOfZone(/*FREESPACE*/)

  FileSelect
    ImportListFromBootOptimize()
    /*EXCLUDE*/
  FileActions
    Defragment()
    FastFill()
  FileEnd

  FileSelect
/* tonne: NOT ( DirectoryName("xfiles") -- dont work */
    NOT ( FullPath("C:\Documents and Settings\xxxx\images\xfiles\*.jpg") )
  FileActions
    Defragment()
    FastFill()
  FileEnd
 
  SetBeginOfZone(Absolute(5000))
 
  FileSelect
/* tonne: NOT ( DirectoryName("xfiles") -- dont work */
    FullPath("C:\Documents and Settings\xxxx\images\xfiles\*.jpg")
  FileActions
    SortByName(ASCENDING)
  FileEnd
 
VolumeEnd
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!