Connecting Tech Pros Worldwide Help | Site Map

FSO GetFolder

 
LinkBack Thread Tools Search this Thread
  #1  
Old July 19th, 2005, 07:49 AM
David P. Jessup
Guest
 
Posts: n/a
Default FSO GetFolder

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, 07:49 AM
Hannibal
Guest
 
Posts: n/a
Default 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, 07:49 AM
Cowboy \(Gregory A. Beamer\)
Guest
 
Posts: n/a
Default 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, 07:49 AM
David P. Jessup
Guest
 
Posts: n/a
Default 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, 07:49 AM
Ray at
Guest
 
Posts: n/a
Default 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]


 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Popular Articles

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over 220,662 network members.