Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
QTP 11 - CreateFolder fails to create folder in shared network drive from Windows 7
#1
Not Solved
Hi,

QTP script contains the below code

Code:
Set oFso = CreateObject("Scripting.FileSystemObject")
oFso.CreateFolder("w:/A72A")

w:/ is mapped to the shared folder on network .

CreateFolder method fails to create folder in Shared network drive when we execute this script on Windows 7 system.

Note: UAC in Windows 7 system is disabled and I have administrator permissions.

Could you please let me know what could be causing this issue.

Thanks and Regards,
Pallavi
Reply
#2
Not Solved
Hi Pallavi,
Try this..
Code:
Set oFso = CreateObject("Scripting.FileSystemObject")
oFso.CreateFolder("w:\A72A")
Set oFso = nothing

Where "A72A" should be your folder name.
Even this does not work, plz share the error it is throwing.

Thanks,
Anirban
Reply
#3
Not Solved
It is not throwing any error.
The line of code which you have added (Set oFso = nothing) is to release the object reference. It will not help to create folder
Reply
#4
Not Solved
Slash was different..
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Click after CheckProperty to a WebElement passed via Function argument fails naruoga 0 1,030 02-28-2019, 11:46 AM
Last Post: naruoga
  Executing via create "RES"xx folder? nishitd 0 1,115 03-07-2018, 01:09 AM
Last Post: nishitd
  code for validation to create a sub folder smiley 0 1,436 10-19-2016, 10:08 PM
Last Post: smiley
  Updating Shared repository vinod_3466 3 4,267 06-29-2016, 02:16 PM
Last Post: Ankesh
  cannot create java virtual machine on QTP 12.02 version richa5685 0 1,857 02-23-2016, 11:18 AM
Last Post: richa5685

Forum Jump:


Users browsing this thread: 1 Guest(s)