p2p.wrox.com Forums

p2p.wrox.com Forums (http://p2p.wrox.com/index.php)
-   Classic ASP Basics (http://p2p.wrox.com/forumdisplay.php?f=61)
-   -   checking directories for files (http://p2p.wrox.com/showthread.php?t=10588)

Trojan_uk March 16th, 2004 09:17 AM

checking directories for files

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

kosla78 March 16th, 2004 10:27 AM

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

All times are GMT -4. The time now is 12:34 AM.

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