>Declare Integer MoveFile in "Kernel32" String lpOldName, String lpNewName
>lret = MoveFile("OldDirName","NewDirName")
>return lret > 0 && 0 means failure
>
>You can not rename a directory so it appears on a different volume (drive).
>
Thanks Larry,
But with this I must depend if the WSH is installed, do you know to that with the API? ThanksPablo Roca
Clavo Congelados, S.A. (La Coruna - Spain)
Sysop of PortalFox
Join MasFoxPro campaign
http://www.masfoxpro.com