Skip to main content

All Questions

1 vote
2 answers
2k views

Can we skip a argument in the (%*)?

How can I skip an argument like %~1 in the %*? @echo off title cls :loop set /p command= call :command %command% goto :loop :command if "%~1"=="title"( %~1 %* ) goto :eof I'm ...
Hüseyin Teoman Deniz's user avatar
3 votes
1 answer
26k views

How to pass multiple arguments?

How to pass multiple paramaters for Start a program action in Windows Task Scheduler for a batch file? There's no built-in syntax hint...
Nae's user avatar
  • 237
3 votes
1 answer
9k views

Command line 7Zip to extract file by specified result path

Is it possible to make 7Zip extract one file by name from archive to specified full path (including new filename)? I've found only: 7zip e <archive> -o<resultDirectory> <filemask> ...
SerG's user avatar
  • 441
3 votes
1 answer
2k views

Command line 7Zip to create archive without extension

If I specify full extensionless result path 7zip adds one corresponding to the type of created archive. How can I make it name the result file exactly as I have specified in command line argument?
SerG's user avatar
  • 441
7 votes
1 answer
10k views

How to preserve white space in Bash arguments

I use the command: cm1 cm2 arg1 arg2 'argument 3' It first goes to cm1, which will then redirect arg1 arg2 'argument 3' to another file. /usr/bin/cm1: #! /bin/bash # some script here shift cm2 $@ ...
François ッ Vespa ت's user avatar