Re: 'objWshShell.Exec
- From: "Michael Harris \(MVP\)" <mikhar at mvps dot org>
- Date: Tue, 10 Jan 2006 17:32:49 -0800
Kevin Wheeler wrote:
> Can someone please tell me whats wrong with this line of code?
>
> Set objShellExecSet = objWshShell.Exec("cmd.exe /c set|find /i " &
> Chr(34) & "SystemDrive" & Chr(34))
>
> I'm getting the following error when running it from a Windows 2000
> OS. It works fine on XP.
>
> (90, 2) Microsoft VBScript runtime error: Object doesn't support this
> property or method: 'objWshShell.Exec
>
Get the appropriate OS upgrade to WSH 5.6...
Microsoft Windows Script Downloads
http://msdn.microsoft.com/downloads/list/webdev.asp?frame=true
--
Michael Harris
Microsoft MVP Scripting
.
- References:
- 'objWshShell.Exec
- From: Kevin Wheeler
- 'objWshShell.Exec
- Prev by Date: Mshsnapin (part 2): developing a mshsnapin.
- Next by Date: [MSH] Exes start with numbers
- Previous by thread: Re: 'objWshShell.Exec
- Next by thread: Re: Why can't I open two files in my script
- Index(es):
Relevant Pages
|