EXE "SYS -w Powershell"
The above command will launch a windows application. The problem i ran into was the windows application with actually a "console application".
Cosmetically, the console application looks a lot like "A DOS WINDOW", but internally, if you look at task manager, cmd.exe (DOS) is not a process, only Powershell
Looking at the syntax "-m and -M" seem to be for "DOS Only", but Just for fun I tried the following:
sys -w -m Powershell
This caused the "Powershell" to be minimized.
and then
sys -w -M Powershell
This caused the "Powershell" to have no taskbar icon as well as running "Invisibly".
In short, -m & -M are NOT DOS only commands.
The simple solution, sys -w -m or sys -w -M.
EXE SYS -w Powershell (Opens a DOS Window)
Moderators: Susan Smith, admin, Gabriel
-
- Posts: 291
- Joined: Fri Jun 19, 2009 9:01 am
- Location: Lawrence, Kansas
- Contact:
Re: EXE SYS -w Powershell (Opens a DOS Window)
Thanks Luis. Actually I had tested this after the meeting and determined I only needed the 'sys -M'. With the 'sys -w -M' my script errors out in Powershell, where with just the 'sys -M' it executes without any window or taskbar. Which was the functionality I wanted.
GomezL wrote:EXE "SYS -w Powershell"
The above command will launch a windows application. The problem i ran into was the windows application with actually a "console application".
Cosmetically, the console application looks a lot like "A DOS WINDOW", but internally, if you look at task manager, cmd.exe (DOS) is not a process, only Powershell
Looking at the syntax "-m and -M" seem to be for "DOS Only", but Just for fun I tried the following:
sys -w -m Powershell
This caused the "Powershell" to be minimized.
and then
sys -w -M Powershell
This caused the "Powershell" to have no taskbar icon as well as running "Invisibly".
In short, -m & -M are NOT DOS only commands.
The simple solution, sys -w -m or sys -w -M.
Steve Koger
Computer Specialist
SEKESC-MACS Division
Computer Specialist
SEKESC-MACS Division