Your idea also returns the exact same path as my hard coded string.
This is insane! If I use a hardcoded path it works, if I pass the same string into a variable and use the variable I get an error 'file not found'. How can this be? Maybe something on the server? But that makes no sense because it works when I hardcode. There must be something with my code but even if I make a blank asp page and only include my snippet of code the same results occur. --- In [email protected], "Dan Powderhill" <[EMAIL PROTECTED]> wrote: > Did you try the FSO method GetAbsolutePathName() ? > > http://msdn.microsoft.com/library/default.asp?url=/library/en- us/script5 > 6/html/jsoriFileSystemObjectMethods.asp > > Shot in the dark really. > > Dan > > -----Original Message----- > From: [email protected] > [mailto:[EMAIL PROTECTED] On Behalf Of anthrax911 > Sent: 12 May 2005 18:34 > To: [email protected] > Subject: [ASP] Re: Retrieve file attributes not working for me > > If I hardcode the path it works fine, BUT if I pass the path from a > variable it does not work. > > 'This does not work with the getfile function dim myname myname = > objRSReport("Path").Value > > > 'But this does > dim myname > myname = "d:\rb\Reports\test.rpt" > > > What the heck? If I do a response.write on the myname variable, it > looks EXACTLY the same as the hard coded string above. > > This is driving my BATTY! > > > --- In [email protected], "anthrax911" > <[EMAIL PROTECTED]> wrote: > > Yup it does have access. Hmm still bunked. > > > > --- In [email protected], "Ray at work" > > <[EMAIL PROTECTED]> wrote: > > > Be sure that your IUSR account has NTFS permission to access that > > file. > > > Read-rights at least. > > > > > > Ray at work > > > > > > > > > > -------------------------------------------------------------------- - > > Home : http://groups.yahoo.com/group/active-server-pages > -------------------------------------------------------------------- - > Post : [email protected] > Subscribe : [EMAIL PROTECTED] > Unsubscribe: [EMAIL PROTECTED] > -------------------------------------------------------------------- - > Yahoo! Groups Links --------------------------------------------------------------------- Home : http://groups.yahoo.com/group/active-server-pages --------------------------------------------------------------------- Post : [email protected] Subscribe : [EMAIL PROTECTED] Unsubscribe: [EMAIL PROTECTED] --------------------------------------------------------------------- Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/active-server-pages/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
