Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [command-line-arguments]

The tag has no usage guidance.

0
votes
1answer
8 views

mwoffliner ZIM file creation issue with local MediaWiki

I installed mwoffliner 1.6.0 as per these instructions in a Ubuntu 18.10 (cosmic, desktop edition). Some programs were missing and I apparently managed to install all of them. I succeeded running the ...
0
votes
1answer
34 views

Easy access to Outlook Calendar and Inbox from 2 different accounts?

I am trying to help someone in the following situation. She has two accounts in Outlook (both in the one Profile she has). She always uses the Inbox of Account1 but the Calendar of Account2. She wants ...
1
vote
1answer
43 views

Excel command line switches - positions

I notice that when I enter : excel /r "c:\temp1\test001.xls" I get read only. When I enter excel "c:\temp1\test001.xls" /r I do not get readonly. When I enter excel /s "c:\temp1\test001.xls" ...
0
votes
2answers
135 views

sudo !! equivalent on Windows cmd

I'm looking for a cmd.exe equivalent to Linux's sudo !! and other bang-commands such as !x, !?x, !!:p and !!* mentioned here.
0
votes
1answer
43 views

“Invalid parameters” error when copying to another folder

I have tried the following to copy the files in Data to another location but received the error "invalid parameters." What is wrong with my command? C:\xcopy c:\ProgramData\MySQL\MySQL Server 5.7\...
0
votes
1answer
69 views

Pass command to WSL Ubuntu 16.04 upon opening/booting WSL ubuntu

After setting up a cron job, I am trying to: automatically enable cron service when I open the Windows Subsystem for Linux Ubuntu 16.04 app from the Windows App Store. Currently I am trying to reach ...
0
votes
1answer
62 views

bash function with parameters not usable with eval in Msys2

I am using Msys2 from PortableApps under Win 10. The answer to this question (i.e., identification and solution of the problem) may be related to the Unix/Linux part of usage, or to its "adaptation" ...
0
votes
0answers
52 views

Firefox custom external helper application command for Media Player Classic (MPC)

I want .m3u, .mp4, mp3 or any other media file links from Firefox to be added to Media Player Classic playlist (not played immediately). The command line for adding to playlist looks like this: mpc-...
0
votes
1answer
569 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...
0
votes
1answer
31 views

Using a single malleable object containing multiple arguments for a command in a powershell script

I have a bunch of arguments that I want to pass to a command multiple times. To decrease the amount of times I write the same arguments, and thus decrease the number of places where I have to maintain ...
0
votes
0answers
55 views

Cannot use the unattend argument for Windows Server 2016 setup

I'm using en_windows_server_2016_updated_feb_2018_x64_dvd_11636692.iso to attempt remotely installing Windows Server 2016 on a Windows Server 2012 machine. I've created an unattend.xml and ...
0
votes
1answer
543 views

using xargs pass arguments to sub shell with pipe

I want to rename a number of files. I think I can use xargs to do it. find ./ -name "upload.log-*" ./upload.log-20180622.gz-20180624.gz-20180626.gz ./upload.log-20180624.gz-20180626.gz ./upload.log-...
0
votes
1answer
302 views

How create name value pairs array from command line arguments?

Consider example: bash myScript.sh --name1 valule1 --name2 value2 Inside myScript.sh: java -jar someJar. jar --name1=valule1 --name2=value2 E.g. array --name1 valule1 --name2 value2 needs to ...
-1
votes
2answers
81 views

How to bring old instance of calculator on top of every other window?

I would like to open the calculator. If calculator already opened then want to bring in front of all other windows... without using any coding of hotkey. I used the following script: @echo off ...
0
votes
1answer
45 views

how to padd output of the SET /P?

