I am trying to create a skin that has an InputText that will be a command sent to cmd.exe or powershell.exe. I can get it to open the command prompt but not enter the command that was entered into the InputText.
C:\Users\Jeffrey>cmd /?
Starts a new instance of the Windows command interpreter
CMD [/A | /U] [/Q] [/D] [/E:ON | /E:OFF] [/F:ON | /F:OFF] [/V:ON | /V:OFF]
[[/S] [/C | /K] string]
/C Carries out the command specified by string and then terminates
/K Carries out the command specified by string but remains
/S Modifies the treatment of string after /C or /K (see below)
/Q Turns echo off
/D Disable execution of AutoRun commands from registry (see below)
/A Causes the output of internal commands to a pipe or file to be ANSI
/U Causes the output of internal commands to a pipe or file to be
Unicode
/T:fg Sets the foreground/background colors (see COLOR /? for more info)
/E:ON Enable command extensions (see below)
/E:OFF Disable command extensions (see below)
/F:ON Enable file and directory name completion characters (see below)
/F:OFF Disable file and directory name completion characters (see below)
/V:ON Enable delayed environment variable expansion using ! as the
delimiter. For example, /V:ON would allow !var! to expand the
variable var at execution time. The var syntax expands variables
at input time, which is quite a different thing when inside of a FOR
loop.
/V:OFF Disable delayed environment expansion.
In my case I want my profile scripts to run. I essentially want this to be the same as opening powershell and running a command just faster since I don't have to open powershell first.
UziTech wrote: ↑April 24th, 2019, 3:09 pm
In my case I want my profile scripts to run. I essentially want this to be the same as opening powershell and running a command just faster since I don't have to open powershell first.
Fair enough. I just suggested those parms as by default powerhshell is not enabled from the command line in Windows, as a security measure. If this is on your computer only, and you have powershell configured to execute the way you want, then they are certainly not needed.