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)

0
votes
0answers
10 views

Linux command line tool to copy image to clipboard in python

Tried to asked the same question on SO, but got closed because "SO is not a code-writing service". So trying it here instead (because there will be far few lines of code to write than the original ...
4
votes
1answer
87 views

Hide what I type into Command Prompt

Some commands require putting in the password as one of the arguments (like net use, for example). Is it possible to run a command or change a setting in Command Prompt so that whatever I am typing ...
0
votes
0answers
7 views

chm issue. Error when clicking item within ntcmds.chm “The value of the property resizegloss is null or undefined”

I copied ntcmds.chm from an XP machine (I know it's probably a bit old, it being XP, but Win7 doesn't have any locally available chm like that) And when I click the "command line reference" item, I ...
0
votes
0answers
6 views

Linux console application for generating slide show

I'm looking for a non-GUI tool that can take in a list of pictures and a sound track and plays back the pictures as a slides show with the sound track in background. It should support transition ...
1
vote
2answers
14 views

Conditional variables in Makefile

I am trying to compile source code in various ways. For example, suppose I want to compile a fortran program with source code main.f90, file1.f90, and file2.f90 as inputs. To generate hello.exe, I ...
0
votes
0answers
10 views

Scheduled tasks inconsistently running

I'm trying to run a PowerShell command for a persistent session in Metasploit. It downloads and executes shellcode on system startup. I've gotten it to work when I'm on the computer with the GUI, ...
0
votes
1answer
10 views

Directory with same name subdirectory move

I got myself stuck and can't seem to find a quick way to fix this. I have an external HDD with a folder structure like this: \folder1 \folder2 \folder3 some of these have a subdirectory named the ...
1
vote
1answer
14 views

? wildcard produces unexpected result in LS directory search

I'm trying to get the hang of the CLI (command line interface). At the overall root directory, I did the following: root@droplet:/# ls ?tc I expected to get just the etc directory in the result ...
0
votes
0answers
25 views

Get data usage since last reboot by command line

For an automated batch-tool that monitors network usage, I would like to get the following, red underlined values using the Windows command line: That is, I want to get the number of bytes ...
0
votes
0answers
8 views

OSX HID control from PHP

Here's a real challenge: I have created a command that types from the CLI in OS X 10.11. osxtype "hello" will send the actually keyboard keypresses for h, e, l, l and o. it will type into what ever ...
0
votes
2answers
30 views

Why doesn't my IF ELSE work?

It's a simple script I wrote, nothing fancy at all @echo off echo 1 = stream1 source echo 2 = stream1 high echo 3 = stream1 medium echo 4 = stream1 low echo 5 = stream2 source echo 6 = stream2 high ...
2
votes
1answer
24 views

If a motherboard has onboard graphics, can I use a monitor for BIOS

I am building a home server that will run FreeNAS with a Plex media server plugin, and will only ever plug it into a monitor to do the initial command line setup. If I get a mother board like this ...
0
votes
0answers
14 views

Windows 7 safely remove USB multiple disk enclosure from command line

I want to eject a USB multi-disk enclosure from the command line or with a tool that offers command line support. I can find information about ejecting a USB drive but nothing that seems to support ...
0
votes
2answers
13 views

How do I find out how long a command has been running for using time command?

I have a long mysqldump thats been running for over 2 days now (many 100s of GBs of data being archived). I started the command with time so that I could see how long it took when it finished. Is ...
1
vote
1answer
21 views

Count number of lines in file using batch

I am using TrailerCount.bat file to count the number of lines in text file using below mentioned code @Echo off ::set newline=^& echo. SET FilePath=%1 Set /a _Lines=0 For /f %%j in ('Type ...
1
vote
3answers
493 views

What does hyphen mean in Windows batch file?

In particular, I have problems understanding the hyphens in the following lines, which are from wikibooks if not -%1-==-- echo Argument one provided if -%1-==-- echo Argument one not provided & ...
0
votes
1answer
43 views

Windows batch file deletes and recopies files WAY too fast - should take 15+ seconds, takes < 1 second. Why?

I wrote a script that checks to see if a folder exists, and if so, empties it. it then waits 5 seconds, then proceeds to recopy new (or maybe the same) files back into the folder. When the folders ...
0
votes
0answers
26 views

Cannot access server via SSH in terminal

When I try logging in via ssh root@server.org I am asked for my password, however when I enter it, it doesn't work. I can access the server by a different user then run su root and the password works ...
0
votes
0answers
11 views

Git asks for password in cmd [duplicate]

I have tried to set up my ssh-keys on both the command prompt and git bash. What happens, is that everything works fine till I do a git <something>, and it asks for my password. Enter ...
1
vote
4answers
39 views

Capitalize “FILE name.TXT” to “File Name.txt” in Linux Bash

I need a oneliner to rename all files in a directory from SomeThing.TXT NOT A FILE.ogg sensitive lalala.doc to Something.txt Not A File.ogg Sensitive Lalala.doc Most existing questions seem to ...
0
votes
0answers
9 views

How to get number of pages from pdf

I wanted to get the number of pages in a pdf file how can I do it I am using the below mentioned command for the same pdfcount "AAE 8.0 - Release Notes.pdf" | grep ^pages Awaiting for your ...
1
vote
2answers
130 views

Escaping the < sign with ^ does not work in .bat file

I'm trying to write a batch file that can generate some XML config files, but escaping the < and > signs does not seem to work. At the start of my script i wrote a test: SET ...
0
votes
0answers
12 views

Is it possible to initiate SCCM 2007 updates from the command line or powershell on client's computer?

Current Process: 1. RDP to client's machine 2. Install updates that are advertised in User Interface 3. Reboot Issues: 1. We have to remote into one machine at a time, which is a nightmare. 2. We ...
-1
votes
0answers
40 views

Internet connection not working

This problem is not really related to programming, but to my computer. As of this moment I'm writing from my mobile phone. Not because I want to, but because I'm forced to. Maily because I have no ...
1
vote
1answer
37 views

How do I use VLC Command Line In Windows Batch Line Without Showing GUI?

I want to use the following to convert some M4A files to MP3. It works fine, but it displays the VLC GUI for each file and shows 'quit' as a second file to be converted. Is there a 'silent' mode, ...
0
votes
1answer
16 views

How do I view the tab completion function for a command in bash?

I ultimately want to alias screen -r. I mostly want to do this because that command has an awesome tab completion feature that shows me the current GNU screen sessions. I want that power with the ...
0
votes
1answer
15 views

Command for sharing same folder with multiple names

I’m currently working on an improvement of our deployment process and I’d really like to automate one of the new steps. Through Windows UI I can share the same folder on the network under multiple ...
0
votes
0answers
18 views

Applying a command-line flag to Chrome at auto-launch

(Windows 8.1) Chrome auto-launches for me when I log in, and I like that. The problem is that the Disable New Avatar Menu flag recently stopped having any effect, so the only way to actually disable ...
0
votes
1answer
24 views

I want to read and write files on server how can I do it using command prompt

I want to read a particular file from server and after comparing them I want to write the difference in a txt file at the same server how can I do the same using command prompt. findstr ...
0
votes
1answer
20 views

Specifying multiple cd commands in a .command file

I have a very small .command file set up on a mac server that's basically just meant to launch a Python process. It's more intuitive for other people to use than opening terminal, typing out 'python' ...
0
votes
2answers
11 views

When a task terminates in ConEmu console, how do I rerun it in the same console?

So I have this Task in ConEmu which creates several split consoles. In some of them I run a mongo database. Sometimes I terminate the database and leave the console open. Normally in a command line ...
0
votes
0answers
25 views

Set Script variables as remote directory paths

I have a script where I copy all the files in a directory on a remote computer and copy them to the local machine. The commands below is where I receive errors. Is there anyway to store a remote ...
0
votes
1answer
25 views

bash - processing output one line at a time

I read that xargs was good for processing the output of a command one line at a time (and it is). I have the following line in my script. ./gen-data | awk '{printf $2 " "; printf $1=$2=$3=""; gsub (" ...
0
votes
0answers
4 views

Powershell: Set-ItemProperty not working when script running from C# webapplication [migrated]

I have a C# web application which hosted on IIS 7.5, which runs powershell script for creating apppool and website. if I run the powershell script from command prompt it working but when i run it ...
3
votes
2answers
54 views

How to determine what type of wifi networks are supported by your driver on Linux

On Linux (specificially Ubuntu) what's the easiest way to determine what types of Wifi protocols your hardware and driver support? I have a router running DD-WRT that supports broadcasting in both a ...
0
votes
0answers
29 views

Modify right click context menu with copy filename or copy full file path

I'm wanting to modify the right click context menu for windows explorer. I need to select a number of files and right click on them and copy the file path. Ideally I would also like the option of ...
0
votes
1answer
28 views

restore bat file default, change its edit

I have windows 7 64-bit, I've been trying to figure out how to set up a bat file to run with admin privilege so my wife can back up her computer by just clicking on it. It's been a journey. I'm a ...
0
votes
1answer
20 views

reg add saves incorrect value for file association

Run from Admin this code works in Windows XP. set app=ExtrNS.exe set nam=ExtrNS@ REG ADD "HKLM\SOFTWARE\Classes\Directory\shell\%nam%\command" /v "" /t REG_SZ /d """"%CD%\ExtrNS.exe""" """%%1"" /f ...
1
vote
1answer
31 views

Disabling the “Windows cannot find '[foo].exe'” popups

When I use the start command in a batch script to launch a program, I expect that program to be launched asynchronously; this happens exactly as I'd expect it would if the program that I'm launching ...
1
vote
1answer
25 views

Terminate endless running process in a batch file

I am trying to find a way to automate a process with a batch file. The process is one that logs output to a file indefinitely until it gets a break (ctrl+c) command via the keyboard. I can't seem to ...
0
votes
0answers
15 views

Unable to enable libvpx library in ffmpeg from command line

This is my first question I have asked on superuser, so please be patient with my ignorance if it should surface. I have spent hours and hours trying to figure this one out and would greatly ...
2
votes
1answer
24 views

Copy the most recent of two files with Windows command line

I have a Windows directory which contains 4 files in total. The file names are as follows: Address_1502.csv Address_1602.csv Site_1502.csv Site_1602.csv The prefix of the file name never changes ...
0
votes
1answer
29 views

zip extractor reading archives from stdin

As follows from UNZIP(1L) man page Archives read from standard input are not yet supported Are there another CLI programs running under Linux/cygwin which can extract from zip archives reading ...
2
votes
2answers
52 views

Replace Command Prompt with Powershell on Power User Menu

I would like to replace the Command Prompt option on the power user (Winx) menu with and option for Powershell. Like many Windows user I've slowly been transitioning from using the traditional windows ...
0
votes
2answers
38 views

How to store formed command line without running it in bash or terminal?

For example, I have formed a long complicated command that will improve the world and lower an entropy in the Universe. But then (huh!) I see that I forgot to make a dir required. I want to store my ...
0
votes
0answers
22 views

bashrc file read error in xterm

My bashrc files is read but is not interpreted correctly. qwul@qwul-ThinkPad-L440:~$ cat .bashrc #PS1='\[\e[1;32m\]\][\W]\$\[\[\e[0m\]\]\] ' alias la="ls -a" #alias ll="ls -l" ...
0
votes
0answers
6 views

Stop PowerShell from sharing command history between simultaneous instances

Let's say I have two PowerShell instances open simultaneously. If I type a command in one of those instances, hit enter, switch to the other one and hit "up", the command I previously typed appears ...
1
vote
1answer
17 views

change %i to %%i and nothing happened

I have a file with two columns of file name. The following command lists the content of the file. (for /f "usebackq delims=;" %i in ("C:\RENAME-ALL.txt") DO ECHO %i When I put the same command in ...
2
votes
0answers
57 views

DOS program has 8 second delay on startup under Win 7

My legacy DOS program (instant-Office) endures an 8 second delay when starting under Windows 7 - every time. Having run the identical program thousands of times under DOS and Win-XP it starts up ...
0
votes
0answers
32 views

How to make a batch command that list all the files in a directory?

I am relatively new to batch coding, and am trying to make a file that will list all files in a specified directory, with the size, is a directory or not, etc. Currently, what I have is: @echo off ...