Skip to main content

All Questions

1 vote
0 answers
292 views

How to properly escape in windows command shell - even the asterisk?

By following good (though sometimes conflicting) advice such as Quotes, Escape Characters, Delimiters - Windows CMD - SS64.com or Escape character – Wikipedia, section 2.6 Windows_Command_Prompt or ...
Hagen von Eitzen's user avatar
0 votes
1 answer
809 views

What are the command line parameters (options) for Microsoft's CMTRACE tool?

The CMTRACE tool is included in Microsoft's System Center 2012 R2 Configuration Manager Toolkit. It's a reasonably good tail tool. One of its downsides, however, is that it can take a very long time ...
End Antisemitic Hate's user avatar
3 votes
1 answer
6k views

Is /min a valid switch for cmd.exe in Windows?

I'm looking at a few batch files (.bat), and they use use /min as a switch for cmd.exe. Looking at several references, I don't see /min as a parameter for cmd.exe. Is /min a valid switch for cmd.exe ...
End Antisemitic Hate's user avatar
0 votes
1 answer
272 views

Universal Command-Line Tool Wrapper

I have a program that calls GhostScript in the background by issuing a shell command with hardcoded(!) parameters. Unfortunately it is impossible to change that in a defined matter and the used ...
Robert Orso's user avatar
2 votes
2 answers
4k views

Create Powershell Alias w/ a Function incl. Parameters

UPDATED-STATEMENT: 20190815@000000@THU Working on creating a powershell initial profile for current user only and without running as admin that is authorized to run commands from from the ps-...
fohrums's user avatar
  • 520
3 votes
3 answers
5k views

What's a correct way for a batch file to run itself with params?

I have a batch file. In which, I need to start another copy of itself in a new window with a parameter. I tried the command start "" "%~0" "Param" but it said '"Param"' is not recognized as an ...
Mark Deven's user avatar
  • 1,660
0 votes
1 answer
73 views

directory name and cd of all subdirectories in directory using shell

Purpose For each subdirectory in directory that contains a setup.py, run pip uninstall -y <directory name> and pip install . Windows solution > for /D %f in (.\*) do (cd "%cd%\%f" &&...
A T's user avatar
  • 801
2 votes
1 answer
682 views

How, exactly, is ! meant to be used with 7-zip CLI parameters?

The -i and -x parameters of the 7-zip CLI interpet ! in a special way. Or at least it looks that way from their documentation. That documentation includes the following: Syntax -i[<...
alx9r's user avatar
  • 371
0 votes
2 answers
2k views

Passing variables with space to the command line as admin

strong textscript.bat placed on the sendTo folder(file setted running as admin from properties -> advanced -> run as admin) @echo off cd %~dp1 echo %~dp1 echo "%~1" pause if i pass a parameters ...
Frontender's user avatar
0 votes
2 answers
845 views

How to start SpiderOak from a command line in a headless mode and then close cmd?

I'm trying to start SpiderOak in a headless mode from a command line on Windows 7. After the application starts I would like to be able to close the command line without interrupting the process. ...
Joudicek Jouda's user avatar
0 votes
2 answers
876 views

Remote Desktop with custom parameter

is there any way way to open the mstsc (remote desktop connection) with a custom parameter I initialized and then read it on the remote computer via command prompt? I need to create batch file that ...
inon's user avatar
  • 101
0 votes
1 answer
2k views

Starting Adobe Acrobat without toolbar and side panes

I found that it's possible to start Acrobat without toolbar with the following command: Acrobat.exe" /A "toolbar=0" "%1" and that it's possible to hide the navpanes with the following: Acrobat.exe" ...
hyperknot's user avatar
  • 902