If the script launches the program via the Exec method you might be able to, but I can't say that I've ever tried.
Another approach you might try is to use the AppActivate method. This method allows you to pull an application back into focus. But then, it would probably annoy the dog out of...
If the include scripts have code encapsulated in procedures or functions then variable scope shouldn't be an issue.
In your example, the </script><script language="VBScript"> in the middle effectively isn't there. When you run the script you get two message boxes which is what you would expect...
GPO, or Group Policy Object, is accessed through Active Directory Users & Computers. Since you are talking about logon scripts and such I'm assuming you have a Windows 2000/2003 domain.
In ADU&C you can right click on the domain at the top, select properties, go to the Group Policy tab, and...
You should be able to use either the Run Method (http://msdn.microsoft.com/library/default.asp?url=/library/en-us/script56/html/wsmthrun.asp) or the Exec Method (http://msdn.microsoft.com/library/default.asp?url=/library/en-us/script56/html/wslrfexecmethod.asp) to do what you are looking for...
If ScriptB needs to be completely stand alone, then what you are asking for could be tough to do.
However, if all that ScriptB contains is a function which proceesses whatever is passed to it and then returns the apropriate value then that is definatley doable.
ScriptB.VBS would contain...
The best way to modifiy this value is actually through the Group Policy Object which defines that value.
Under Win2k3 you can find them under Computer Configuration\Windows Settings\Security Settings\Local Policies\Security Options and they are called "Interactive Logon: Message title for users...
It is available for download, but you have to register on the site first. It is
It's actually a ActiveX EXE. The installer should register it automatically. If it does not, then just double click on it in Windows Explorer and it will take care of the rest automagically.
I have a scriptable FTP object that I wrote a while back because I couldn't find one that worked or wasn't extremely expensive. You can find it on www.pcsupport.net
It supports the following Properties & Methods:
Methods...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.