The tag has no usage guidance.

learn more… | top users | synonyms

2
votes
2answers
1k views

Robocopy “modified”

Using robocopy on Windows 8 to automate backing up several different groups of files. It labels all of them as "MODIFIED" all the time though even if I just ran it and haven't touched the files. How ...
2
votes
1answer
4k views

Command line 7Zip to extract file by specified result path

Is it possible to make 7Zip extract one file by name from archive to specified full path (including new filename)? I've found only: 7zip e <archive> -o<resultDirectory> <filemask> ...
2
votes
1answer
24k 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 %var6%...
2
votes
3answers
83 views

pkzip and smeltwater - is my memory wrong?

Circa 1994 I remember someone telling me with glee that an easy way to remember a certain set of command-line arguments for pkzip was to arrange them so that they spelt out smeltwater, or something ...
2
votes
2answers
427 views

How to know if I have RAID configuration on my machine?

I was wondering if there is any Linux command I can use to check whether I have RAID setup on my machine? I know about cat /proc/mdstat but didn't show me anything meaningful. I just want to know if ...
2
votes
1answer
115 views

How to generate an OpenPGP Signed Message with GPG?

In RFC 4880, there is section 11.3 which specifies the different formats an OpenPGP Message block can have: 11.3. OpenPGP Messages An OpenPGP message is a packet or sequence of packets that ...
2
votes
2answers
10k views

robocopy with DCOPY:T does not work

I am using Windows 7. The robocopy switch DCOPY:T can be used (I mean there is no parameter error) in the command robocopy C:\TEST F:\test /E /MIR /COPYALL /DCOPY:T However, folder timestamps are ...
2
votes
1answer
2k views

stat command in Mac OS X

I'm trying to get a formatted time output using a such command in Mac OS X 10.7.5 (in the Terminal app): stat -f "%m" -t "%Y" "myfilename.jpg" However, it still gives me a unixtime, not the ...
2
votes
1answer
1k views

Play a .mov file in existing VLC media player window using command line

I'm trying to play a .mov file using VLC media player (2.1.4) command line, but I want it to join the existing VLC media player window each time. It seems like in older versions there was a command-...
2
votes
1answer
100 views

Error starting OneNote from command prompt

When I start OneNote 2013 from a command prompt, OneNote opens, but I am getting this error: Microsoft Office has identified a potential security concern Hyperlinks can be harmful to your computer ...
2
votes
0answers
1k views

Chrome: How to refresh tab if open, otherwise open new tab?

I'm opening a .pdf file from the command line in Chrome (Windows 7 64 bit). Every time the pdf file changes open the pdf to view it, but I don't want Chrome to open it in a new tab every time. Is ...
2
votes
2answers
920 views

passing on command line options in bash

I have a question. I have a script, a kind of long script written in bash aprox. 370 lines. That has several functions and in those functions the user has to enter information which is then stored in ...
1
vote
2answers
80 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
1answer
182 views

Pass an option syntax string as filename

I somehow got a file named --no-recursion in a directory. How can I get cat to show what it contains? Not like this, since the argument gets interpreted as an option: root@nagini [/home/lalilulelo]# ...
1
vote
1answer
61 views

Batch script to execute jobs one after the other using a GUID as an input argument

I would like to create a batch file which I can reuse with different GUID input parameters. Normally, I execute a file 4 times, one after the other with varying input parameters like so: D:\>Drop\...
1
vote
1answer
941 views

Open PDF to a certain page?

I need a batch file command to open a pdf with the Acrobat Reader on a certain page. "C:\Program Files (x86)\Adobe\Reader 11.0\Reader\AcroRd32.exe" <PageNumber> <DocumentName> Thanks.
1
vote
2answers
361 views

MacOS Start FireFox via CommandLine in 32 bit

Firefox can be startet via Commandline How can I run an application with command line arguments in Mac OS Is there an argument to make it start in 32 bit ? I know i could select it via finder, but ...
1
vote
1answer
68 views

