Questions tagged [command-line-arguments]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
0answers
19 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, ...
1
vote
1answer
64 views

Deleting every subfolder in a directory that DOESN'T contain certain file extensions (mp3/flac/wav)

OS: Windows 10 64-bit I want to delete every folder in a certain directory that doesn't contain music files (mp3/flac/wav/etc). I'm doing some retagging of files using Mp3Tag which also moves it in (...
0
votes
0answers
20 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
28 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 : " + str (...
0
votes
0answers
19 views

Validate Simple Input and Output of a program on terminal

I do competitive programming so I need to check certain output for certain input. For which what I do is I compile my program with g++ file.cpp and than I paste input values in a new file called in....
0
votes
1answer
59 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 ...
1
vote
2answers
179 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
62 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
154 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
20 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
40 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
124 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
264 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
0answers
21 views

Using Common symbol in size command

I have 2 .so files, (V1 & V2) and I want to compare what has changed between these 2 versions. For this, I was trying to use the size command. I found the --common flag which as per the ...
0
votes
1answer
45 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
0answers
45 views

Creating a custom right click context menu that runs script on selected file?

So basically I want to be able to right click on a video file, and have a custom command in the context menu that inserts the name of the file into the following code then runs it. curl https://api....
0
votes
1answer
812 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
504 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
0answers
58 views

Is there a Chrome argument similar to --app-id for running an extension (and not an app)?

I am in Linux, and installing the Hangouts app, I see in the launcher it creates in ~/.local/share/applications that it is run with the command /usr/bin/chromium-browser "--profile-directory=Default" -...
0
votes
1answer
188 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
164 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
96 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 did'nt work. This I what I got from the web-page: REM Disable password ...
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
0answers
19 views

Possible to run this program from CMD Line?

I have this program and would like to know if it can be used from a command line to simplify a task. Basically you hook up a FTDI FTX series board and press a button to download information stored on ...
0
votes
1answer
54 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
217 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 ...
1
vote
1answer
324 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
53 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 ...
0
votes
0answers
18 views

GDB debugger hangs on Fortran 90 READ command when reading from a text file

I compile the fortran files into an executable (sei.exe) using the following command. gfortran -g -fno-align-commons -c Creat2.for Bessel.for Kei.for gfortran -g -fno-align-commons *.o D12e.for -o ...
0
votes
0answers
29 views

Command line flags for Google Chrome not working properly

I want Chrome to open Gmail and Calendar in two different windows ("apps") with (different) fixed sizes and positions. I am using Windows 10, with dual screens (extended desktop). I have created two ...
0
votes
0answers
9 views

How do I deal with JAR executable files? Using Main-Class and the Class-Path?

I am new to handle the JAR files, I have below requirements. I have set off.JAR executable files, the purpose of this JAR file is to communicate to the UDP server. Below is MANIFEST.MF file. ...
0
votes
0answers
34 views

running remove command for powershell in batch

I would like to be able to run this command for power shell as a cmd line Get-AppxPackage messaging | Remove-AppxPackage how would I go about it using the powershell -command ? similar to this : ...
2
votes
1answer
1k 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
68 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
77 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
75 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
720 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
0answers
322 views

how to run the bash script interactively via ansible playbook

I can run the script with the command line argument on the linux server it works fine. for e.g.: ./install.sh -n -I the above command is able to install the script on the server. When I am trying ...
0
votes
0answers
37 views

google-chrome cli args (linux) : separate process with minimum memory usage

I am trying to create a complete separate instance of chrome, customized for minimum memory usage to be used as a whatsapp client. So far i tried --profile-directory=whatsapp --no-zygote --no-sandbox -...
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
72 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
127 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 ...
0
votes
2answers
642 views

Possible to use & join Long Path Variables in Batch file to call an EXE with those longer variables as command-line arguments? How?

Possible to use Long Path Variables in Batch file to call an EXE with those variables as command-line arguments? How? I read that we can SET various kind of variables in a Batch file. Also, some of ...
2
votes
2answers
842 views

How to execute two commands in the Windows registry from the right click context menu

I am trying to control Windows Update from the right click context menu. I have registry keys that add and/or remove values in the registry that accomplish this. I can successfully execute a single ...
1
vote
1answer
2k views

Using powershell to identify process ID, Name, and arguments used to start

My Issue: I need to identify the process ID of a specific process that is running. My problem is, I run a lot of processes through cscript.exe, so identifying the ID for a ton of "cscript.exe" ...
0
votes
1answer
528 views

Is body-data allowed after URL in wget?

I just realized, due to an error on my part, that though wget manual only mentions URL at the end, I am able to specify body-data option after the URL. This is quite convenient, but I am wondering if ...
0
votes
1answer
1k 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
0answers
27 views

How to get Uptime using command-line? [duplicate]

I should get the uptime of system using command-line. I don't need System Boot time. Uptime should be printed in a single line.
1
vote
2answers
2k views

How to get number of active processes and threads running using command-line?

I should get the number of active processes and active threads running in my server or computer using command-line.. I don't want to list all the processes or threads running, I need them in numbers.

1
2 3 4 5 6