Questions tagged [command-line-arguments]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
1 answer
268 views

Export image dimension to text?

I have an image called a.jpg. I use "feh - imlib2 based image viewer" to get the information about image dimension. The command I use is feh -l a.jpg And the result is NUM FORMAT WIDTH HEIGHT ...
0 votes
0 answers
33 views

Open new Google Chrome tab in a named window

I'm on Linux and I use scripts to open webpages. I also group my tabs into named Chrome windows, i.e. --window-name="Group 1". How can I open a new tab in a specifically named window? ...
0 votes
1 answer
168 views

Is there a way to Name a specific Chrome Window on startup?

I would like to be able to open chrome, either by clicking on the chrome.exe or by clicking on a URL, and as a result, chrome would launch with a specific window name. I just want to have my chrome ...
0 votes
2 answers
4k views

WinRAR - Using rar.exe command line to extract all files in all archives in a folder then delete all the archives?

I want to use rar.exe via command line to extract all files in all archives in a folder then delete all the archives automatically if they extracted successfully? I tried -df and -dr to no avail. ...
2 votes
3 answers
3k views

How to pass output of grep to "lsof -p"?

I want to know the path of currently running ./a.out There are several MPI process, but I only need one of the PID of several ./a.out. So I first use below code to grep it: ps aux | grep -P "Rl.*...
0 votes
1 answer
22 views

Windows FOR loop won't set a variable properly

I'm trying to write a command procedure that will pick up the height of a video file and put that into the file name. I've done a number of similar command procedures before, but this one is giving ...
4 votes
1 answer
11k views

Opening two individual Chrome windows on different displays at startup

I have a Surface Pro 4 with Windows 10 Education x64 plugged into a USB dock that I use as a desktop machine in my office. I have a dual monitor setup on the dock, and use the Surface itself as a ...
0 votes
2 answers
3k views

Extracting last command-line parameter of batch file

I have to modify a batch file (written by a former employee) that uses a for %%f in (%*) do ( ... ) loop to operate on each command-line parameter. The new requirement is that a directory name will be ...
2 votes
1 answer
11k views

Firefox: how do I configure kiosk mode?

Mozilla's website states: Numerous features of the kiosk mode are configurable through policy or command line parameters when launching the browser. However, other than a single example to run kiosk ...
0 votes
1 answer
64 views

Command line switch to start excel directly into new a new blank workbook?

When I start excel I get a welcome screen where I can pick a recent document, a new blank workbook, a new template, and other options. I would like to have Excel automatically just open a new blank ...
1 vote
1 answer
110 views

How to make git reset (or another method) remove empty directories?

I have a git repo that I need to clone, do some things, then package up and send to other people. I'm making this all automated via Ansible so there's no user intervention required. I want to ensure ...
4 votes
0 answers
643 views

Opening URL in specified Firefox profile from command line

Is there a way how I can let Firefox open a link in new tab from command line for specified profile? Ideally in a way in which it doesn't matter, whether Firefox is already running or not I know I can ...
2 votes
2 answers
2k views

pass parameters to batch file via File URI in Windows

Using Windows 10 here. Code in open_video.bat "%USERPROFILE%\Desktop\VLCPortable media player\VLCPortable.exe" --start-time=54 --stop-time=89 "%USERPROFILE%\Downloads\some_video.mkv&...
1 vote
1 answer
54 views

Is '-c' just shortened alias for '-codec' in ffmpeg?

I looked at the documentation and it does not seem clear to me. For example are the following two commands essentially the same? ffmpeg -i .\video.mp4 -i .\metadata.txt -map_metadata 1 -codec: copy -...
0 votes
1 answer
6k views

Change Office 2016 setup log directory to custom location

I can't seem to figure out how to change the default Office setup.exe log location from C:\users\username\AppData\Local\Temp\SetupExe(blablabalbaba).log to somewhere else locally on the disk. This ...
0 votes
3 answers
3k views

Obtaining all command line parameters in CMD prompt

What command would I use in CMD to get all of a program's available switches/arguments? For example, program abc.exe might have a switch of /o that starts the program in offline mode. Assuming I did ...
88 votes
5 answers
18k views

Why does "cd.." work in the Windows command line?

When typing cd.. without a space between cd and .. the Windows command prompt will happily switch to the parent folder. Is there an explanation for this behaviour? The command does not follow the ...
30 votes
12 answers
98k views

Nslookup command line with A record IP as sole output

