.vbs im ASP

dnmes

Grünschnabel
Hi,

I'm new to ASP and I want to execute a .vbs file. I have the code :

<%
Dim objShell, strCommand
strCommand=Server.MapPath("test.vbs")
Set objShell=Server.CreateObject("WScript.Shell")
objShell.Run strCommand, 1, False
Set objShell=Nothing
%>

The script is easy :

Dim fso
Set fso = CreateObject("Scripting.FileSystemObject")
fso.MoveFile "test.txt", "test2.txt"

1., The script works fine
2., I have the .asp, test.vbs and the test.txt in the same directory.
3., ASP works fine, I can make several things.

But if I start this ASP, the page loads, no error, but I hear the error voice of Windows. But no error message.
At the Task Manager I see my script (with user system) but the test.txt isn't renamed..

4., I'm not in a domain, also I have no problems with group policy.
5., I have given the IUSR_<machine> and the IWAM_<machine> to the local administrators.
6. At IIS - Directory security I've tried everything :
- Basicauthentication
- With and without Guest authentication (IUSR)

What should I try?

Thanks,
 

Neue Beiträge

Zurück