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)

1
vote
0answers
7 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
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 ...
1
vote
3answers
470 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 & ...
1
vote
1answer
40 views
+50

To edit commandline Anki flashcards in MySQL

I need to make a small change in 77777 Anki flashcards, preferentially programmatically, not by using their replace tool which is not sufficient. I imported data originally there as CSV files where ...
0
votes
0answers
6 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
9 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 ...
62
votes
2answers
136k views

Setting and getting windows environment variables from the command prompt?

This is a very basic question, but I can't find an answer. I want to set an environment variable from the command prompt and then be able to access it globally (for instance, I should see it by going ...
1
vote
1answer
7 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 folder in the result list. ...
3
votes
4answers
50k views

Getting Windows 8 Product ID through command-line

I know it is possible to find the Windows 8 Product ID in the "System" page located in the Control Panel. But is it possible to get the Windows 8 Product ID using the command prompt?
0
votes
0answers
20 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 ...
4
votes
1answer
6k views

Is there any way to elevate a command prompt in Windows 7? [duplicate]

Possible Duplicate: Elevate a running program to administrator (Windows 7) Situation: I start a command prompt normally, without Administrator permissions, either accidentally by habit or ...
2
votes
1answer
23 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 ...
3
votes
1answer
6k views

Disable MsMpSvc from command line

Quite simply I'm looking for a way to disable Microsoft's security essentials service from the command line, you used to be able to run the command (as admin) net stop MsMpSvc but that was somehow ...
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 ...
0
votes
1answer
25 views

Windows command abbreviation and command completion

In some OS (i.e. IOS, JUNOS, FortiOS), it supports abbreviation like sh ver is equal to show version. For the shortcut key, if you type sh and press TAB, it will complete the command as show. Is it ...
0
votes
0answers
13 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
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
2answers
12 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 ...
17
votes
6answers
30k views

Command line SVG and image file viewer in Linux?

Is there any command line (pipe-able) graph viewer for SVG and JPG/PNG image files? Especially that, the graph/image files are output thru pipe line, rather than plain files, so there must be option ...
11
votes
3answers
6k views

Difference between UnxUtils and GnuWin32?

I am a Windows user who wants programs like grep and sed along with other utilities like ls, cut etc in my command prompt. I came across 2 packages which would accomplish this UnxUtils GnuWin32 I ...
2
votes
3answers
3k views

Add folder name to beginning of filename

I have a directory structure as below: Folder > SubFolder1 > FileName1.abc > Filename2.abc > ............. > SubFolder2 > FileName11.abc > Filename12.abc ...
1
vote
1answer
19 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 ...
0
votes
1answer
349 views

QuickBooks Automation

Does anyone know of any commandline switches that can be used with QuickBooks? In particular, I am looking for a way to restore a company file without using the menu in QuickBooks. I've searched all ...
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 ...
3
votes
5answers
13k views

How do I gain access over C:\Windows\Logs\CBS\CBS.log?

I can't access this log file for some reason. This is what I have tried so far: run prompt: C:\Windows\Logs\CBS\CBS.log notepad: C:\Windows\Logs\CBS\CBS.log elevated cmd: C:\Windows\Logs\CBS\CBS.log ...
0
votes
0answers
25 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 ...
0
votes
2answers
1k views

How do i configure conemu to open a new tab instead of a new window, when run no the command line?

I use total commander a lot and in my muscle memory i have it that i can run cmd at any time in total commander, and it will open a new shell window at the current directory. I'm looking for conemu ...
1
vote
1answer
75 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 ...
1
vote
1answer
5k views

View hidden files/folders on windows phone?

I have a Windows Phone, and when I connect it to my pc, I can only see files such as music, pictures, music, etc. I already enabled the ability to see hidden files, but I still can only see the ...
2
votes
3answers
2k views

CMD: Append to path without duplicating it?

For one CMD session I can easily set a new path: SET PATH=%PATH%;"insert custom path here" Doing so in a batch file does not consider whether the custom path is already included. How do I avoid ...
1
vote
4answers
32 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 ...
-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
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 ...
2
votes
3answers
10k views

%USERPROFILE% variable not working

If I try to create files in the command prompt using the commands mkdir C:\Users\Tristan\AppData\Roaming\modinstaller\recovery mkdir C:\Users\Tristan\AppData\Roaming\modinstaller\mods my computer ...
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 ...
4
votes
1answer
3k views

crossfade between 2 videos using ffmpeg

I've been trying to achieve a crossfade transition between 2 video clips using ffmpeg but have failed so far. I'm new to ffmpeg and am mostly relying on tweaking what I can find in the documentation ...
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 ...
9
votes
4answers
11k views

Utility for extracting MIME attachments [on hold]

I am looking for a command-line tool for Unix (ideally, available in a Debian / Ubuntu package) for extracting all MIME parts from a multipart email message (or the body from a singlepart with an ...
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 ...
1
vote
1answer
32 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, ...
65
votes
5answers
102k views

How can I open a command prompt in current folder with a keyboard shortcut?

How can I open a command prompt in current folder with a keyboard shortcut in Windows 7? Is there any way to implement this? I think Autohotkey could do this, but don't know how.
3
votes
2answers
13k views

Checking if a user account is locked on another domain controller

I'm trying to see if a user account has been locked out, using the command line. I thought that I could do this with the net command, but when I run the command NET USER username /domain it ...
6
votes
4answers
2k views

How do I extract all the external links of a web page and save them to a file?

How do I extract all the external links of a web page and save them to a file? If you have any command line tools that would be great.
2
votes
2answers
827 views

Grep default color option

grep is one of the most commonly used command in linux. It feels to me that its basic feature to highlight the string you searched for on the output lines. this can be achieved by --color option. ...
21
votes
7answers
33k views

Terminal emulator with split panes for Windows 7 (64 bit)

I'm looking for a terminal emulator on Windows 7 (64 bit) with a specific feature: to be able to split the command prompt window into multiple panes. It's a great feature of Terminator for gnome, I ...
4
votes
2answers
2k views

“net share xyz /DELETE” fails if a file is in use on that share

I'm attempting, using NAnt, to disconnect a share (in order to redirect it somewhere else) but my attempt fails: [exec] Starting 'net (SHARE ad3-config /DELETE)' in ...
0
votes
0answers
38 views

call environment path commands from powershell

I can call any executable included in the environmental variable path from a command prompt by simply calling its name. However when i try to do the same from Power-shell I get an exception the ...
1
vote
1answer
3k views

Run an ftp batch file from within a batch file

I have a scheduled task which executes the commands in my file ftp.txt every day. The file can be seen below, it connects via ftp to my site and puts 3 XML files on to my web server. command: ftp ...
9
votes
6answers
11k views

Batch convert SVG images to desired size PNG or ICO

I have bunch of SVG icons that I'd like to use for my application to be developed in VB.Net 2010, and since it has no support to handle SVG icons, I need to convert those icons into either PNG or ICO, ...