A command-line interface (or CLI) is a method of interacting with your OS or software by typing commands on your keyboard.

learn more… | top users | synonyms (3)

29
votes
6answers
16k views

How can I trigger a notification when a job/process ends?

The place I work at has commands that take a long time to execute. Is there a command/utility that I can use to notify me when the command execution is over? It could be a popup window or maybe a ...
0
votes
0answers
278 views

How can I add a cmd line parameter to a .exe file?

I have finished a simple userform Excel application, and I'm going to now zip the Excel sheet to be an executable file (.exe). I wish to add a cmd line when making the .exe to make the zipped .xls ...
1
vote
2answers
1k views

Modify output of ping to text file into a single line

I am using a loop and this command to display my ping result in a text file: ping.exe -n 1 xxx.xxx.xxx.xxx>> trace.txt The result is 8 lines of code! Pinging xxxxx [xxx.xxx.xxx.xxx] with ...
0
votes
1answer
329 views

Downloading a mail attachment to a remote server

I recieved a large zip file by mail. And I want to download it to my remote server, for which I have only cli access. What can I do in this situation? I'm not running any mail clients in the remote ...
4
votes
1answer
4k views

Split PDF document from command line in Linux?

I would like to extract page ranges from a PDF document into a new PDF document using the command line in Linux. Note that: Pdftk - The PDF Toolkit fails for me with: $ pdftk input.pdf cat 1 ...
1
vote
0answers
418 views

How to send email from alternative address from Lotus Notes from command line?

This answer shows how to send an email from the default address of Lotus Notes. We, however, also have something like a common email address to our department, with a common inbox. My question is how ...
4
votes
2answers
40k views

List members of a Windows group using command line

I would like to get a list of "normal" users in the Windows command line. By normal, I mean the users that appear when logging on to the computer. Thus, disabled accounts, accounts like System, and ...
3
votes
1answer
1k views

Deleting Multiple Files

I am deleting multiple files with the command: del /s *.doc *.rtf *.txt I get the error Could Not Find *.doc. How can I get the command to continue deleting RTF and TXT files when there are no ...
1
vote
3answers
574 views

Windows Command Prompt - Pause during mousedown

When the mouse is pressed 'down' on the prompt's scrollbar, say during a long command (dir /a /s c:\ for instance), output seems to be paused. Not only that, but the CPU usage for cmd.exe drops to ...
5
votes
4answers
29k views

How do I recursively list filenames (only) in DOS/Windows? [duplicate]

