Current location: Hot Scripts Forums » Programming Languages » ASP » creating a new folder with a self generating id# after a form is sumbitted


creating a new folder with a self generating id# after a form is sumbitted

Reply
  #1 (permalink)  
Old 02-21-05, 01:13 PM
bhinkle bhinkle is offline
Newbie Coder
 
Join Date: Dec 2004
Posts: 23
Thanks: 0
Thanked 0 Times in 0 Posts
creating a new folder with a self generating id# after a form is sumbitted

ok,
try this one....
i have a insert record form. each new record is assigned a projectid, i wrote some java and it generates it own its own. this record has a link button that is going to be called "a project number". when you hit this link button, it opens a folder which has a path to the location of this folder named " a project number".
my problem is i need this form to automatically create a folder in a certain location, named " a project number", everytime this new record is submitted?
ex. Q://bla/bla/blabla/2005001
i have the location, i just dont know the code to create a folder in it...
any thoughts anyone??

thanks
any help is greatly appreciated....
bryan
Reply With Quote
  #2 (permalink)  
Old 02-21-05, 02:01 PM
koncept
Guest
 
Posts: n/a
ya,

<%
Dim objFSO
Set objFSO= Server.CreateObject("Scripting.FileSystemObject")

'Create the folder
If Not objFSO.FolderExists("C:\codetoad") then
objFSO.CreateFolder("C:\codetoad")
End If

%>
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
checkCheckboxGroup broken after form consolidation ski_woman JavaScript 0 01-12-05 11:00 AM
Script for generating webpage from a form rug PHP 2 11-15-04 04:36 PM
formmail problem gscraper Perl 12 08-27-04 03:06 AM
Help creating HTML form response. digitalje5u5 PHP 2 08-08-04 03:24 PM
Limit the form submission according to time bionicsamir PHP 7 05-09-04 11:10 PM


All times are GMT -5. The time now is 03:17 PM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.