01-06-2010, 04:35 PM
Hi,
Here is the code to get the only folder name not all the path of a folder.
Code:
Here is the code to get the only folder name not all the path of a folder.
Code:
Code:
dim f,fso
set fso=createobject("scripting.filesystemobject")
set f=fso.getfolder("E:\Baba_QTP\QTP\Scripts")
msgbox "Path of the Folder : "&f
ext=split(f,"\")
msgbox "Exact Folder Name : "&Exact
Function Exact()
for i=0 to ubound(ext)
Exact=ext(i)
Next
End Function