Connecting Tech Pros Worldwide Help | Site Map

FSO GetFolder

  #1  
Old July 19th, 2005, 08:49 AM
David P. Jessup
Guest
 
Posts: n/a
Quick question.

When using GetFolder do I have to pass off the path in quotes or not?

Set f = fso.getfolder("c:\path")
or
Set f=fso.getfolder(c:\path)

Also, does anyone know if there is a limit on the string length that can be
passed?

Set f=fso.getfolder(\\really\really\really\really\long \unc\name)

Okay another question while I'm at it. This probably would be answered in
the first question. If folder path names contain spaces(c:\some folders
have\spaces in\them), must the entire path be enclosed in quotes?

Thanks from this ASP newbie


  #2  
Old July 19th, 2005, 08:49 AM
Hannibal
Guest
 
Posts: n/a

re: FSO GetFolder


Best to do a server.MapPath("/PATH to folder"), and yes, it should be in
quotes

MapPath will out the c:\dhjdhdh\djdjdj\kdkdkd\ anyways, so let it.... else
you gotta change ur code everytime you move the folders or scripts etc...
jus a thought

dunno about the limit though


"David P. Jessup" <davidATimntDASHtechDOTcom> wrote in message
news:OULeARPjDHA.4048@TK2MSFTNGP11.phx.gbl...[color=blue]
> Quick question.
>
> When using GetFolder do I have to pass off the path in quotes or not?
>
> Set f = fso.getfolder("c:\path")
> or
> Set f=fso.getfolder(c:\path)
>
> Also, does anyone know if there is a limit on the string length that can[/color]
be[color=blue]
> passed?
>
> Set f=fso.getfolder(\\really\really\really\really\long \unc\name)
>
> Okay another question while I'm at it. This probably would be answered in
> the first question. If folder path names contain spaces(c:\some folders
> have\spaces in\them), must the entire path be enclosed in quotes?
>
> Thanks from this ASP newbie
>
>[/color]


  #3  
Old July 19th, 2005, 08:49 AM
Cowboy \(Gregory A. Beamer\)
Guest
 
Posts: n/a

re: FSO GetFolder


1. Pass in with quotes.
2. Long names are fine
3. The entire name in quotes, regardless of spaces

--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA

************************************************** ********************
Think Outside the Box!
************************************************** ********************
"David P. Jessup" <davidATimntDASHtechDOTcom> wrote in message
news:OULeARPjDHA.4048@TK2MSFTNGP11.phx.gbl...[color=blue]
> Quick question.
>
> When using GetFolder do I have to pass off the path in quotes or not?
>
> Set f = fso.getfolder("c:\path")
> or
> Set f=fso.getfolder(c:\path)
>
> Also, does anyone know if there is a limit on the string length that can[/color]
be[color=blue]
> passed?
>
> Set f=fso.getfolder(\\really\really\really\really\long \unc\name)
>
> Okay another question while I'm at it. This probably would be answered in
> the first question. If folder path names contain spaces(c:\some folders
> have\spaces in\them), must the entire path be enclosed in quotes?
>
> Thanks from this ASP newbie
>
>[/color]


  #4  
Old July 19th, 2005, 08:49 AM
David P. Jessup
Guest
 
Posts: n/a

re: FSO GetFolder


Sorry, still have a follow up question.

I'm executing the ASP on machine X but I'm making my FSO call on machine Y,
do I have to apply IUSR_machineX permissions on \\machineY\path?

Thanks from this ASP newbie


  #5  
Old July 19th, 2005, 08:49 AM
Ray at
Guest
 
Posts: n/a

re: FSO GetFolder


Yes, \\machine will not allow access to that share because it doesn't know
who WEBSERVER\IUSR_WEBSERVER is. Your options are either using a domain
account for your IUSR or synchronize accounts on the two machines, the
webserver and the server with the file share you'd like to access. See the
"if the file's on your LAN" part. http://www.aspfaq.com/2168

Ray at work

"David P. Jessup" <davidATimntDASHtechDOTcom> wrote in message
news:Ovo2UePjDHA.1940@TK2MSFTNGP09.phx.gbl...[color=blue]
> Sorry, still have a follow up question.
>
> I'm executing the ASP on machine X but I'm making my FSO call on machine[/color]
Y,[color=blue]
> do I have to apply IUSR_machineX permissions on \\machineY\path?
>
> Thanks from this ASP newbie
>
>[/color]


Closed Thread


Similar Threads
Thread Thread Starter Forum Replies Last Post
subfolders and fso.GetFolder bhavdahl answers 3 March 6th, 2008 10:09 PM
controlled access in fso WC Justice answers 1 July 22nd, 2005 01:52 AM
fso.GetFolder() holds IIS from responding Ajak answers 2 July 19th, 2005 09:05 AM
FSO "getfolder" method problem. Benny Alexander answers 2 July 19th, 2005 06:56 AM