'objWshShell.Exec



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

Kevin


.



Relevant Pages

  • Re: how to connect to remote computer?
    ... Microsoft MVP [Windows] ... "Kevin" wrote: ... Prev by Date: ...
    (microsoft.public.data.ado)
  • Re: start menu problem
    ... but the problem isnt with the all programs menu....but with whats above ... (windows xp home start menu). ... Prev by Date: ...
    (microsoft.public.windowsxp.general)
  • created exe, now asks for vbinstaller when it runs
    ... "please wait while Windows configures " then it'll ask for ... vbinstaller which its looking for on a CD. ... Anyone know whats up with this? ... Prev by Date: ...
    (comp.lang.basic.visual.misc)
  • Voice Command like applications
    ... How can we build a Voice Command like applications for Pocket PC or Windows ... Kevin ... Prev by Date: ...
    (microsoft.public.windowsce.app.development)
  • Voice Command like apps
    ... How can we build a Voice Command like application for Pocket PC or Windows ... Kevin ... Prev by Date: ...
    (microsoft.public.windowsce.embedded)