Re: 'objWshShell.Exec

Tech-Archive recommends: Fix windows errors by optimizing your registry



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




.



Relevant Pages

  • cant send email from outlook
    ... >i dont know whats up but i cant send emails anymore after ... >all the microsoft down loads ive been of the net for ...
    (microsoft.public.windows.inetexplorer.ie6.browser)
  • Re: SCAM
    ... > was then told that Microsoft doesn't have any info code ... SO WHATS GOING ON ... shipping offer covering a whole spread of operating systems from Microsoft ...
    (microsoft.public.windowsxp.general)
  • Re: Size of class again
    ... >Iam putting my query again as i lost replies to my last messages. ... whats is the size of an empty class. ... Copyright Microsoft Corp 1984-1998. ...
    (microsoft.public.vc.language)
  • Re: SCAM
    ... > Okay i apply for it and waited for over a month with ... > was then told that Microsoft doesn't have any info code ... SO WHATS GOING ON ...
    (microsoft.public.windowsxp.general)
  • SCAM
    ... >Okay i apply for it and waited for over a month with ... >was then told that Microsoft doesn't have any info code ... SO WHATS GOING ON ...
    (microsoft.public.windowsxp.general)