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 SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Help with fso statement

Status
Not open for further replies.

zishan619

Programmer
May 28, 2003
284
0
0
MX
What is wrong with this statement I keep getting an error invalid path or unknown path
sub btnRun_onclick()
dim filesys, newfolder, newfolderpath
newfolderpath = "..\images\TAS\TAS_PayrollFiles\" & document.all ("cboCC").value & ""
set filesys=CreateObject("Scripting.FileSystemObject")
If Not filesys.FolderExists(newfolderpath) Then
Set newfolder = filesys.CreateFolder(newfolderpath)
'Response.Write "A new folder has been created at: " & newfolderpath
Else
'Response.Write("File Exist creating excel file now)
End If
end sub
 
newfolderpath = sever.mappath("..\images\TAS\TAS_PayrollFiles\" & document.all ("cboCC").value & "")

Programming today is a race between software engineers striving to build better and bigger idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning. - Rick Cook (No, I'm not Rick)

zen.gif
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top