Forum Discussion
Did you tried with simple code, without network mapping.
Set oFSO = CreateObject("Scripting.FileSystemObject") oFSO.CopyFile "C:\Files\Test.txt", "\\compname\c$\destination_Folder\Test.txt", True
If not working, try to manually MAP to the network and pass the network path and try.
- AlexKaras10 years agoChampion Level 3
Even more simple one-liner that uses aqFileSystem.CopyFile() call might be considered... :)
- prasadblv10 years agoNew Contributor
Thanks for your reply :)
I have tried already by mapping the destination to 'Z' drive. Still i am not able to copy. Please suggest if you have any other work around for this problem.
Note1: i am able to copy file to the parent folder of the destination folder but not to the destination folder.
Note2: i am able to copy file to the destination folder using Ranorex code but not vbscript with testcomplete.
Thanks
Vara Prasad
- AlexKaras10 years agoChampion Level 3
Hi,
> i am able to copy file to the destination folder using Ranorex code but not vbscript with testcomplete.
Check that the account used to start TestComplete has permissions (both network and on the remote system) to create files on the target remote folder.
Related Content
- 2 years ago
- 4 years ago
- 4 years ago