Cannot launch app minimized with /minimized

For whatever reason, AMD Gaming Evolved (Raptr) is dying randomly (ticket has been submitted). I made a task schedule that automatically launches Raptr every hour with this action: "C:\Program Files (...
1
vote
3answers
107 views

How to see a list of available filesystems that I can use for the mkfs command?

Simply I would like to create some FAT filesystem. I would like to know what kind of FAT filesystems are available and what are their names. How can I do this from the command line?
1
vote
1answer
102 views

Start Firefox update (nightly) without actually starting firefox [duplicate]

I'm running a nightly version of Firefox (aptly called "Nightly"), and there's a problem. Given this is a nightly release, one of the recent updates, pretty much make Firefox unusable - it'll crash ...
1
vote
1answer
541 views

Passing Arguments to Hex on Windows Command Line

I want to pass arguments manually on the Windows command line consisting of hex values of the byte e.g. "\x41\x42\x43\x44" - a sequence of 4 bytes on the cmd.exe command line to a program. How do I ...
1
vote
1answer
65 views

How do I set an alias for a search command that takes two arguments

I have a shell command which find files that contain 2 strings together: $ grep -rl JFL . 2>/de/null | while read n; do grep -l 20120907 "$n"; done The strings above are JFL and 20120907 Now I ...
1
vote
1answer
37 views

Internet Explorer blank page start

You know that it is a slow browser (probably it is not already but I am still using W7). It is mainly because it loads a lot of stuff during start up. There are guidelines how to set up "about:blank" ...
1
vote
2answers
43 views

Equivalent of `$@` for windows shell

I use batch files to create wrappers around some commands which need extra argument to work. For example, I have a file pip.cmd which adds a custom proxy argument to all pip calls: pip.exe --proxy="...
1
vote
1answer
122 views

Using cURL command-line tool on Mac, What can I do to this script to ask it to fetch stock data which will replace commas with NO SPACES

Example: Google Outstanding Shares are 670,000,000 and this value is collected in a txt file from Yahoo Finance API via the below script. The issue is; that numbers WITH commas or spaces are a bloody ...
1
vote
1answer
427 views

Command line 7Zip to create archive without extension

If I specify full extensionless result path 7zip adds one corresponding to the type of created archive. How can I make it name the result file exactly as I have specified in command line argument?
1
vote
2answers
3k 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 /...
1
vote
1answer
944 views

How to launch a command-line application without having to type the command?

I'm trying to write a python script that will launch alsamixer. alsamixer is a command-line application, that you typically launch by: Opening up a Terminal. Typing alsamixer. I'm trying to make ...
1
vote
2answers
2k views

How to pass command line arguments in Mac Application

I have created a Command line tool application ( Xocde --> New App --> Command line tool) and it's running without any problems. Now i want to run it through terminal and pass some command line ...
1
vote
1answer
3k views

How to preserve white space in Bash arguments

I use the command: cm1 cm2 arg1 arg2 'argument 3' It first goes to cm1, which will then redirect arg1 arg2 'argument 3' to another file. /usr/bin/cm1: #! /bin/bash # some script here shift cm2 $@ ...
1
vote
2answers
54 views

extract portion of text from cmd

I need to extract a portion of text from a text file log.txt, where the contents of the file are as follows. SESSIONNAME USERNAME ID STATE TYPE DEVICE services ...
1
vote
1answer
94 views

Disable erroneous file type detection by extension on ffmpeg

I am trying to transcode mjpeg files with ffmpeg and it is incorrectly detecting settings. If the file has no extension, or an unknown extension, ffmpeg will correctly detect mjpeg format and will ...
1
vote
1answer
833 views

How to disable Gecko package popup for Wine?

When I run my app under Wine: wine my_app.exe I've got this annoying popup: which says: Wine could not find a Gecko package which is needed for applications embedding HTML to work correctly. ...
1
vote
1answer
190 views

Missing arguments in SQL 2012 command line installation

