Problem in using file object, please help 
Author Message
 Problem in using file object, please help

At the script:
Set filObject = fsoObject.GetFile("index.asp")

the server tell me that it cannot find the file, but in fact it is not
possible as it is the executing file, how can I point to the current
script file as a file object? as I want to get the name of current
directory.



Wed, 01 May 2002 03:00:00 GMT  
 Problem in using file object, please help

(1) Set filObject = fsoObject.GetFile(Server.MapPath("index.asp"))
or
(2) Set filObject = fsoObject.GetFile(Request.ServerVariables("PATH_TRANSLATED"))

(1) is more generic...

--
Michael Harris


  At the script:
  Set filObject = fsoObject.GetFile("index.asp")

  the server tell me that it cannot find the file, but in fact it is not
  possible as it is the executing file, how can I point to the current
  script file as a file object? as I want to get the name of current
  directory.



Wed, 01 May 2002 03:00:00 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. PLEASE HELP, PLEASE HELP, PLEASE HELP, PLEASE HELP, PLEASE HELP, PLEASE HELP, PLEASE HELP,

2. doc object problem in ie 5.5- help please

3. Please Help - Big problem using Database environment

4. PLEASE HELP PLEASE HELP PLEASE HELP

5. Problems working with a MSChart ActiveX control using VBScript - Please help

6. VB.net using msword object (Please really need help)

7. VB Database using Objects - help please

8. using object on remote computers help please

9. VB Database using Objects - help please

10. Help with using Openfile, Please Please Please

11. Please Help! File Access Component Problem

12. Please Help! File Access Component Problem

 

 
Powered by phpBB® Forum Software