Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Problem trying to create folder w/ dynamic folder name

Status
Not open for further replies.

PushCode

Programmer
Dec 17, 2003
573
US
Getting this error: Expected ')'

Here's the code:
Code:
'Create an instance of the FileSystemObject
	Dim objFSO
	Set objFSO = Server.CreateObject("Scripting.FileSystemObject")
	
	'Create the folder
	objFSO.CreateFolder("C:\Inetpub\[URL unfurl="true"]wwwroot\clients\milltrailers\img\products\"[/URL] &prod_id& ")"
Any thoughts? Thanks!
 
I think you've got your quotes mixed up
Code:
'Create an instance of the FileSystemObject
    Dim objFSO
    Dim myStr
    Set objFSO = Server.CreateObject("Scripting.FileSystemObject")   
    'Create the folder
    myStr= "C:\Inetpub\[URL unfurl="true"]wwwroot\clients\milltrailers\img\products\"[/URL] & prod_id 
objFSO.CreateFolder(myStr)

___________________________________________________________
If you want the best response to a question, please check out FAQ222-2244 first.
'If we're supposed to work in Hex, why have we only got A fingers?'
Drive a Steam Roller
Steam Engine Prints
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top