Connecting Tech Pros Worldwide Forums | Help | Site Map

Concatenation of a parameter

Newbie
 
Join Date: Jan 2008
Posts: 1
#1: Jan 11 '08
Expand|Select|Wrap|Line Numbers
  1. dim Fld_Name
  2. Fld_Nam =inputbox ("Enter the Folder Name","Creating of Log Folder","Log's Files")
  3.  
  4. Public Function Folder_Creation(Fld_Nam)
  5.    Dim fso, f,c
  6.    Set fso = CreateObject("Scripting.FileSystemObject")
  7.    Set f = fso.CreateFolder("C:\Documents and Settings\shyam\Desktop\" & Fld_Nam)
  8.  '  CreateFolderDemo = f.Path
  9.  
  10. End Function
  11.  
  12.  
  13. CreateFolder("C:\Documents and Settings\shyam\Desktop\" & Fld_Nam)
i have a problem in above script .................this in VB Script.........


Can any one help me out...........

QVeen72's Avatar
Moderator
 
Join Date: Oct 2006
Location: Bangalore
Posts: 1,385
#2: Jan 11 '08

re: Concatenation of a parameter


Hi,

Before creating the folder, first check if this path :
C:\Documents and Settings\shyam\Desktop
Exists...?

Not Suer of this but, if using XP, then only "Administrator" has Create new access to
"Documents and Settings"..


Regards
Veena
Moderator
 
Join Date: Oct 2006
Location: Australia
Posts: 7,748
#3: Jan 13 '08

re: Concatenation of a parameter


Quote:

Originally Posted by testingwithshyam

i have a problem in above script .................this in VB Script.........

What kind of problem?
Reply