Questions tagged [command-line-arguments]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
0answers
8 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 ...
0
votes
1answer
21 views

List of JSON strings as command arguments

I've been working with GitLab CI recently to automate some busy tasks, namely auto releasing binaries for version tags. For those who don't know Gitlab CI, it is very straightforward. It pulls the ...
0
votes
0answers
12 views

Passing arguments to YourPhone app to send message from PC to my cell from security app than can run on alerts

I'm wondering if it's possible to pass arguments to YourPhone app to send message from my PC to my cell from my security app than can then run YourPhone on alerts. For instance, on an alert from my ...
1
vote
1answer
49 views

Using ffmpeg on Raspberry Pi to grab video from RTSP: “-t command not found”

I am trying something that should be simple - trying to use the Raspberry Pi ffmpeg to grab a 30 second video from an RTSP stream. The command looks like this: ffmpeg -i <rtsp:...> -t 30 <...
0
votes
1answer
41 views

What is the equivalent of shell variables $@ in windows command?

I want to put a variable in my command batch script for multiple arguments as the number may vary. Just as in shell we use $@. I tried several things but nothing is working. [Edit : I know %* works, ...
0
votes
1answer
58 views

WSL translate W10 CLI switches into Linux?

I'm trying to install Veracrypt and run it (mount volumes, etc.) from a script run in WSL (Python but can call a BASH script obviously). As documented here, I've encountered a problem trying to use ...
0
votes
1answer
19 views

How to use Linux to Partition and Format a blank external hard drive where the partitions were lost

I need some help rescuing a new and blank 4 terabyte external SSD USB hard drive. The original partitions were 3.64T and a 0.36 partition labeled "Microsoft Partition" Using GParted, I ...
1
vote
1answer
75 views

bash command: How to automatically enter menu choices that come up later during installation?

During apt-get install -y python-catkin-tools on Ubuntu you have to enter timezone numbers 8 for the region and 7 for a city when "tzdata (2020f-0ubuntu0.18.04)" gets installed. How can I ...
0
votes
1answer
38 views

How to chain command arguments to a specific command binary

I have general question about chaining commands to one specific binary in bash shell, with examples from Magento (use case) In Magento you commonly want to chain many commands together - they take ...
0
votes
0answers
40 views

Launching a command from a physical keyboard shortcut

I have the Logitech Ergo K860 keyboard that has some programmable keys. I want a key to launch a specific RDP connection. Just to test it out, I tried: CMD and it launched a Command window. OK, so ...
0
votes
1answer
63 views

Changing which command line program runs when there are two programs with the same name

When I run where java, the output is: C:\Program Files (x86)\Common Files\Oracle\Java\javapath\java.exe C:\Program Files\Java\jdk-13.0.2\bin\java.exe Both of these programs are called 'java', but the ...
2
votes
2answers
2k views

Why won't CMD on Windows 10 allow me to finger anyone?

Reading This Article: Digital Trends CMD Commands. I Found A command Called Finger. Trying it out on My System, Windows 10 Why won't it let me Finger anyone.. Says Connect: Connection Refused? Not ...
1
vote
0answers
66 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 ...
1
vote
2answers
136 views

What does /#/ symbol mean in the context of ${}?

In the context of the following function function foo { local d="d"; printf "%s" "${@/#/$d}"; } what does the /#/ mean? When I call foo a b c it returns dadbdc.
1
vote
1answer
439 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&...
0
votes
0answers
23 views

Arguments/options to programs launched from Chrome

I often have to launch the VMware Horizon client from a link inside the web-portal of my workplace, however, this launches the Horizon client with default options (specifically in multi-monitor mode, ...
2
votes
1answer
27 views

How to separate command switches (/x) from arguments in windows?

I know in linux, I can just write command -a -b - "arg1" "arg2"..., where single hyphen is "option/switch" separator. But how can I do similar in windows cmd? I would ...
1
vote
2answers
43 views

Why man read don't contain any argument description in my debian? [duplicate]

As far as i know that read in bash contains many argument such as -a -d -e -r. The webpage list all arguments of read. read's arguments In my console, man read contains no argument on it. I upload man ...
14
votes
2answers
3k views

What does “robocopy /NOOFFLOAD” do?

The windows tool robocopy has a command line switch /NOOFFLOAD. What does this switch actually do, and under what circumstances would I use it? The documentation for the switch says /NOOFFLOAD :: copy ...
1
vote
0answers
23 views

How to use files copied in Windows File Explorer on the command line? [duplicate]

In Windows File Explorer, you can highlight several files and then click the "Copy path" button from the menu. Show below is an example. I'd then like to process these files on the command line, ...
0
votes
0answers
70 views

Random time and positioning of a watermark FFmpeg

How can I restrict this code just to show the watermark on the Top, bottom:Left/right position in a random sequence. And how can I change the time interval when the logo pops up to random? Or if ...
0
votes
0answers
44 views

File assocations inconsistent behaviour with Windows 10

After updating Python, my file associations somehow got messed up and I have been trying to get them to behave. Here's my test program PyArgs.py: import sys, os print ("Arguments count : "...
1
vote
1answer
310 views

How to use command line tool “unzip” to only grab a certain folder?

I have a .jar file which can be opened with the Command line tool "unzip", which has this option called -p so you can grab certain files. But how do you do this with a folder? Here's what this jar ...
2
votes
2answers
629 views

How to make an app minimize itself after some time?

Is there an argument to specify for an app to minimize itself after being launched after a certain delay in Windows? I made a .bat file to be able to launch multiple apps with one launcher, I ...
0
votes
1answer
166 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 ...
0
votes
0answers
1k views

“Error 1722 getting session names” Can I use the msg in cmd to message another person if we are using the same WiFi connection?

Previously I have tried to message myself in cmd through using my WiFi as the server name and if I'm not not wrong it seems to work however I always get the same error Error 1722 getting session names ...
1
vote
0answers
28 views

Open “Find Printer” from command line. Not “Add Printer”

Windows 10 Is it possible to modify this entry to open the "Find Printer" dialogue? RUNDLL32.EXE PRINTUI.DLL,PrintUIEntry /ii /f %windir%\inf\ntprint.inf I am able to open "Add Printer" with this ...
0
votes
1answer
43 views

Dealing with files with spaces inside a FOR loop from files passed in command line in bash is failing

I am creating a script that will crop movies and have the following syntax: ./crop *.mov 0,0,100,100 or ./crop oneMovie.mov 0,0,100,100 So, the first parameter can be a wildcard pattern or one ...
0
votes
1answer
258 views

Task manager: Hide when minimized without GUI

When you launch taskmgr.exe, there is an option "Hide When Minimized" (under Options menu). I am looking for how to run it with that option without using GUI in the task manager itself. That is, a ...
1
vote
3answers
1k views

Passing '&' as text in parameter in batch file

I am trying to pass an argument to a BAT file thru VB Shell function. argument text value looks like this say Hello&123 As you noticed there's an '&' as text in it. However & is reserved ...
0
votes
1answer
367 views

Is there a way to start the Slack app with a maximised window but still run in the background?

I want to have the Slack desktop application run at startup in the background as it normally does with the Launch app on login settings. However this always results in a small sized window when I open ...
0
votes
1answer
2k views

Pass parameters to Windows Terminal?

Currently I am using MinTTY for my Cygwin terminal needs. Lacking a tabbed interface, I am looking to move to "Windows Terminal", which is currently distributed as a Store app on Windows 10. The ...
0
votes
0answers
2k views

How do I start Chrome with specific window size, position, and profile?

I'm trying to open Chrome to a specific user while also having a specific window size and position using CMD on Windows. It seems that I can either open to a specific profile or mess with the window ...
0
votes
1answer
417 views

How to pass unknown command line arguments containing special characters (bash)?

I am trying to figure out how to solve a problem with a "$" causing command expansion as part of a password field. How do you backslash the "$" when using command substitution (unknown) arguments? (i....
0
votes
2answers
506 views

How to wrap an executable to force certain command line arguments?

I have an executable: foo.exe Another process executes foo.exe with certain command line arguments. I cannot modify the process that executes foo.exe, nor change the filename it executes. I want to ...
0
votes
1answer
213 views

Batch to disable autofill and ask to save passwords in Chrome

I can't manage to disable "Autofill" and "Ask to save password" in Chrome I've got something from another web-page, but it didn't work. This I what I got from the web-page: REM ...
0
votes
1answer
46 views

Are ubuntu optional/switches behave differently with different commands? If no, why is there no cheat sheet listing them all? [closed]

There are numerous Ubuntu switches/options, which change the behavior of a ubuntu command. In simplest words, ls behaves differently than after we attach the option/switch -a ( so that is: ls -a) . ...
0
votes
1answer
56 views

Unable to set arguments to convert image files to video

I've a bunch of files in a folder with the following format: center_2016_12_01_13_%2d_%2d_%3d.jpg I'm trying to use FFmpeg to convert into a video with this command: ffmpeg -n -i "...
0
votes
1answer
438 views

batch script: can we skip a argument in the (%*)?

how can i skip a argument like %~1 in the %*? like; @echo off title cls :loop set /p command= call :command %command% goto :loop :command if "%~1"=="title"( %~1 %* ) goto :eof i'm trying to ...
2
votes
2answers
1k views

Is it possible to open a new tab in a specific container when using Firefox Containers?

I'm using multi-account containers in Firefox to keep my tabs separate from each other. I'm looking for a way to open new tabs in specific containers. Using Cmd+T opens a new tab in a default ...
0
votes
1answer
93 views

Batch File 'help switch'

I need help with creating the 'help switch' for my custom batch file. I want /? to work, but I am apparently missing or unaware of what would make my batch file work. Is there a way create the use of ...
2
votes
1answer
2k 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-...
0
votes
1answer
128 views

Can I force the `firefox` command line application not to switch the active tab in my open browser?

When I use the firefox command from command line (even with the --new-tab switch) Firefox swithes to the newly opened tab... I don't want this, can I set the default About configs: browser.tabs....
0
votes
1answer
175 views

Sending Command Line Arguments in Eclipse on Mac

I'm using the Eclipse IDE for a Java 8 project I have started and want to send command line arguments. I am using a Mac desktop and the way Windows runs Eclipse is a little bit different than Mac so ...
0
votes
1answer
171 views

Automatically connect to a PC using Dameware

I'm trying to connect from command line to a PC using the following command, but all it does is to input the fields and I have to manually click on connect. dwrcc -c: -m:MachineName -u:UserName -p:...
0
votes
0answers
2k views

Force a url to open in IE from chrome without command process warning message

My requirement is to open few urls on IE browser on cliking their links. So i have followed the below code to set the registry Windows Registry Editor Version 5.00 [HKEY_CURRENT_USER\Software\...
1
vote
1answer
23 views

What determines how different CLIs format their parameters?

For example, why do you have to use the --version flag/command to check a Python version, whereas you can use -v to check the version on a local NodeJS install? What determines and/or distinguishes ...
0
votes
1answer
44 views

Edit a single batch file that contains a single IP in multiple lines with a new batch file

I have a batch file in C:\Temp\Backup\ that is named backup.bat. In backup.bat the text below exist. I would like to create a batch file that changes the 172.16.17.4 to 192.168.1.104 in backup.bat for ...
0
votes
0answers
133 views

Command Line Column in Task Manager

I try to detect what one of many similar by name tasks gets very high memory use. I add to view column "Command line" in Task Manager, but this column is blank for these tasks. How can I get command ...
0
votes
0answers
244 views

how to pass password as argument to open command prompt with admin permissions in an automated way

Assume, i logged in with some other user. how to pass password as argument to open command prompt with admin permissions in an automated way. Instead of manual password entry. Tried this, but not ...

1
2 3 4 5 6