0
votes
1answer
24 views

Passing optional parameters in a batch script

I'm trying to write my first batch script and trying to understand how to pass arguments. It's a very simple command which runs fine in cmd. Command: C:\Program Files\Foo> myexe -sd tempVar ...
0
votes
0answers
19 views

How do I replace a numeric label in one text file with the corresponding alphabetic name in a second text file?

I have two text files. In the first text file, I have a phylogenetic tree written as a series of sets as follows: (1,(((((((((163,164, etc. In the second text file, I have the taxon names as ...
3
votes
1answer
325 views

Opening Folder Options window in Windows from the command prompt

If I need to open the Control Panel through the command prompt, it is enough to type control I need to open the Folder Options window through typing some command through the command prompt. Any ...
0
votes
2answers
68 views

How would I know possible combinations of parameters an exe file ran via cmd can take? [duplicate]

You can run some exe files from cmd.exe providing arguments. example P:\foo\boo “” user pass P:\system\ company foo –P boo Is there any way to actually find out what parameters an exe can take? ...
0
votes
0answers
44 views

Windows Command Prompt /k with history

I have created a shortcut which launches cmd.exe with a specific working folder and runs a program using the /k switch C:\Windows\System32\cmd.exe /k eac3to.exe e: This works as expected however ...
1
vote
2answers
52 views

How to take command line parameters from a file

I've got a file each line of which contains an URL. All those urls one by one need to be passed as a command line parameter to a certain program. How to do this?
1
vote
2answers
336 views

What is the equivalent to --help or man page in Windows?

If I want to know what my options are for a Linux program then I'll do man program or program --help to find out. How do you do that on Windows? I was reading about how to run a screensaver from the ...
0
votes
0answers
160 views

Passing Command Line Arguments to EXE

I am using the java jar utility which does not supoort extracting to specific directories via command line argument. Therefore, I need to cd into the folder I want the extracted jar files to go ...
0
votes
1answer
57 views

Understanding an application's cmd arguments

I'm testing out an application and its sourcecode gives no clues as to the actual syntax other than the help output. I have tried many combinations trying to get it to work, and it keeps outputting ...
1
vote
2answers
798 views

What about this Forfiles command syntax is wrong?

I was attempting to issue the following FORFILES command, and I recieved an error that distressed me (listed after the command). C:\Windows\system32>FORFILES /P %WINDIR%\servicing\Packages ...
0
votes
2answers
66 views

How to get the command line of a running application?

If I've got a program open, for example notepad this.txt, how can I get the full command line of this application including the arguments which was used to launch the program? Ideally, I'd like a way ...
1
vote
2answers
189 views

Opening PowerShell at the current working directory from the registry

This question is prompted by a problem I faced while writing this answer. I am invoking PowerShell like this from the registry: C:\Windows\System32\WindowsPowerShell\v1.0\PowerShell.exe -NoExit ...
0
votes
1answer
530 views

Delete a character from an argument passed to a batch file

Suppose in a batch file, say receive.bat, is called with some arguments. Now receive.bat executes and it needs to process these arguments. Sometimes (but not always), an argument will end with a ...
2
votes
1answer
9k views

Pass a path with space to a batch file as a parameter

In first.bat, I use var5=C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\bin\x86_amd64\ CALL scripts\vc64.bat %var5% And in scripts\vc64.bat, I use SET var6=%1vcvarsx86_amd64.bat CALL ...
3
votes
0answers
332 views

Shortcuts with command line arguments blocked with IE error - These files can't be opened

My local shortcuts (.lnk files) do not execute if the shortcut has any command-line arguments On freshly-installed 64-Bit Windows 8 Shortcut worked fine on Windows 7 32-Bit It depends where the ...
0
votes
1answer
87 views

Is it possible to catch the arguments of a program?

I wwant to catch the command-line arguments of a program I use, so when I start test.exe with arguments -debug and -console I can see this arguments even if I don´t have the source code of the ...
5
votes
1answer
613 views

How to capture command line parameters for new processes?

I'm trying to capture the video conversion parameters passed onto the codecs in mediacoder to learn how codecs pass streams onto other codecs. I was wondering if there a program that captures the ...
2
votes
3answers
930 views

How to add command line arguments to command line arguments in Windows shortcut?

I know I can add a command line argument/option to a shortcut this way; for example: "C:\Program Files\Internet Explorer\iexplore.exe" www.a.com So IE will connect to a.com when it starts up. What ...
0
votes
1answer
150 views

Can I add arguments to a program in windows without using a shortcut?

Is it possible to add arguments to a file without creating a shortcut to it in windows? Specifically windows XP, Vista, and 7? If so, how would you do it? I'm not talking about using a batch file, or ...
3
votes
2answers
2k views

How to pass a filename by drag-and-drop to a shortcut in Windows

I have a program program.exe and a document document.txt, and to open the document, I can drag document.txt onto program.exe. So far so good. Now I want to call it with a command-line parameter -param ...
0
votes
1answer
1k 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 ...
13
votes
5answers
12k views

How do I find out command line arguments of a running program?

I'm looking for a tool or method to find out what command line parameters have been passed to a program, for example when it was run by another program (launcher-application scenario).
10
votes
2answers
60k views

How to start a program with command line arguments on Windows' cmd with 'start' command?

I need to start a program (virtual machine) in the background with a start command on Windows' 7 command line. Normally you owuld do this like that : start /b cmd yourprogram But I need to pass ...
1
vote
2answers
6k views

List files with path using Windows command line

My folder structure in a drive is like this (in Windows): Folder 1 Fd1 Fd2 Fd3 Fd4 Fd5 Folder 2 Fd1 Fd2 Fd3 Fd4 Fd5 This arrangement continues for 100s of folders. Inside Fd1 of each ...
4
votes
3answers
26k views

Command line argument for running as another user on Windows?

Under windows .msi installer, if you specify a custom action to be run at an application's installation time, it will get run under the "SYSTEM" user. Can I trick it by passing a command line ...
0
votes
1answer
199 views

Once-off run a program with command line options from shortcut

Is there any program that will let me run a shortcut, but add additional arguments to the command line? Ideally, I would like this as an option in the right click menu.