Jump to content
EduGeek EdSec 2026 is Go! 27th Oct in Derby! Join us for a day of EdTech security focused talks, networking, and an evening social ×

Recommended Posts

Posted
I know its possible to run bat/cmd files hidden but is there a way to display the window but remove the close button?
Posted
How would i go about converting VB to VBS? Dont even know how to declare an external procedure so i wouldnt even get past line 1.
Posted
What does your BAT/CMD script do? It might be easier to convert it to a VB script, these run silently.

 

I agree with djm968, beat me to it :)

 

If you can tell us what the bat files do then we can try and help you convert it, unless you can convert it yourself

Posted

@djm968 & gecko : Note OP wants the CMD window to appear (I assume for diagnostic purposes or to freak out the lusers) but with the close button removed so that users can't terminate login scripts.

 

 

 

The problem you'll have converting KB818361 code above is calls made to user32.dll unless you can get COM wrappers for them.

 

Best thing would probably be to use Sharp Develop IDE or the command line compilerfor vb.net if your target machines all have .net runtime installed.

 

Alternatively you could install the AutoIT ActiveX doodah and call that from VBS to control the console window.

Posted

Yup i want the window to appear for the reasons NetworkGeezer stated and i can recode the bat/cmd files as vbscripts, which i may just do. I may just vbscript it and create my own dialog boxes if all else fails.

 

@NetworkGeezer: Thanks for the info, ill look into it.

Posted

You will find it easier to code the dialogs in AutoIt than VB. With VB you will either need to use custom components (which will have to be deployed), or script Internet Explorer. Scripting IE certainly won't speed up your logon process!!

 

If you do go down the custom component route, you could try looking at JsWare. The web site is a bit confusing but there is some good stuff.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now



×
×
  • Create New...