(Newbie Question): GetFolder & FileSystemObject on Development PC

T

The Frog

Hi all,

I am developing my website in HTML & ASP using VBScript. Being new to the MS
world I am having a little difficulties getting iis running correctly on my
development PC.

My development PC is running Windows XP with iis the same as the remote
production server.


I am using the following code:

Set objFSO = Server.CreateObject("Scripting.FileSystemObject")
Set objFolder = objFSO.GetFolder(Server.MapPath(strPath))

to try and get a hold on the folder (happens to be called Test in this
case). This works fine on a remote server but for some reason fails on my
development pc. On the development PC it just appears to keep loading with
the MS flag waving in the upper corner.

Sorry that is the only details I have. Any suggestions would be really
appreciated.
 
S

Steven Burn

Might help if you mentioned why your wanting to errr.... get the folder in
the first place?, and what exactly is going on (i.e. any error messages?)

Additionally, have you tried doing a response.write on the folder thats
being returned?

strPath = "test"
Set objFSO = Server.CreateObject("Scripting.FileSystemObject")
Set objFolder = objFSO.GetFolder(Server.MapPath(strPath))
Response.Write objFolder.Path
Response.End

--

Regards

Steven Burn
Ur I.T. Mate Group
www.it-mate.co.uk

Keeping it FREE!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,995
Messages
2,570,230
Members
46,818
Latest member
Brigette36

Latest Threads

Top