Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

FSO problem

Status
Not open for further replies.

mmarkym

Programmer
Mar 23, 2002
54
US
Hi,

I'm new to ASP. I'm working on the File System Object. My code reads-

<%
dim myFso

set myFso = server.createobject(&quot;Scripting.FileSystemObject&quot;)

if isobject(myFso) then

for each cdrive in myFso.Drives

response.write cdrive.driveletter

next

end if


%>

I've already disabled NAV script blocking. All I get is a blank page.

mark
 
looks like you may have client and server relations a bit confused here. what exactly are you trying to do?

try formating questions as
1) details for what you're attempting to do
2) what is not working out right
3) what resources are considerations
4) what debug methods have been done
5) have you tried resources. the net and such
6) what has been ruled out that you have checked as of to this point eg: permissions etc....

___________________________________________________________________
onpnt2.gif

The answer to your ??'s may be closer then you think.
Check out Tek-Tips knowledge bank by clicking the FAQ link at the top of the page
 
What I'm trying to do is put this code on the server and when clicking a link to this page called FileSysObj.asp, it will output the drive letter.

It's not working out at all. With the if statement i've tried if isobject(myFso) then msgbox &quot;OK&quot; and I still get nothing ( a blank page). Which means it's not reading the myFso as an object.

I've tried using the debug as
dim bug
bug = 0
after the set statement
if bug then response.write &quot;<br>debug: Create FSO object: &quot; & err.number & &quot; &quot; & err.description

I get nothing still

mark
 
are you trying to get a drive letter off the server or client machine?

___________________________________________________________________
onpnt2.gif

The answer to your ??'s may be closer then you think.
Check out Tek-Tips knowledge bank by clicking the FAQ link at the top of the page
 
Off the server.

This is mostly practice for me. I'm trying to learn about the different objects in ASP.

mark
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top