Questions tagged [command-line-arguments]

The tag has no usage guidance.

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

Opening command prompt as admin Using a Desktop Shortcut with Hard-coded admin username

TLDR version on the bottom. I would like to create a desktop shortcut that would open up command prompt as if I had used the 'Run as Admin' option, but by just double clicking a shortcut and then ...
mbelsky's user avatar
0 votes
0 answers
48 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? ...
Majal's user avatar
  • 926
0 votes
2 answers
53 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 ...
Bart Lederman's user avatar
0 votes
1 answer
75 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 ...
chiliNUT's user avatar
  • 1,141
1 vote
1 answer
130 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 ...
jeremywat's user avatar
  • 113
1 vote
1 answer
58 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 -...
Ralf_Reddings's user avatar
2 votes
1 answer
359 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 ...
kkj's user avatar
  • 21
1 vote
1 answer
670 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 ...
jojman's user avatar
  • 473
1 vote
1 answer
61 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 ...
dkjain's user avatar
  • 131
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 ...
LWC's user avatar
  • 936
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'...
근육질푸키's user avatar
0 votes
1 answer
58 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\...
Zed_I_AM's user avatar
1 vote
0 answers
840 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) ...
Garrulinae's user avatar
  • 1,859
0 votes
1 answer
932 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 ...
vvxrtues's user avatar
1 vote
1 answer
173 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 ...
Albert J.'s user avatar
0 votes
0 answers
81 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 ...
Raghav Bansal's user avatar
1 vote
0 answers
606 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 ...
fatFeather's user avatar
0 votes
1 answer
419 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, ...
José Vicente R's user avatar
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)...
DracoDaine's user avatar
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 ...
kirogasa's user avatar
  • 128
2 votes
1 answer
496 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... * ...
juvenal's user avatar
  • 53
1 vote
1 answer
149 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/...
RocketNuts's user avatar
  • 1,112
-1 votes
2 answers
316 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. ...
Avtem's user avatar
  • 1
1 vote
0 answers
616 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....
Bill2022's user avatar
-2 votes
1 answer
320 views

How do I properly add parameters to program called within a windows command shortcut?

How do I properly add parameters to program called in a windows command shortcut? Passing parameters to the console alone, is trivial: cmd.exe /h ... but what if you want to both open a console &&...
George 2.0 Hope's user avatar
1 vote
1 answer
35 views

Need help deciphering the path on a Windows shortcut's target for printing PDF files direct to Canon print driver

I have a Canon printer (imagePROGRAF TM-305) that has direct print software that creates a link on the desktop that allows me to drag and drop a PDF file on top of the link icon and it goes direct to ...
OldRoadTech's user avatar
2 votes
1 answer
733 views

PowerShell, Pass multiple files and folders to a PowerShell script via a SendTo shortcut

I would like to have a shortcut in SendTo that points to a PowerShell script such that all selected items in File Explorer are passed to the PowerShell script as arguments. This would be extremely ...
YorSubs's user avatar
  • 907
0 votes
1 answer
1k views

How to show the tree of a root folder only for the first child level, and then show for just one of the children the second child level as well

Setting down a guide about a repository, it should help the reader to look through folders and files in only that sub-folder which makes the core of the task at hand, and without any sub-sub-folders. ...
questionto42's user avatar
  • 2,279
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 ...
Justin Dearing's user avatar
0 votes
1 answer
238 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 ...
jengashare's user avatar
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 ...
Hugo Cruz's user avatar
0 votes
1 answer
108 views

Terminal commands to color differences between two files

I have two text files that I want to highlight the differences of in a red color for testing purposes. I am feeding a series of inputs into something.py file and outputting its results to out.txt. cat ...
user1704244's user avatar
0 votes
2 answers
3k views

How to logs result to file AND display when using W10 CMD.EXE? [duplicate]

