Click here to Skip to main content
15,891,184 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi
i use cmd code for my device however i dont what to seen the cmd(console window) on the screen my cmd code is:
powershell.exe -NonInteractive -WindowStyle Hidden -NoProfile (New-Object Media.SoundPlayer "C:\alarm05.wav").PlaySync()&

however its seen 1 sec the hide.
Does it possible to working and starting background. simply i want to no one see my console window starts or codes.

Does it possible?

What I have tried:

adding -NonInteractive -WindowStyle Hidden -NoProfile
Posted
Comments
Jochen Arndt 29-Feb-16 3:42am    
Search for "powershell hide console window" and you will find some solutions which usually require the PowerShell to be started using a helper progrem.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900