P
Paul Bergson
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.
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.