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)

2
votes
1answer
50 views

To send Enter key over remote computers in CMD

Below is my batchfile script that will launch an application in HOST & remote computers. @echo off setlocal enableextensions enabledelayedexpansion for /f %%a in (C:\COST\PCList.txt) do ( SET IP ...
15
votes
9answers
31k views

How to change brightness on CRT display through the Linux command line?

I have a Debian Linux desktop and a CRT display. I want to change the screen's brightness without using the monitor's brightness controls. How can I do this? Is this possible in the command line or is ...
2
votes
3answers
3k views

Can I close firefox browser tab or firefox browser from ubuntu terminal?

I dont want to kill browser process, I just want to shut down the browser from command.
1
vote
1answer
56 views

How do I delete a windows 8 recovery partition that won't delete through command prompt

I need to delete that nasty recovery image partition which is taking up my space as I moved my windows and recovery drive to different hard disk It won't delete (when I right click it says nothing ...
0
votes
1answer
1k views

How to create a hard link in Windows using mklink command?

I've no problem in creating junctions and symbolic links through mklink, but can't create hard link using this command. It returns "Access denied", have tried on both Windows 7 and 8.1 on different ...
3
votes
4answers
896 views

Delete subdirectories in Windows

Is there a way to delete all subdirectories named .svn from all levels of a directory tree, without touching anything else? rd/s and del/s don't seem to do it.
63
votes
13answers
142k views

Is it possible to download using the Windows command line?

Without using any non-standard (Windows included) utilities, is it possible to download using the Windows command line? The preferred version is Windows XP, but it's also interesting to know for ...
1
vote
1answer
32 views

How to kill a specific java process by application name

Usual taskkill /im "java.exe" will kill all java processes in the list. I however, want to kill a specific one. The problem is to identify the right process as there are multiple java.exe processes ...
4
votes
1answer
2k views

Delete files recursively matching a name on the command line (OS X)

Just recently I tried out a backup utility, and wanted to back up the local copies I have of some websites on my MacBook (OS X) Unfortunately, the utility left two files in every directory it backed ...
0
votes
1answer
25 views

Zsh prompt's history number sometimes increments after ignored commands

When displaying the history number of the next command in zsh's prompt (I'm on version 5.0.2), it is unexpectedly incremented after ignored histignorespace and histnostore commands (and then only ...
4
votes
5answers
24k views

How to disable sleep mode via CMD?

With only the command prompt, is it possible to disable sleep mode when closing the lid of a laptop?
2
votes
3answers
3k views

How to set to a variable, the result of a expression

I need to extract the date of a file, for then use this string as part of the name of a new file. I trying to solve this using the next commands: First I get the details of the file and redirect the ...
1
vote
1answer
39 views

How to connect/disconnect an Ethernet network with command line

I am using a balanced IP at work but some servers don't like that, they are considering it a security breach, so i often need to switch from my Ethernet connection (balanced with 2 IPs), to a Wireless ...
1
vote
3answers
10k views

Why can't I use %USERPROFILE% in %PATH%?

On my Windows 7 machine, using the System Properties > Environment Variables tool, I try to add %USERPROFILE%\Bin to the system variable PATH. For some reason, that doesn't work, even though ...
1
vote
1answer
49 views

How can I convert all “x”s to “y”s in filenames for a specific directory?

I have been naming files, of out habit as a programmer working on a server command line, with underscores "_" rather than spaces " " (because from the command line you have to escape spaces) but that ...
0
votes
0answers
26 views

Python shows wrong version in command prompt

I have downgraded my version of Python from 2.7.9 to 2.7.4 for compatibility with a legacy piece of software. On Windows 7 x64 computer. I removed Python 2.7.9 and then installed 2.7.4 into the ...
0
votes
0answers
11 views

Need help constructing cURL config file

I have a (rather long) cURL command that I'm currently running as follows: curl.exe -U : --proxy-ntlm --proxy myproxyserver --cookie-jar cookies.txt -H "Accept-Encoding: gzip,deflate,sdch" -H ...
1
vote
1answer
20 views

How to Concatenate Repeating String in Batch Script

I'm trying to concatenate a repeating string depending on the first parameter value passed into the script when it is called. This value represents the number of directory levels the current ...
0
votes
0answers
20 views

Linux: how to convert multi-mp3-audiobooks with appropriate cuesheets?

I have several audiobooks in MP3 format, which are in multi-file format which means, they are named like CD01_CHAPTER_001.MP3 and so on. Now what I would like to do is the following: convert the ...
0
votes
1answer
34 views

Batch File Won't Run - Command Line Script Does

I am using an ncftp script to upload some files via ftp. I want to automate this process so I am using a batch file to run it. Here is my script: ncftpput -u myusername -p mypassword -R myftpaddress ...
2
votes
3answers
16k views

Commands not working in Windows 7 32-bit command prompt

I have an HP laptop with a Windows 7 32-bit Home Premium operating system. My command prompt doesn't run lots of commands like help, shutdown, ipconfig, ping, etc. I get a message like: 'help' is ...
1
vote
2answers
3k views

Looking to create a batch file capable of editing a line (or word) in a text file

I have a text file (...\config.txt) containing 2 lines which looks like: Preamp: -4 dB Include: surround.txt I need to change "surround" to "headphones" in that config file. I really need to make 2 ...
1
vote
2answers
31 views

Wrong exit status upon evaluation of command substitution via ssh?

I've the following simple shell command which I'm expecting to fail and it does on my local: $ DIR=$(false) && echo ok || echo fail fail $ sh -c 'DIR=$(false) && echo ok || echo fail' ...
1
vote
1answer
556 views

Using Thunderbird, how can one attach from command line a file containing commas (,) in its name?

thunderbird -compose "attachment='$HOME/test test.txt'" works. thunderbird -compose "attachment='$HOME/test, test.txt'" does not work and gives a file does not exist error message. This must be ...
1
vote
2answers
47 views

Deduplicate images synced across devices in various resolutions

I currently have a couple of scripts and Android apps that together do the following for a set of member devices (smartphones, PCs, digital cameras): all pictures taken by all member devices are ...
0
votes
0answers
21 views

ArchLinux can't install perl-wx

I am trying to install perl-wx from the AUR Repo with yaourt, but can't get it to work. I have tried "export LC_ALL=C". Still an error occurred during the check. Maybe you can help me? Pastebin: ...
0
votes
1answer
3k views

How to mount WebDav filesystem on Mac?

Trying to do the following: mkdir /Volumes/temp mount_webdav davs://myusername@webdav.yandex.ru:443 /Volumes/temp It doesn't return any error, but /Volumes/temp is empty in result. Here are the ...
0
votes
1answer
30 views

How to write a Windows filename with åäö in command prompt?

I need to write a command line in the command prompt that references a file containing åäö in its name, but I can't seem to get it right. Windows should be set to codepage win1252 and the command ...
-2
votes
0answers
21 views

How to close a single PDF file using command prompt in Windows?

How to close a single .pdf file using the command prompt? I don't want to use taskkill /F /IM acroRD32.exe, as it'll close all open .pdf files.
0
votes
0answers
30 views

How can I run serial commands via plink/putty with windows cmd file?

I would like to open putty command line and run some serial commands via a Windows command file but I can't figure it out. I've tried variations of the following in my cmd file: call plink -load ...
17
votes
2answers
11k views

create mysql database with one line in bash

Is it possible to create an empty database with one line of command in bash? My newbie attempts have failed: mysql -uroot $(create database mydatabase;) I end up having to mysql -uroot create ...
0
votes
1answer
17 views

how to run an powerpoint add-in from the command line

I'm trying to open a powerpoint from the command line and run an add-in, or alternatively add an existing macro to a powerpoint programatically and then run the powerpoint with the macro. I see the ...
52
votes
13answers
72k views

How can I always run the command prompt as administrator?

As a developer, I often have the need to open a command prompt for various purposes. For example, I use iisreset to restart my local web server. I typically open the command window in one of two ...
2
votes
2answers
26 views

jump to specific function declaration from command line in Notepad++

With Notepad++ it is possible to jump into a source file at a certain line number using the option "-n" together with the target filename. Now, I'd like to start Notepad++ from the command line and ...
0
votes
1answer
10k views

How to mount a Windows share in OpenDreambox via Telnet?

I have created a new folder on root of C disk called recordings and I have shared it with everyone. I now want to mount this folder on my Dreambox so that I can record to it. But since this is an ...
61
votes
5answers
70k views

Using ffmpeg to cut up video

I am using ffmpeg to cut out a section of a large file like this: ffmpeg -i input.wmv -ss 60 -t 60 -acodec copy -vcodec copy output.wmv The -ss part works fine but the -t is ignored. It correctly ...
1
vote
2answers
2k views

Windows 7 compatibility mode set for Windows XP SP3 for an executable from the command line and bypass User Account Control Prompt

I'm trying to package an application called Boss and is intended to be deployed through SCCM 2012 and seems that is an old Windows 2K application so it doesn't has all the properties I wish it could ...
0
votes
1answer
72 views

Windows 7 - Change what closing the lid does, UTILITY/CMD

I wonder if anybody knows a utility, or command, which can change this setting in windows in one click. I often need to change it on my laptop whether I want it to do nothing when the lid is closed or ...
2
votes
1answer
31 views

How to remove substring in Powershell script

This script is almost what I need: $input_path = 'C:\Common' $output_file = 'C:\Common\extracted.txt' $regex = 'assets' Get-ChildItem -Path $input_path -Filter *.txt | Select-String -Pattern $regex ...
0
votes
1answer
22 views

why is the powershell i can open from the run box not the same thing i can open from the start menu?

If I WinKey + R to open the run box and type powershell it works to some extent as it opens up a command line box. However, this windows doesn't behave like the powershell I can open from Start > ...
2
votes
2answers
5k views

Run Safari from terminal with given URL address without open command

I'm having trouble with opening Safari from terminal. Command I tried is /Applications/Safari/Contents/MacOS/Safari http://www.example.com Safari opens and tries to navigate to the url: ...
2
votes
1answer
37 views

Batch why <nul breaks my file

Well guys i am basically trying to get user input and type it on the batch I will be using backspace and enter so i cant use choice Thats why i am following this method To capture characters as ...
0
votes
1answer
13 views

print names of files in folder from path in terminal

I was making a program and want to see all the items in a folder by giving it the path. my program uses the terminal so the commands are the same. something along the lines of echo ...
0
votes
1answer
5k views

Windows 7 Disable Proxy via cmd - and put in effect

Windows 7 (64-bit) Disable Proxy via cmd - and put in effect? I have found the correct registry key to change, and have code to change it. reg add ...
7
votes
3answers
3k views

If a Windows cmd.exe is running with elevated privileges does anything I execute from its prompt also run with elevated privileges?

If my cmd.exe Window says "Administrator" in the title bar, indicating it was started with elevated privileges, does this mean anything I execute from this command window is also run with elevated ...
1
vote
1answer
27 views

Can't Use Powershell Active Directory Cmdlets Even With RSAT Installed

A while back I wrote a simple .ps1 that let me look up the name of a user or the hostname of a computer and tell me which OU of my AD it resided in. I don't recall having any difficulty running the ...
4
votes
3answers
21k views

Disable internet access but leave LAN working

I'm looking for a command (or command line program) to toggle (disable/enable) internet access to the outside world in Windows XP machines. It should temporarily block internet access but leave the ...
1
vote
1answer
26 views

Linux equivalent for compact /c /s windows command?

I find the compact /c /s windows command really uselful for compacting ultra verbose traces/logs directories (which in my case, when debugging, can reach several GBytes in a few days). Advantage : It ...
0
votes
0answers
17 views

Send dynamic argument to an application through its shortcut

I am trying to create a shortcut link which will run/open Command Prompt (cmd) as Administrator having present working directory (PWD) set as the supplied folder path. What I have done: Created a ...
0
votes
2answers
2k views

Command line tool for image conversion [duplicate]

Possible Duplicate: Free command line image converter I need a command line tool for windows which can be used to convert an image from any common format to 24 bit bitmap. I'm writing some ...