By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
432,009 Members | 1,767 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 432,009 IT Pros & Developers. It's quick & easy.

Concatenation of a parameter

P: 1
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...........
Jan 11 '08 #1
Share this Question
Share on Google+
2 Replies


QVeen72
Expert 100+
P: 1,445
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
Jan 11 '08 #2

Expert 5K+
P: 8,434
i have a problem in above script .................this in VB Script.........
What kind of problem?
Jan 13 '08 #3

Post your reply

Sign in to post your reply or Sign up for a free account.