I've found the following command to get your current public IP that works well from command line: nslookup myip.opendns.com resolver1.opendns.com I want to be able to run a command though that JUST ...
4 votes
1 answer
1k views

launch a single Edge tab with proxy server

I am using mitmproxy on windows 11 in standard mode it is listening on localhost:8080. I don't want to reconfigure my system proxy. I just want to reconfigure my proxy for one browser tab (or new ...
10 votes
4 answers
17k views

(How) can I change the time until the screensaver kicks in from the command line?

As the title asks (Windows 7). (How) can I change the time until the screensaver kicks in from the command line? Is it even possible? Normally I am happy with a 5 minute setting, but occasionally I ...
1 vote
1 answer
2k views

Command line to Silently remove Google Chrome APPs (PWA)

I need to remove all Google Chrome APPs (PWA) using the least effort possible. Once I'm managing almost 12.000 workstations, I need to do it centrally, by using a CMD/PS1 to accomplish it. I've been ...
2 votes
1 answer
329 views

How cmd get arguments list

I have a file a.cmd. Path to the file is C:\Program Files\a\a.cmd and C:\Program Files\a is in PATH environment variable. When I invoke a.cmd from PowerShell (v. 7.2) I see that a process with the ...
1 vote
1 answer
640 views

How to pass bash's $@ over ssh accounting for spaces in arguments?

I want to read logs conveniently from my server. I'm trying to write a script that reads output of journalctl from my server, applying the parameters I pass to the script to journalctl call. I may ...
8 votes
1 answer
3k views

Chrome: How to refresh tab if open, otherwise open new tab?

I'm opening a .pdf file from the command line in Chrome (Windows 7 64 bit). Every time the pdf file changes open the pdf to view it, but I don't want Chrome to open it in a new tab every time. Is ...
1 vote
1 answer
60 views

Windows: Launch menu entry/option of an app via a keyboard shortcut

Here is the properties info/data (via Winlister) of an app's (here, Network Time) Properties window/pop-up (here, launched via right click menu/option, see screenshot). What info of The Properties ...
1 vote
1 answer
164 views

On Google Chrome, is there a way to start with a new Google Account profile on Windows command line?

I'm using public computers. On Google Chrome, is there a way to start with a Google Account profile on Windows command line? This account is new to Chrome, since what I want is to login into a browser ...
-1 votes
1 answer
9k views

Command prompt output to Excel file in arranged format

We can display command prompt in .CSV file using > and >> but how to arrange these output in .CSV file. Eg: When we run multiple commands each output should be stored in different columns.
0 votes
0 answers
54 views

Can end users specify where to save games' data?

This freeware Unity Engine game saves in Windows its data at: %USERPROFILE%\AppData\LocalLow\Turbo Chimp %USERPROFILE%\Documents\Turbo Chimp The registry key HKEY_CURRENT_USER\SOFTWARE\Turbo Chimp ...
16 votes
3 answers
41k views

taskmgr.exe called with an argument by Windows 7

I noticed when I press Ctrl+Alt+Del and click Task Manager, Windows calls taskmgr.exe /3 as the command. Several websites claim the Task Manager has no command line arguments. Why does Windows attach ...
0 votes
1 answer
2k views

PowerShell start-process -argumentlist: does not work with cmd.exe but works fine with notepad.exe

I'm scripting a .bat file for an event scheduler but I'm having a problem. start-process notepad.exe -argumentlist 'C:\test.bat' -verb runas this works start-process cmd.exe -argumentlist 'C:\test.bat'...
0 votes
1 answer
56 views

Is there a command line tool to copy files to a specific directory on multiple remote computers?

Is there a command line tool to copy files to a specific directory on multiple remote computers. The path is from C:\temp\text.txt to c:\users\first.last\appdata\roaming\microsoft\windows\start menu\...
0 votes
1 answer
404 views

Sending EOS pipeline gstreamer

I have an example gstreamer pipeline: gst-launch-1.0 v4l2src device=/dev/video2 ! image/jpeg,width=1280, height=800, framerate=30/1 ! v4l2jpegdec ! queue ! v4l2h264enc extra-controls="controls, ...
1 vote
1 answer
960 views

Starting VSCode with WSL Distro (from command line.)

is there a way to launch vscode from command line, and to tell it to start a new WSL window (using the default WSL distribution.) I don't see an option in the CLI, and regardless of whether I launch ...
257 votes
12 answers
382k views

How do I start Chrome using a specified "user profile"?