I am using this simple menu in cmd where I padded my ECHOs with TAB key: :MENU ECHO select this by pressing 0 ECHO( ECHO select this by pressing 1 ECHO( SET /P ANSWER="press something:" is ...
0
votes
2answers
582 views

how to navigate in range of parent folder without full path?

is there a way how to navigate to a program that is in different folder of the parent directory without using full path? atm I have a batch here: FOLDER 1\BATCHES\batch1.bat which uses a program ...
0
votes
1answer
35 views

Is there a command line command I can use to find the number of local groups?

Is there a command line command I can use to find the number of local groups without having to count them one by one from the output of the net localgroup command? I've tried the help info for net ...
1
vote
1answer
1k views

How to launch Edge with some cmd line args?

I'm using Windows 10. According to Microsoft Edge DevTools Protocol docs, I need to launch Edge with the --devtools-server-port cmd line arg. i tried to do so via Console, but got an error: '...
1
vote
1answer
99 views

Wget not working as expected

wget -nd -a pdf -o drgnchain.pdf https://dragonchain.com/assets/Dragonchain_Business_Summary.pdf I would expect the downloaded PDF to be named drgnchain.pdf and be the sole file after executing this ...
1
vote
2answers
46 views

Semantics of “Implies” on command line switches

Silly question: I thought I knew what an implication was, until looking into this. I'd like to confirm the definition of implied in the context of Windows command prompt switches. For example: If ...
1
vote
1answer
3k views

Pass parameters to program started with Runas

I am trying to start Performance monitor as different user. I found runas.exe but syntax for program arguments makes me go crazy. The following syntax works: C:\Windows\System32\runas.exe /user:...
0
votes
0answers
17 views

Firefox ignores paramter when link is executed via Launchy

I created some links to firefox.exe which open different profiles using command line arguments. The full link targets look like "C:\Program Files\Mozilla Firefox\firefox.exe" -P profile-name -no-...
0
votes
1answer
515 views

Display a Form through CMD (VB.NET)

I've built a VB.NET program that contains multiple Forms. Now I want to display a particular Form (not the main/startup form) of the program through the Command Prompt. For example, if there are two ...
0
votes
0answers
491 views

How do I find all accepted command line arguments of an executable

I'm aware that there have already been multiple there have been multiple threads on this topic, (such as here), however there is a slight variation to this question. The method described in the post ...
13
votes
3answers
3k views

Is there a 'Restore session' command-line argument for Firefox?

I would like to make a batch script for Firefox that restores my last session upon launching the script from a shortcut. I found that I could do this rather easily in Chrome with the --restore-last-...
0
votes
1answer
49 views

What was the Linux console command to add on one user read and exec permission, and to other them too but with writing permission too? [duplicate]

Need help for the question in topic. I am trying to add these permissions for users on my practice project. I forgot what was the command for it. :(
0
votes
1answer
29 views

How to give custom name to executable file formed by compiling CSharp code at command Prompt?

I am using Windows 10 and Visual Studio 2017. I have created a project HelloCSharp. My project location is: C:\Users\Sonevol\source\repos\HelloCSharp I go to HelloCSharp folder in which I have ...
0
votes
1answer
78 views

Filezilla v2 had “-config <file>”. What about v3?

Filezilla v2 had a command line parameter "-config " which allowed a quick way to choose alternative config files. Does v3 have such a command line parameter too?
0
votes
1answer
28 views

Tab in bash autocompletes from path, how can I extend it to also autocomplete from .bash_history?

I love path autocompletion, but one thing I miss is that if the last time I used a command was with a long set of arguments, and I want to repeat that (without writing a script), I can't type >...
0
votes
1answer
806 views

Spaces in java command line argument

I've searched but still don't know how to resolve this. I am trying to setup a batch script to run this Java command: "C:\Program Files (x86)\Java\jre1.8.0_60\bin\"java -cp "AddDocument.jar;Jace.jar;...
0
votes
1answer
1k views

Trying to exclude a specific directory from a grep command

I've got a directory that contains hundreds of sub-directories that all have dates as their names, and inside each of those sub-directories, there's a bunch of files I need to be searching through. ...
2
votes
0answers
4k 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 ...
2
votes
2answers
136 views

List default arguments of a linux command

I wanted to check what are default arguments for rsync. Tried searching through man pages but did not found that. Is there a way to get default arguments for linux command?
3
votes
1answer
2k views

REG ADD Ignores /f

My script: @ECHO OFF SET RegPath="HKEY_CURRENT_USER\Software\Microsoft\VBA\7.0\" REG ADD "HKCU\Software\Microsoft\Windows\CurrentVersion\Applets\Regedit" /v LastKey /t REG_SZ /d "%RegPath%" /f ...
18
votes
1answer
2k views

How to set a flag as default on an *.EXE file?

When I open Sumatra I need inverted colors by default. But even though I changed the shortcuts to: "/sumatraPDF.exe" -invert-colors the program runs without the flag when I double click a PDF file at ...
2
votes
2answers
36 views

How to monitor the realtime content of a folder in commandline

Is there any way to monitor the real time content of a folder in commandline? What i need is like dir command but updates the content continuously.
0
votes
1answer
843 views

Is there a Google Chrome switch (command line) to toggle url-encoding?

I have written a C# code that calls Google Chrome to load a specific url on the computers local hard drive. The C# code already encodes the URL (replaces space characters with %20) and this used to ...
-1
votes
1answer
205 views

Trapping “echo off” stty on linux terminals

I occasionally need to be extra sure that the password I type is the right one (e.g. because I already made one mistake & the next one will lock me out for 15 minutes) so I am after something like ...
0
votes
0answers
637 views

How to search and replace a string in multiple html files within a directory and it's sub-directories with Windows CMD?

This is requirement is similar to How to search and replace a string in multiple text files (within a directory) with Windows CMD? Part 2 I want to perform Find and Replace on all HTML files inside a ...
1
vote
1answer
563 views

Pass arguments to a Bash subshell after its definition

I'd like to do something like this: (cd "$1" && pwd && many && other && commands) < echo "../path" Which should take the arguments provided and pass them to the ...
0
votes
0answers
351 views

command for disable display scaling

I know you can disable the display scaling factor by right clicking an .exe file and then going to the Compatibility tab, but I need a way to launch and app from terminal or .bat file with either ...
1
vote
1answer
34 views

Establishing a unit converter which can be called globally through terminal

I would like to have a function (or may be some kind of executable) that can be called via Terminal from wherever I am (from any directory) and this function does a simple job of converting between ...
0
votes
1answer
552 views

bash: why use “treat all files as text” flag with the diff command?

I see a few examples when using the diff command, particularly using it recursively for checking whole directories, to use "diff -ar foo/ foo2/". If I'm checking a bunch of mixed files (some text, ...
1
vote
0answers
1k views

How to enable “Synchronize across time zones” option with Schtasks.exe

I need to create a schedule task in 1000+ machines which should be running at the same time hence decided to use the option of "Synchronize across time zones". For deploying in these machines, I am ...
6
votes
1answer
1k views

How do I set the group and affinity of a Windows executable from the command line

I have an executable foo.exe that I need to run concurrently 6 times on a multiprocessor setup where the first 3 instances will be assigned to cores in Group 0 and the next 3 instances will be ...
3
votes
0answers
53 views

Capturing new HTTP calls

I would like to capture system calls to open (http) urls. I'm not concerned with what the browser is doing internally. Rather, what URLs are attempted to be opened by explorer, or other programs (...
0
votes
0answers
97 views

Passing arguments by the hyperlink

I have some interesting question. Is it possible somehow to pass some parameters to C# application by means of hyperlink? If it possible, how to get them in application code? I tried to use ...
0
votes
0answers
369 views

How to run OpenOffice and pass a document to it?

I want to open xyz.txt file in Open Office Writer from Windows command line. The manual show only the command for opening the file in read only mode. But I want to open it in Edit mode. c:\...
0
votes
1answer
585 views

GNU ddrescue - can someone give me a good command to run in terminal?

I have a damaged hard drive with many bad sectors from my parents windows computer, attached via Sata cable to a Virtual Ubuntu (on my Windows Desktop). i want to use ddrescue (GNU) to create a Disk ...
0
votes
0answers
28 views

Start program with standard arguments (Windows)

Is it possible for me to start a program with flags from Windows Explorer? I want to start the Eclipse IDE with another Java Executable. When I open eclipse.exe from Explorer it will of course run ...