wshshell.run
From: Paul Bergson (pbergson_at_mnpower.com)
Date: 02/07/05
- Next message: tshad: "Re: Email not working"
- Previous message: Gilles: "Re: Security problem/issue ASP.Net"
- Next in thread: Mark Rae: "Re: wshshell.run"
- Reply: Mark Rae: "Re: wshshell.run"
- Reply: Steve C. Orr [MVP, MCSD]: "Re: wshshell.run"
- Messages sorted by: [ date ] [ thread ]
Date: Mon, 7 Feb 2005 12:03:29 -0600
I'm trying to start up a command from inside my asp code to modify
permissions on folders. When I do I get the error
Microsoft VBScript runtime error '800a01a8'
Object required: ''
/newuser.asp, line 120
Line 120 is the WshShell.Run strWShell This works fine in vb script.
I'm not very savvy with asp so I'm unclear as to why I'm getting this error?
'Create Folder Skeleton
''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
'''''
''''''''''''''''''''''''''''''
''''''''''''''''''''''''''''''
''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
'''''
Set FS = CreateObject("Scripting.FileSystemObject")
Set WSHNetwork = CreateObject("WScript.Network")
Set WshShell = WScript.CreateObject("WScript.Shell")
FS.CreateFolder(ParentDir & strName)
'Build Domain Admins
On Error Goto 0
strWShell = "\\admin04\bin\xcacls " & ParentDir & strName & " /G " &
txtQuote & "GOB\Domain Admins" & txtQuote & ":F /Y"
WshShell.Run strWShell
Any help is appreciated.
-- Paul Bergson
- Next message: tshad: "Re: Email not working"
- Previous message: Gilles: "Re: Security problem/issue ASP.Net"
- Next in thread: Mark Rae: "Re: wshshell.run"
- Reply: Mark Rae: "Re: wshshell.run"
- Reply: Steve C. Orr [MVP, MCSD]: "Re: wshshell.run"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|