Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Write a program to print the current folder name in the local system.
#5
Solved: 11 Years, 3 Months, 3 Weeks ago
Hi,

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
Reply


Messages In This Thread
RE: Write a program to print the current folder name in the local system. - by bfakruddin - 01-06-2010, 04:35 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  System Utility Syntax chita26 1 4,913 11-04-2014, 12:41 PM
Last Post: vinod123
  Error in getting sum of numbers program QTpier 2 3,011 07-18-2014, 01:53 PM
Last Post: QTpier
  Delete icon in System tray arpan 2 4,047 07-12-2013, 07:38 PM
Last Post: arpan
  Creating a folder from within a reusable action. sd3 2 3,182 06-18-2013, 03:20 PM
Last Post: learnQtptips
Exclamation How to get the system time using QTP qtplearner88 1 11,838 05-30-2012, 05:42 PM
Last Post: ssvali

Forum Jump:


Users browsing this thread: 2 Guest(s)