Link to home
Start Free TrialLog in
Avatar of lulle
lulle

asked on

Creating directories with ASP

Does anyone know if ASP can be used to create directories on a NT-server via a common browser.
Other solutions that does the trick is also welcome....only "free" ones though..
Avatar of BlackMan
BlackMan

You can use FileSystemObject. Here is an example using VBScript:

Set fs = CreateObject("Scripting.FileSystemObject")
fs.CreateFolder("c:\myfolder")

Avatar of lulle

ASKER

I´m sorry.. but when I try using your code I only get a:
" Object doesn't support this property or method: 'fs.CreateFolder' " message...
U know why??
It might be because FileSystemObject doesn't come with IIS. I've also installed Windows Scripting Host, try surf to www.microsoft.com/scripting and install WSH.
I've just looked at MSDN and it says that FileSystemObject is an add-on, so I guess that WSH will install it.
Avatar of lulle

ASKER

Thanks... that did it... answer again if u want the points...



ASKER CERTIFIED SOLUTION
Avatar of BlackMan
BlackMan

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of lulle

ASKER

Thanks man.. that really saved my day...