hideconsolewindows and windowsscriptinghost

Chipp Walters chipp at chipp.com
Tue Nov 5 11:37:17 EST 2002


Klaus,
Here's a script which I know works with hideconsolewindows...(this one
unlocks a file)
You might try it on your machine and see if it works. If it doesn't, then
there might be a reg setting off.

-Chipp

if the platform is "Win32" then
   put the filename of the topstack into tfile
   replace "/" with "\" in tfile
   put "attrib"&& quote & tfile & quote && "-R" into DosCommand
   set the hideConsoleWindows to true
   put shell (DosCommand) into theError
end if

> -----Original Message-----
> From: metacard-admin at lists.runrev.com
> [mailto:metacard-admin at lists.runrev.com]On Behalf Of Klaus Major
> Sent: Tuesday, November 05, 2002 9:01 AM
> To: metacard at lists.runrev.com
> Subject: hideconsolewindows and windowsscriptinghost
>
>
> Hi all,
>
> can someone give some help ?
>
> I am starting a shell-command that writes a
> temporary file (do_this_and_that.vbs) and let it
> be processed by the windows scripting host.
> (OK, there are actually two shell-commands ;-)
>
> Works fine so far, but the consolewindows pop up
> every time, even if the hideconsolewindows is set to true.
>
> Any hint on how to prevent this behaviour ?
> Or maybe some (not yet discovered) parameter
> that will cause this to happen silently/in the background ?
>
> I definitively do not want to see these windows !!!
> (Closing my eyes will only work for me, but surely not
> for the customers :-)
>
> Thanks a lot in advance.
>
>
> Regards
>
> Klaus Major
> klausimausi at mac.com
>
> _______________________________________________
> metacard mailing list
> metacard at lists.runrev.com
> http://lists.runrev.com/mailman/listinfo/metacard




More information about the metacard mailing list