When using Windows 10 command prompt, i know i can log the results to file by doing this : dir c:\ > results.txt But problem is, doing this , the results are NOT displayed on the screen. Is there a ...
delphirules's user avatar
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 ...
Jon Bentley's user avatar
0 votes
1 answer
173 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 ...
user avatar
0 votes
0 answers
693 views

what is the equivalent of ctrl+h (find and replace) in cmd command line

I need instructions specific to the command line (Windows 10) to modify a text file, by replacing a word with another word I thought of the for loop but I did not find a command to modify a file text? ...
مريم غريب's user avatar
1 vote
1 answer
1k 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 ...
luis.espinal's user avatar
1 vote
1 answer
242 views

Reimplementing lrzip decompress on Windows explorer using WSL

I've downloaded an old version of lrzip decompressor for windows and noticed that it's using the cygwin libraries in order to run the program itself. The benchmarks comparing WSL2 and cygwin say that ...
gio91ber's user avatar
1 vote
0 answers
54 views

How to pass the arguments while executing a script where variable name is not known?

I have a script, when i execute it ask couple of arguments one by one. [home]$ ./script_name User> *input here* Password> *input here* Authentication ID> *input here* Success !! Select the ...
Shivam Agrawal's user avatar
-1 votes
1 answer
660 views

Windows 10, cmd start with & in the command path

I'm now using OneDrive for work. This has caused me some problems with a specific command that I have pined. The OneDrive path now contains spaces dashes and an ampersand. C:\Windows\System32\cmd.exe /...
Neil Cherry's user avatar
0 votes
0 answers
2k views

Windows Shortcut with Relative File Path

I have created a tool that uses Google Chrome App Mode to work. In order to access it, I have a shortcut to google chrome that opens the specific html page. Currently, I have an absolute path, but I ...
Anthony LoPrimo's user avatar
0 votes
1 answer
4k views

How can I run a powershell command as admin programmatically?

I want to run a powershell command as admin through programming languages as VBScript. I have seen this stackoverflow answer but Start-Process only runs executable and not really a powershell command ...
RickyLo's user avatar
  • 17
3 votes
1 answer
3k views

Start Command Prompt always as admin through Windows Terminal

How can I make Windows Terminal always run Command Prompt as admin so I can issue elevated commands?
TheUnknown's user avatar
0 votes
1 answer
2k views

Command Prompt Shortcut .lnk That Runs Program

You can set up command prompt shortcuts so that the window has specified colors, sizes, and locations on the screen. I have many of these set up for many different programs that I like to see all at ...
SpeedRacer350's user avatar
0 votes
1 answer
383 views

Regex in youtube-dl arguments

I want to extract two paths from the youtube-dl arguments, the output template and ffmpeg location -o (.*%\(ext\)s).* --ffmpeg-location (.*) With the regex above I am able to capture both the output ...
HBatalha's user avatar
  • 145
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....
Dreamspace President's user avatar
3 votes
2 answers
16k views

Is there a way to view or store file history (like browser history) in Linux?

Is there any way to "view" (or) "store" file history (similar to browser history). For example if I have 10 files, and I open 2 of them, the following 2 details should get stored ...
kkk's user avatar
  • 33
1 vote
1 answer
2k views

Passing list of file paths in variable as arguments to command

Scenario: kdialog --menu takes a list of strings of the form title element label element label .... Now, the issue with this is that spaces are used as delimiters. Let's say I have a string variable $...
sonofevil's user avatar
  • 117
0 votes
1 answer
66 views

Running system rm -rf on an online compiler

I have not written the command using proper syntax in order to prevent any accidental misfire I recently read about the danger of using the command rm -rf in root directory but was wondering about a ...
ca11of lucky's user avatar
0 votes
0 answers
83 views

Windows 10, cmd, schtasks, varying arguments

Let's say that a given scheduled task simply runs a batch script (*.bat or *.cmd). Is it possible to pass varying command line arguments to such script? With "varying", I mean, the arguments ...
gsal's user avatar
  • 1

1
2 3 4 5
7