I'd like to create some service to automatically defrag some files/folders
with my own logic. Not an entire volume, but files I want using the rules I
want to relocate them. Using win APIs to be sure to leave the file system
ok.
The first example you posted in previous message is a good starting point to
this goal, but without a serious documentation about APIs it seems it's too
hard creare this software.
The first page you posted here is an other good help, but the WMI document
isn't useful because I don't need to start the standard windows engine, but
manually to relocate my files where I want.
thanks
[quoted text, click to view] ""Walter Wang [MSFT]"" <wawang@online.microsoft.com> wrote in message
news:yEn4HZXNIHA.5204@TK2MSFTNGHUB02.phx.gbl...
> Thanks Willy for your input.
>
> Hi Trapulo,
>
> Would you please let us know what's your requirement here?
>
> You may find following information helpful to understand how defragment
> works:
>
> #Inside Windows NT Disk Defragmenting
>
http://www.microsoft.com/technet/sysinternals/information/DiskDefragmenting. > mspx
>
> To add to Willy's suggestion about defragment using WMI, please refer to
> following document:
>
> #Defragmenting Disks the Windows 2003 Way
>
http://www.microsoft.com/technet/scriptcenter/topics/win2003/defrag.mspx >
>
> Hope this helps.
>
>
> Regards,
> Walter Wang (wawang@online.microsoft.com, remove 'online.')
> Microsoft Online Community Support
>
> ==================================================
> When responding to posts, please "Reply to Group" via your newsreader so
> that others may learn and benefit from your issue.
> ==================================================
>
> This posting is provided "AS IS" with no warranties, and confers no
> rights.
>