aenax.blogg.se

Comspec variable windows
Comspec variable windows





To digress, you could even add more environmental variables. The nuance is that you could set ComSpec to call another program. It turns out to be merely a placeholder for cmd.exe. Open the System Icon by pressing the Windows key and Pause/Break, navigate to the Advanced Tab, Click on Environmental Variables button, and lo and behold – ComSpec is listed as System Environmental Variable. As ever, knowledge is power, so let us first find out a little more about ComSpec. When I want a script that will open a Dos box, I cannot make up my mind whether ComSpec is better than plain cmd. Scenario: You want to run a command promptĮxample 2 – To add commands to the ‘Dos Box’.Įxample 3 – To pipe the Output to a text file Even though the tasks are straightforward, the syntax can catch you out, unless you pay attention to the speech marks and ampersands. This week’s Ezine describes how to script relatively simple events at the command line.







Comspec variable windows