I use the new built-in "Users" feature of Chrome to switch between Home/Work accounts easily. However, Chrome remembers the "last" user profile you had selected when launching new windows. This is a ...
0 votes
1 answer
231 views

Executing BAT command when using folder names with spaces (Server 2019)

Hell all, I have a bat script that attempts to run 3 different programs, but one of them does not work properly. Below is the current script, where the first 2 item run normally but the last item ...
1 vote
0 answers
810 views

Can the Windows 11 Clock App start a timer via command line?

I have discovered that I can open the Timer page in the Clock app with this command: ms-clock:timer Can I start a timer automatically by passing other parameters? Something like this (hypothetically) ...
0 votes
1 answer
894 views

How to reset default WindowsApps permissions per-app instead of for the folder

I seem to have messed up my WindowsApps folder badly, but managed to restore it using a previous question. This fixed and added the proper permissions for the WindowsApps folder ITSELF, but not the ...
0 votes
0 answers
78 views

Is there a way to know what happens at command prompt when we copy and paste a file from one location to another?

Is there a way to know what happens at command prompt when we copy and paste a file from one location to another? I.e. I use Ctrl+C and Ctrl+V to copy and paste a file from one location to another ...
21 votes
5 answers
31k views

Linux "top -c" to show full command

What parameter can help me to display the full command using top -c? For example, I have one of the oupput from top -c 5073 mysql 20 0 298m 12m 4668 S 0 0.0 29:27.46 /usr/sbin/mysqld -...
0 votes
1 answer
117 views

Musescore 4.0.1, A batch job issue with .mid file conversion to .wav files

Issue & Scope of the problem I followed the instructions here to preform a batch operation with Musescore Version 4 on Windows 11 CMD. Used a .json file just like in the highlighted example (below)...
1 vote
0 answers
560 views

"Cold Turkey Blocker" lock CLI (command line) is not working

I am trying to run the command: The “Cold Turkey Blocker” lock CLI (command line) is not working. "C:\Program Files\Cold Turkey\Cold Turkey Blocker.exe" -start "Block" -lock 2 The ...
125 votes
4 answers
431k views

How to add command line options to shortcut?

How can I add command line options to an executable in a shortcut in Windows XP? For example in the shortcut properties in target I have: "c:\path\to\exe\pogram.exe" I want to add some options: "c:...
0 votes
1 answer
1k views

`ping -c` in Windows: output error `Bad value for option -c.`

I am learning ping utility in Windows 10 and when I try to run command in shell: ping -c 3 example.com I get the result: Access denied. Option -c requires administrative privileges. After executing ...
2 votes
1 answer
484 views

How to print o ouput txt request result from curl command

we used this curl command (Windows 10) to check conection status to URls: curl -v https://techdocs.broadcom.com 2>> C:\Temp\ResultadaoURL.txt, and this result: * Trying 104.18.32.150:443... * ...
20 votes
3 answers
116k views

What is the significance of the /admin switch in mstsc.exe?

What benefits/risks does the /admin switch for mstsc.exe confer? How is this different from logging in with an Administrator account, without the switch?
1 vote
1 answer
144 views

sed in bash: '-n' as input is treated differently?

I'm struggling with a problem with sed in bash which occurs both on macOS and Ubuntu. During a long debugging session I pinpointed it down to this minimal example: echo "abcde" | sed 's/.*/x/...
-1 votes
2 answers
295 views

What are these Windows filename transformations?

i use Windows 7 x64. If i right-click on folder called C:\Longer than (3) and click "Send to" and send it to an .ahk file that simply shows the arguments it received, it shows C:\LONGER~3. ...
1 vote
0 answers
592 views

How to let Task-Manager of Windows 10 start minimized at start-up?

I have the Windows task mananger in the start-up/autostart directory, so that it does start at login. C:\Users\[myusername]\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup Type: Taskmgr....
8 votes
4 answers
29k views

Understanding executing PowerShell inside batch with parameters

I've been digging in this for a while, but I could not understand how this works. What I need is: Be able to run a batch file The batch file should have parameters The parameters should be passed ...
4 votes
1 answer
2k views

Command line arguments: How to launch 7zFM.exe like the context menu does, so that prepared 7z GUI appears?

7z file manager (7zFM.exe) can be launched via context menu. This conveniently produces the 7z GUI already prepared for archiving. All I need to do is change the archive name and maybe add a password....

1
2 3 4 5
7