Wrox Programmer Forums

Need to download code?

View our list of code downloads.

| FAQ | Members List | Search | Today's Posts | Mark Forums Read
Classic ASP Basics For beginner programmers starting with "classic" ASP 3, pre-".NET." NOT for ASP.NET 1.0, 1.1, or 2.0
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Classic ASP Basics section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old March 16th, 2004, 09:17 AM
Authorized User
 
Join Date: Nov 2003
Location: , , .
Posts: 19
Thanks: 0
Thanked 0 Times in 0 Posts
Default checking directories for files

Hi,

I have built an application that collects data submitted from an asp
form, this data is then written to a file with an .req extension, and
the file is saved into a directory on the server, this folder is
monitored by a seperated application that picks up the files with the
.req extension and the writes the results to the data submitted back to
the file and the re-names it with a .PAR extension.

What I want to do is re-direct the user to a page once the form has been
submitted, this page will then monitor the directory and display the
link once the file has been renamed, which can vary but takes approx 20
- 30 secs.

I will know the name of the file created and I know the directory to
which it will be saved what I could use meta refresh to refresh the page
until the file is re-named but what I am not sure of is how to check for
the file.

Hope this makes sense.

Many thanks

Reply With Quote
  #2 (permalink)  
Old March 16th, 2004, 10:27 AM
Authorized User
 
Join Date: Jul 2003
Location: Athens, , Greece.
Posts: 50
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Try the FileSystemObject.It has a methid called FileExists that returns true or false, depending on file's existance. Search in Google for 'FileSystemObject ASP' or visit http://www.4guysfromrolla.com and try the same search

Hope this helps

P.S: Are you using SAP PDK or SAP Portal??

Kostas Lagos

Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
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 Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
display directories and files using only xsl/xml.. eteune XSLT 1 January 2nd, 2007 07:01 PM
checking for recently added xml files fogofogo XML 0 February 13th, 2006 06:39 AM
Parse text files and save in sub directories malesd VB How-To 2 March 1st, 2004 09:32 AM
Including same files in different directories jeremy108 BOOK: Beginning PHP4/PHP 5 ISBN: 978-0-7645-4364-7; v5 ISBN: 978-0-7645-5783-5 1 August 8th, 2003 01:37 PM
Deleting directories and files ... DennisTh VB.NET 2002/2003 Basics 5 June 12th, 2003 02:30 PM



All times are GMT -4. The time now is 09:08 PM.


Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.