Wrox Programmer Forums
|
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 software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old March 16th, 2004, 09:17 AM
Authorized User
 
Join Date: Nov 2003
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

 
Old March 16th, 2004, 10:27 AM
Authorized User
 
Join Date: Jul 2003
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






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





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