© J.C. Kessels 2009
MyDefrag Forum
June 20, 2013, 11:51:56 am
Welcome,
Guest
. Please
login
or
register
.
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News
:
Home
Help
Search
Login
Register
MyDefrag Forum
>
MyDefrag v4 Forum
>
Scripts, and other contributions
>
Move file with MoveToEndOfDisk
Pages: [
1
]
« previous
next »
Print
Author
Topic: Move file with MoveToEndOfDisk (Read 1108 times)
holden321
Newbie
Posts: 2
Move file with MoveToEndOfDisk
«
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
Quote
VolumeSelect
Name("d:")
VolumeActions
FileSelect
FileName("D:\pagefile.sys")
FileActions
MoveToEndOfDisk()
FileEnd
VolumeEnd
Logged
Darlis
JkDefrag Hero
Posts: 1725
Re: Move file with MoveToEndOfDisk
«
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
Re: Move file with MoveToEndOfDisk
«
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
Re: Move file with MoveToEndOfDisk
«
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
« previous
next »
Jump to:
Please select a destination:
-----------------------------
MyDefrag v4 Forum
-----------------------------
=> Announcements
=> Questions and help
=> Bugs and problems
=> Requests for new features
=> Scripts, and other contributions
-----------------------------
JkDefrag v3 Forum
-----------------------------
=> Announcements
=> Questions and help
=> Bugs and problems
=> Requests for new features
=> Programming with the library
Loading...