Allan,
>
>If I use erase, the file is not deleted. If I use adir() the file is in the resultant array, but again does not delete. If I try to remove the 'hidden' attribute with 'run attrib -h filename.ext', the attribute is not removed.
>
Are you able to remove the attribute from the command prompt? Also, you aren't by any chance putting "/n" in your run command are you? (this prevents it from working on my XP machine).
>
>Lastly, I am concerned about forcing the end user to install/enable Windows Script Hosting.
>
WSH is on W2K machines and later...even if they disable the relationship between a .VBS file and WSH, script commands should still work within a program.
Steve Gibson