Possible Duplicate: Get bare file names recursively in command prompt I would like to recursively list all files in a directory, showing filenames only (without extensions and without the ...
6
votes
2answers
10k views

Converting images to video using FFMPEG on Windows

I'm trying to convert a series of JPEG images into a time lapse video. They're in the format IMGP0001.JPG, IMGP0002.JPG, etc. From the looks of things, this should match the pattern IMGP%04.JPG. I've ...
7
votes
3answers
9k views

Output List of User's Groups

While easy on Linux, not as easy on Windows from what I've been able to gather so far. I've found the command that kinda does what I want which is: net user username /domain However I wish to strip ...
0
votes
1answer
553 views

PowerShell looks like Windows command prompt (cmd)?

I just reinstalled Windows 7, but for some reason the default PowerShell looks like the "cmd.exe" program instead of its usual blue awesomeness. Anyone know how to fix this? Any way other than ...
0
votes
2answers
98 views

Tool/Utility for copying one file inside another

I'm looking for Tool/Utility with which I could copy one file inside another, but with option to specify target location in second file. And it must overwrite overlapping content not insert. for ...
0
votes
1answer
144 views

Terminal shortcuts not working on remote machine

I know this is some kind of setting issue but I can't remember how to resolve it. Basically I'm SSH'ing into a remote machine (Ubuntu) and short cuts such as up, history, tab etc. do not work. Can ...
0
votes
0answers
139 views

Cannot connect to smtp server?

I have setup a dedicated SMTP server with the command: sudo dpkg-reconfigure postfix But my problem is with sending a message using the AMS sender program. I can send email through 1 ip address. ...
1
vote
5answers
207 views

Using SSH In Linux Command

I want to connect to my ssh with this command : ssh host@myhost ls -l / but i want to enter my password in the above command , Is this Possible ? for example our command is like this : ssh ...
2
votes
1answer
817 views

Apply command to files which names match a regular expression

For example, I want to apply chmod 777 to every file in some directory which name matches some regular expression. Sure I can do stuff like chmod 777 f*, but when it comes to something more ...
5
votes
1answer
3k views

Unzip returns “Unsupported compression method 14”

I recently downloaded a large number of GIS data files from a government agency to a file server and need to unzip all of them via the command line. However, unzip filename.zip is returning ...
120
votes
5answers
267k views

How can I display the contents of an environment variable from the command prompt in Windows 7?

In Windows 7, when I start the Command prompt, is there any command to display the contents of an environment variable (such as the JAVA_HOME or PATH variables)? I have tried with echo $PATH, echo ...
0
votes
2answers
5k views

How can I copy multiple files in different directories using the Linux cp command?

Could you please help me figure out how to do this? Let's say, under this directory: /home/user1/ there are 100 folders, the name of these folders are 1, 2, 3 ... to 100. In each folder, there are ...
4
votes
1answer
784 views

Linux: Print specific character range in each line

What is the most straightforward way, using Linux command line utilities, to print a specific range of characters for each line read on stdin? For example, for this input file: 1234567890 0987654321 ...
3
votes
2answers
37k views

How to list all computers in a windows wi-fi network?

A wi-fi router has been setup with a number of windows machines connecting to it. How do I use windows command line to list all the computers (either by hostname or ipaddress) in the wi-fi network. ...
0
votes
1answer
325 views

complete scan windows to find any issues and fix them

I remember there was a phrase we type in 'Run box'/ command-line and insert windows CD in drive, then it scans whole system for probable errors and fix them. Would you please say it? Or Any new ...
2
votes
2answers
2k views

Variable Scope in Batch Files

I think this is a question about variable scope. I am trying to understand why the %average% variable can contain anything other than "0" when the line echo average before %average% is reached. It ...
0
votes
2answers
3k views

How to zip files in XP's command line without additional tools/downloads

After prowling google, and checking an old thread in ServerFault, I thought I would try here. Without any additional downloads, on a fresh install of XP SP3, how can I run a script to extract AND zip ...
1
vote
1answer
246 views

Adding an alias to .bash_profile removes other commands?

Before touching .bash_profile: mongod launches a mongo server, rabbitmq-server launches a rabbit server, etc. But once I add: alias ethertunes="sudo NODE_ENV=development nodemon --debug ...
7
votes
3answers
30k views

How do I change automatic logon via Script or Command Line?

After deploying a Windows 7 image to Stand alone machines we run into the following problem. If we set autologon to off then we have to log in manually and activate Windows and Office - the Keys ...
2
votes
3answers
12k views

How to copy a file from unix to windows machine, from commandline

How to copy a file from unix machine to windows machine, from commandline.
3
votes
4answers
990 views

How to list one file in each subdirectory of root folder?

Apologies if this is trivial- but how do list just one file in each subdirectory of my root folder? Linux terminal or MS DOS syntax doesn't matter. I would guess it would be an ls or dir command with ...
1
vote
2answers
639 views

Can't get the AT command to work, Windows XP

at 8:24am "c:\windows\system32\calc.exe" I see see a new item in task scheduler 8:24am comes, it says running, calc.exe appears in task manager stays there but no window shows. ADDED strange ...
19
votes
2answers
15k views

Counting total number of matches with grep instead of just how many lines match

Does grep offer a way to count the total number of matches it makes? The -c option only returns the number of lines that matched the regex, but in this case I have multiple matches per line.
3
votes
1answer
398 views

Two sets of colors/properties in powershell/cmd?

I am witnessing strange behavior of PowerShell. Namely when I am running it from Start menu I am getting image on the left, but if I run it from the Run menu (Win + R) I get the image on the right: ...
3
votes
2answers
249 views

Who are all these connections showing up in the command prompt?

I ran netstat -no and all these addresses came up: I had just restarted my computer and nothing was even running except for the command prompt. I didn't even have a browser open and I keep my ...
0
votes
1answer
813 views

Audacity's Export Selection: How can I export a file using the Nero AAC Encoder?

I'd like to use the Nero AAC Encoder to create my lossy files. Here's what is happening: I open a WAV file in Audacity. I select the portion of the audio I need to export and click export ...
4
votes
6answers
13k views

Regex Replace from Command line

Is it possible to regex replace from command line? Right now I'm using notepad++ to do this. In command line I can only use FINDSTR wich can only locate the mached files/lines EDIT : Maybe it will be ...
1
vote
2answers
2k views

CMD MOVE can't replace directories in WIN 7

The MOVE command does not work when to ovewrite a directory. I have also tryed to run cmd with admin rights. I'm posting this question with more info so you can easily test it self. Make your own ...
1
vote
3answers
287 views

cut and paste filename with spaces into a command

when i type ls or locate as an output i get "a file.txt" (there is a space between "a" and "file.txt". i highlight it with a mouse and than paste it with a middle button. now i have to put \ after ...
1
vote
1answer
255 views

Environment variables don't work

I can't get any environment variables to work besides Java. Here's a picture to show what I mean: Can anyone help out?
1
vote
3answers
65 views

How do I print a group of text matching a regex in Linux?

I'd like to print only few groups from text matching a regex. How can I do that in the Linux command line? What other tools for text processing are there in Linux?
2
votes
2answers
928 views

Linux CLI tool or script library to query media files properties?

Does anyone know of a tool that would allow me to get the properties of any media file, in a parseable way? Something similar to what ImageMagick's "identify" does for images: $ identify libre.jpg ...
1
vote
0answers
155 views

“Access denied” when trying to move a directory in Windows 7 [duplicate]

Possible Duplicate: Access denied, cmd move windows 7 I can't use this command in Windows 7 when I want to move a directory. If the destination exists, it says "Access denied". Why does ...
1
vote
3answers
15k views

Access denied, cmd move windows 7

I can't use this command in win 7 when want to move a directory if the destination exists. It says Access denied. Why hapens this? It worked in XP. move /y "%1" c:\mydir\ I can use robocopy, but ...
0
votes
2answers
191 views

Question about Terminal Prompt on Mac

I've got a question about the prompt in Mac's Terminal. I opened Terminal and was installing GIT. I don't know anything about Unix or how to use Terminal, so please forgive my ignorance. (I know that ...
0
votes
2answers
84 views

Is there a cursor-based interface to change environment variables?

I often need to change a small part of long environment variable (especially, e.g., paths), and do it either by pasting the thing into an editor and changing it there, or the equivalent. Is there ...
5
votes
2answers
2k views

How to make a cmd 'runnable as administrator' under windows 7?

I have written as small .cmd file to be executed as an administrator. I am trying to set its options as 'Run as Administrator' but the check box is not accessible. Why? How to solve this issue? I ...
10
votes
3answers
7k views

Windows CMD Batch, START and output redirection

I would like to run two programs simultaneously from a batch file, and redirect the first program's output into a text file like: start python 1st.py arg1 arg2 > out.txt start 2nd.exe %1 arg2 arg3 ...
2
votes
0answers
546 views

How to downmix 6-channel DTS to stereo from the command line?

I tried command eac3to.exe src.dst dst.wav -down16 -down2 (v.3.24) but it just re-produces the same 6ch audio without any warning. Operating system: both Windows 7 and Ubuntu. Update: See a solution ...
2
votes
2answers
991 views

Move all specified files in all subfolders to a specified destination

I made this command to move specified files in all subfolders to a specified destination and then delete all empty subfolders. Copying all PDF-files in subfolders into current dir for /f "tokens=*" ...
4
votes
1answer
6k views

Creating shortcuts to network locations with authentication on a Windows box

This post is a short novel, so bear with me... I'd like to find an effective way to manage a set of shortcuts that point to network locations (e.g. \\server-name\folder) that technically aren't just ...