Micro Focus QTP (UFT) Forums
QTP 11 - CreateFolder fails to create folder in shared network drive from Windows 7 - 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: QTP 11 - CreateFolder fails to create folder in shared network drive from Windows 7 (/Thread-QTP-11-CreateFolder-fails-to-create-folder-in-shared-network-drive-from-Windows-7)



QTP 11 - CreateFolder fails to create folder in shared network drive from Windows 7 - Pallavi - 02-24-2014

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


RE: QTP 11 - CreateFolder fails to create folder in shared network drive from Windows 7 - guin.anirban - 02-24-2014

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


RE: QTP 11 - CreateFolder fails to create folder in shared network drive from Windows 7 - Pallavi - 02-24-2014

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


RE: QTP 11 - CreateFolder fails to create folder in shared network drive from Windows 7 - guin.anirban - 02-25-2014

Slash was different..