Howes
2006-05-26 15:36:38 UTC
Hi,
I am trying to copy a file from a directory location to a user's home
path by using the system variable %homepath%. VBS will not allow me to
do this citing an "invalid path" error. Is their a better way to
accomplish this copy? Here is an example of what I am trying to do:
objFSO.CopyFile "\\Server\ServerDir\file.txt",
"%homepath%\Favorites\file.txt",OverwriteExisting
Any suggestions would be appreciated.
Thank you in advance.
Daryl
I am trying to copy a file from a directory location to a user's home
path by using the system variable %homepath%. VBS will not allow me to
do this citing an "invalid path" error. Is their a better way to
accomplish this copy? Here is an example of what I am trying to do:
objFSO.CopyFile "\\Server\ServerDir\file.txt",
"%homepath%\Favorites\file.txt",OverwriteExisting
Any suggestions would be appreciated.
Thank you in advance.
Daryl