Micro Focus QTP (UFT) Forums
Copy file to network shared location - Printable Version

+- Micro Focus QTP (UFT) Forums (https://www.learnqtp.com/forums)
+-- Forum: Micro Focus UFT (earlier known as QTP) (https://www.learnqtp.com/forums/Forum-Micro-Focus-UFT-earlier-known-as-QTP)
+--- Forum: UFT / QTP Beginners (https://www.learnqtp.com/forums/Forum-UFT-QTP-Beginners)
+--- Thread: Copy file to network shared location (/Thread-Copy-file-to-network-shared-location)



Copy file to network shared location - sams001 - 04-03-2013

Hi All,

My requirement is to access a UNC path/network shared location (e.g.: \\ABC\def.jar\lib\), take backup of a file into the same folder with a new name. For this i am using <FileSystemrObject>.CopyFile method, but its throwing run time error - Permission denied. WHen i do the same operation manually i am getting "Do you want to move or copy file from this zone" popup dialog, if i click on yes button, then the backup file gets created.

But how do i handle this in VBscript?

Anyone please help.

Thanks
Sams