Skip to main content

All Questions

Tagged with
1 vote
0 answers
283 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
1 vote
0 answers
689 views

How should I adjust my monitor display timing parameters to achieve a horizontal offset?

I have a 2560x1440 31.5" monitor that recently stopped displaying in the rightmost 4" of the display. This corresponds to ~320 pixels of dead space, so I am trying to create a custom ...
Joseph Westra's user avatar
0 votes
1 answer
808 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
0 votes
2 answers
3k views

How to run scheduled task for the batch with 2 parameters?

I have a batch file which I need to run every 15 min. When I click twice on the batch I: Need to enter the name of test to run and It is always Scripttest.jmx, like this: Need to enter y in this SS: ...
Inna Shnaiderman'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
1 vote
0 answers
827 views

How to create a Windows shortcut that passes the current folder as a parameter

In Windows 7-10, how can you create a shortcut that uses the current folder (directory) as a parameter? For example: Target: example.exe "%CD%" (where %CD% gets automatically replaced by the ...
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
1 vote
2 answers
31k views

Change Directory in Windows Batch Script

Based on some other answers I found, I can loop through available drive labels. However, I can't seem to change to that drive: for /f "skip=1 delims=" %%x in ('wmic logicaldisk get caption') do ( %%x ...
user avatar
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
1 vote
3 answers
6k views

How to receive a parameter in a batch file

I have asked a question, Use an environment variable to point to an "Open With" program, which received a fantastic answer. To add myapp.exe, residing in %MYAPPSDIR%, to the Open With ...
sancho.s ReinstateMonicaCellio's user avatar
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

15 30 50 per page