I am new to SQL installation through command line. We are developing an application and using Installation Shield. I need to install SQL server on clients pc, so I am using command line silent ...
1
vote
2answers
503 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 -...
1
vote
2answers
95 views

Change attributes of all symlink targets in a directory

How to change attributes of all symlink targets inside a directory ? /usr/bin/find /mydir -type l | xargs /bin/readlink | /usr/bin/chattr +s piping three commands wont works. Thanks.
1
vote
1answer
3k views

My Windows 7 shortcut with arguments keep getting changed

I have a shortcut to chrome on my desktop with a parameter: Target: C:\Users\Eyal\AppData\Local\Google\Chrome\Application\chrome.exe --allow-file-access-from-files Every few days (I can't figure ...
1
vote
1answer
864 views

Internet Explorer 8 suspended and debug command line options

I have Internet Explorer 8 set as my default browser and whenever I start my web application in Visual Studio 2010 with debugging it starts Internet Explorer 8 with the following command line ...
1
vote
2answers
27 views

In Firefox, is there a counterpart to Google Chromes -app option?

Google Chrome has ability to launch in an "app" mode by using -app command line switch, for example: "C:\Program Files (x86)\Google\Chrome\Application\chrome.exe" -app=http://some-url Using this I ...
1
vote
0answers
27 views

how to prevent sshd from interpreting remote command as a user

I set up a dedicated ssh key pair for the purpose of forcing a specific command on a remote server. I added the public key to the remote server authorized_keys file along with a command option ...
1
vote
2answers
188 views

Open file in Notepad++ as a tab without closing launched process

Some old tools are designed to work with an external text editor. I am stuck using a legacy tool that does this in the following way: Create a temporary file with the content to be edited. Launch ...
1
vote
0answers
292 views

Modify Chrome's startup command line options

I managed somehow to install an insidious toolbar. It modified many of my browser settings but one is especially puzzling. By typing chrome://version in the address bar I've noticed the following in ...
1
vote
1answer
123 views

Silent install exe with logging enabled

I have been facing a really strange problem trying to automate the installation of NewForma. Below is the line I'm using in a bat file: "\\bdc\deployment$\NewForma\NewformaProjectCenterOffice64Setup....
1
vote
0answers
39 views

Any way to obscure password in Windows EXE start-up argument?

There is a Windows GUI application (call it A from now on) that takes some password as its start-up argument. For example, C:\SomeProgram.exe /usr=homer /pwd=simpson There is an application (call ...
1
vote
1answer
97 views

realpath (GNU coreutils 8.22) does resolve “.” symlink regardless of “-s”

I'm trying to use realpath in a script which has to ensure that it is located under a certain (possibly symlinked) path. Also the script has to be runnable from any location, so it cannot presume that ...
1
vote
0answers
97 views

Command line usage for Chrome

Right now I have a command on Windows that invokes chrome.exe with a local (on disk) .html file as argument. The resulting behaviour is: Chrome opens a new tab with that page. What I want is: if ...
1
vote
1answer
44 views

GnuPG: how add user ID as single command without having to use Key Edit menu

Is there a command that can be given to GnuPG: to add user ID without having to go through the Key Edit menu. We need to be able to add and delete User IDs from inside a Python program. It would be ...
1
vote
1answer
5k views

How can I disable accelerated compositing in Chrome without relying on a shortcut or .bat? [duplicate]

I'm using BBLean as an Explorer replacement to save myself a little screen space (among other things), but it's a bit finicky with Google Chrome, breaking page rendering in most situations. After some ...
1
vote
0answers
1k views

Command-line option to compare 2 images in FastStone Image Viewer

I find FastStone Image Viewer a useful freeware to compare 2 images side by side, by selecting the images (by holding down Ctrl and clicking) in its Browser view, then pressing P. Is there a command-...
1
vote
5answers
1k views

Unable to delete a file, shows path not found error

Due to some malware attack a file named com7.ini.asp got created in my folder and it is hidden when I browse it through Windows. I tried the following: I gave the whole path in the address bar and ...