How to surpress CMD Box on start

This forum can be browsed by the general public. Posting is limited to current SAPIEN license holders with active maintenance and does not offer a response time guarantee.
Forum rules
DO NOT POST LICENSE NUMBERS, ACTIVATION KEYS OR ANY OTHER LICENSING INFORMATION IN THIS FORUM.
Only the original author and our tech personnel can reply to a topic that is created in this forum. If you find a topic that relates to an issue you are having, please create a new topic and reference the other in your post.

Any code longer than three lines should be added as code using the 'Select Code' dropdown menu or attached as a file.
This topic is 7 years and 1 week old and has exceeded the time allowed for comments. Please begin a new topic or use the search feature to find a similar but newer topic.
User avatar
roebix3
Posts: 11
Last visit: Fri Jan 27, 2023 12:58 am

How to surpress CMD Box on start

Post by roebix3 »

Product, version and build:
Powershell Studio 5.4.136
32 or 64 bit version of product:
x64
Operating system:
Windows 10 past annyversary
32 or 64 bit OS:
x64
PowerShell Version:
5.1

I made a Keypass in Powershell and created an EXE. (GUI Application)
All Working.

But there's one thing:

Everytime i Launch the application also a cmd box pops-out.

Is there any way to surpress this CMD box?


Greetings
DevinL
Posts: 1098
Last visit: Tue Jun 06, 2017 9:15 am

Re: How to surpress CMD Box on start

Post by DevinL »

Can you please verify you're using one of the engines meant for GUI applications? If you're using one of the engines that ends with (Command Line) it will have a cmd box when launched:
Windows.png
Windows.png (55.33 KiB) Viewed 2961 times
DevinL
SAPIEN Technologies, Inc.
User avatar
roebix3
Posts: 11
Last visit: Fri Jan 27, 2023 12:58 am

Re: How to surpress CMD Box on start

Post by roebix3 »

Where can I find this setting?


/edit

I found it!

Whats actual de difference in between of Windows Forms and Windows?
User avatar
roebix3
Posts: 11
Last visit: Fri Jan 27, 2023 12:58 am

Re: How to surpress CMD Box on start

Post by roebix3 »

So after Doing that im recieving at start a LOT of systemboxes with powershell informations.. (my programm reads and creates folder on the first launch)

/edit well after using windows forms instead of windows it works.. whats the reason for that?
DevinL
Posts: 1098
Last visit: Tue Jun 06, 2017 9:15 am

Re: How to surpress CMD Box on start

Post by DevinL »

This is due to the way the engines interpret the commands.

I'll speak to the team and see what we can do about getting a blog post together to explain this in more detail.
DevinL
SAPIEN Technologies, Inc.
User avatar
roebix3
Posts: 11
Last visit: Fri Jan 27, 2023 12:58 am

Re: How to surpress CMD Box on start

Post by roebix3 »

Ah thank you.

Would be happy if you then could send me the link to that blogpost.
This topic is 7 years and 1 week old and has exceeded the time allowed for comments. Please begin a new topic or use the search feature to find a similar but newer topic.