Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How can i use Now statement to create folder
#2
Solved: 10 Years, 10 Months ago
Hi Kishore,

Here we go !!

Code:
Dim fso, f
   Set fso = CreateObject("Scripting.FileSystemObject")
   Set f = fso.CreateFolder("c:\"&replace(replace(now,"/","-"),":","-"))
   NewFolder_Path= f.Path
   NewFolder_Name=f.Name
   msgbox NewFolder_Path
   msgbox NewFolder_Name
Reply


Messages In This Thread
RE: How can i use Now statement to create folder - by sreekanth chilam - 01-29-2011, 01:03 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Executing via create "RES"xx folder? nishitd 0 1,130 03-07-2018, 01:09 AM
Last Post: nishitd
  code for validation to create a sub folder smiley 0 1,441 10-19-2016, 10:08 PM
Last Post: smiley
  [UFT] Close opened folder robertosalemi 1 3,173 02-10-2016, 07:06 PM
Last Post: robertosalemi
  Run scripts from folder badri 1 2,674 11-26-2014, 06:18 PM
Last Post: vinod123
  QTP 11 - CreateFolder fails to create folder in shared network drive from Windows 7 Pallavi 3 3,421 02-25-2014, 02:04 PM
Last Post: guin.anirban

Forum Jump:


Users browsing this thread: 1 Guest(s)