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)

7
votes
2answers
2k views

Is there something like Command Substitution in WIndows CLI?

In Linux (Bash), there's a way to use a command as a parameter for another command, using back-ticks: > echo ===== `time` ===== This would print: ===== The current time is: 12:22:34.68 ...
1
vote
3answers
10k views

Setting environment variables and appending to system-wide %PATH% with a Windows batch file

I'm trying to set three environment variables and append them to the machine path. Right now my code is like this: setx CATALINA_HOME "C:\Program Files (x86)\Apache Software Foundation\Tomcat 7" /m ...
0
votes
2answers
90 views

Open CMD Window, Run Batch File From CMD Window, Then Close CMD Window

I have tried to search for an example of how to do this with no success including with autohotkey (I'm very much a noob with AHK). What I am trying to do is open a command window at the explorer ...
1
vote
1answer
1k views

Ctrl-C not killing process in CMD.EXE

I've had this issue for a while even after reinstalling. Issue happens after I reinstall all my programs and not in a fresh Windows install (obviously). Might have to spin up a VM and install each ...
1
vote
0answers
6 views

Run PhantomJS by batch

I got a question regarding creating a batch file that calls the phantomjs application and use two files. Overview of files: phantomjs application in: I:/path/to/my/file/test/phantomjs phantomjs ...
1
vote
1answer
32 views

Running a custom batch file on keyboard shortcut in current directory

I'm developing lot of small .esb services recently and I'm pretty tired of doing Shift+Right click to open cmdin current directory then typing mvn clean install. What is the easiest way to run simple ...
0
votes
0answers
19 views

Syntax error on setting variable in bat file

I'm trying to set up some variables in my batch file to later echo them into files. I get a a syntax error on a line of code almost identical to another line of code that works just fine. ... SET ...
5
votes
4answers
23k views

What font does CMD.exe use by default for output in Windows XP?

This is mostly just curiosity. I'm not sure if it is Courier, Courier New, Lucida Console, or the like.
0
votes
0answers
18 views

What artifacts to acquire when looking for IoC? [migrated]

I want to hunt for the Indicators of Compromise (IoC) in a potentially infected Windows PC. I am writing a batch script that would record the information needed for analysis. It includes the ...
0
votes
0answers
13 views

Set options (buffer, width, height) for windows command prompt globaly

On daily usage I have to use the Windows command prompt many times and many programs I use for work open an command prompt for debug or similar. And every time I have to adjust the settings for every ...
1
vote
2answers
22 views

How to insert a line between two lines which match a certain pattern in Notepad++

This is my text file echo Move date ahead 18 days to 30-09-2016 date 30-09-2016 echo Basic Rule Backups echo Move date ahead 1 day to 1-10-2016 date 1-10-2016 echo date ahead 1 day to 2-10-2016 date ...
0
votes
0answers
9 views

Hoping to open a SQLite Manger in-memory database from the OS X command line

I like Firefox's SQLite Manager plugin because it's easy to show people how to use it. But ideally, I would like to be able to seamlessly move seamlessly between SQLite Manager and the sqlite ...
0
votes
3answers
71 views

cmd prompt turned from window mode to full screen mode

I was working on cmd and certainly I made changes in properties from window mode to full screen. Now every when I open a new window or existing one using win+r [cmd] I am only getting a full screen ...
1
vote
1answer
254 views

How do you swap the primary mouse button via commandline in Windows 8 without a reboot?

I've tried RUNDLL32.EXE USER32.DLL,SwapMouseButton But it doesn't work, even when run as administrator. My goal is to make a .bat file that I can call via my fancy shmancy new mouse I bought that ...
3
votes
6answers
4k views

How to know if file is already finished downloading in linux command line?

If you're downloading a large file in linux via command line, is there a command to know if it's already completed? Currently I am only checking if the file size is the same as the expected file size ...
29
votes
11answers
78k views

How do I create a Windows Batch file that does not show the Command Prompt when executed?

I have installed a ruby gem called Redcar, which is launched from the command line. When it runs, it steals the shell until it terminates, so I have to create a new shell window to continue doing ...
1
vote
2answers
1k views

In Windows 10, is there a command similar to wuapp.exe that will launch the Windows Update GUI?

In previous versions of windows running the command wuapp.exe would launch the Windows Update GUI. I want to be able to launch the Windows Update GUI from within a script/program thus would like to ...
10
votes
4answers
30k views

How to send email with attachment by postfix from command-line?

I've just setup a new Ubuntu 10.04 LTS server on linode for myself. Followed an excellent instruction at: here to finish the installation of some basic stuff including postfix. I am trying to figure ...
1
vote
2answers
981 views

ZSH: Where to place environment variable so that launched application can pick it up?

I need an environment variable KEY="value" made available to a GUI application before starting it. The launcher file (the one that places the icon on the desktop and sidebar in Ubuntu) has a value of ...
23
votes
6answers
10k views

How to pipe text from command line to the clipboard

I'd like to do something like dir *.* > clipboard ie. get to get the standard output of a command line program copied to the clipboard. Can this be done on a standard XP machine without ...
-2
votes
2answers
210 views

How do i hide Windows batch file or hide the password in this text?

I have a code that I save into a text file and label it locker.bat, and it will hide a folder for me. But the problem is I can just right click and click edit and find the password (like down below ...
0
votes
1answer
101 views

How to enable the new console in Windows 10 and what are its defaults?

I expected to get to see the new console earlier in the preview, but I just was greeted by a completely different looking command prompt (not PowerShell) after installing Windows 10 without providing ...
0
votes
1answer
20 views

“Parameter Format Not Correct” when typing file paths

I've been trying to use the command prompt in Windows 7 to delete a stubborn folder (_MEI50722) from my temp folder. It's a highly-suspect folder in my hunt for some malware I'm thinking is hijacking ...
1
vote
4answers
64 views

Shutdown from a bat file *without* close process confirmation in windows 95

Every single guide on the net says to use RUNDLL USER.EXE,ExitWindows which works... from the run command However, when run from a bat file, this command, although it works, requests confirmation to ...
5
votes
3answers
9k views

How do I assign Windows Firewall profiles to network interfaces from the command line?

I would like to assign Windows Firewall's public profile to the public Ethernet interface and the private profile to the private Ethernet interface. I can do this with the GUI via Open Windows ...
0
votes
0answers
21 views

Linux cp command: Auto-rename files, windows-like, FAT32, file name restrictions, ignore symbolic links

Linux cp command: How can I auto-rename all files to conform to windows or FAT32 formatted device file name restrictions, and ignore all symbolic links? I am trying to copy the contents of my dropbox ...
20
votes
10answers
43k views

Can a mapped network drive be reconnected from the command line?

On a daily basis I find myself in the Windows command prompt needing to access a network drive that is mapped but disconnected. I have yet to find a command that will reconnect this drive without ...
3
votes
1answer
23 views

Unix tool to print directory (recursively, with ASCII art)?

Is there a command-line utility that can be run in a directory and output something like this, a pretty-printed directory structure? myproject └─ src ├─ master.scss ├─ my-module.scss └─ ...
2
votes
5answers
10k views

Get the video card model via command line in Windows

I need to get a text output with the video card / GPU model, using any tool existing in all Windows versions from XP onwards (unlikely, I haven't found anything yet) or using any small command line ...
1
vote
1answer
42 views

Customize command prompt globally

I am customizing the Windows 10 Command Prompt using the following method: Windows key => Type cmd => Open cmd => Right click window => Properties The problem is that this customization will not ...
0
votes
2answers
167 views

Command line registry edit

I seem to have a problem with a reg command that I'm trying to add by cmd. Any ideas how I can fix this syntax error, since the command dosent seem wrong... reg add ...
1
vote
1answer
3k views

How to filter running in VLC video stream on commandline?

I easily can broadcast my webcam with VLC using command lines like this (I use Windows): "C:\Program Files (x86)\VideoLAN\VLC\vlc.exe" -vvv -I --dshow-vdev="Logitech QuickCam Express / Go" dshow:// ...
7
votes
3answers
17k views

Telnet won't run from cmd prompt in windows 7

Edit:I am running windows 7, 64 bits. I have Telnet Client installed, and if I go to c:\windows\system32 i do find the file "telnet.exe"; if I click it, telnet runs perfectly. However, if I type ...
-1
votes
1answer
43 views

Need help finishing a batch script to rename files

i am writing a script to rename files based on date. Files are generated every day from a server outputing them like this: fil150807102600000001.txt fil150807102600000002.txt ...
2
votes
0answers
19 views

Is there a way to open non-runnable files directly from CLI

Let's say I have file without execution permission. Now a quick way to open such a file over the CLI is to use xdg-open which uses the system default to open a specific file. Is it now possible to ...
1
vote
1answer
4k views

cmd > attrib - Unable to change attribute

I'm following this tutorial because I'm having problems with the Task Scheduler service: http://technicallyeasy.net/2010/10/how-to-fix-keyset-does-not-exist-for-scheduled-tasks-in-windows/ Basically ...
4
votes
1answer
865 views

How to add current date/time to clink/cmder prompt

I'm a rather happy user of clink via the great cmder package. The only thing I miss is an easy way to set the command promt to display the current date/time (and last exit code, history number, as in ...
0
votes
1answer
74 views

Can I get throughput speed from WinSCP Script?

I see that when I run my script, it outputs the throughput while it is downloading, is there a way to get the total throughput speed of the file after it has been downloaded? My Script: WinSCP.exe ...
1
vote
1answer
25 views

How can I print particular set of pages like 1,3,5,6,9… using lp command

I am trying to print particular set of pages using lp command, but page-ranges option is not getting me the exact pages. lpr -o page-ranges=1,3,5,6,9 filename
0
votes
0answers
138 views

adobe acrobat pro xi save as PDFs optimized using command line?

I have a directory I would like to reduce in size that contains about 4,570 files. I have Adobe Acrobat Pro and the Save As PDF optimized seems like it's doing a good job but obviously I can't do ...
2
votes
1answer
643 views

Command prompt hangs until keypress?

Problem: For some reason once in a while my command prompt would hang until I press a random key, and it would continue operation as if nothing happened. Occurrence: This happens when I am running ...
11
votes
5answers
47k views

Is there a command line tool to put Windows 8 to sleep? [duplicate]

Possible Duplicate: How can I put the computer to sleep from Command Prompt/Run menu in Windows Vista? A few days ago I installed Windows 8. I first found the lack of the "shutdown" menu ...
4
votes
3answers
8k views

Batch delete : Access is denied

As the title suggests, I'm having issues with the del command in a batch file. When it gets to the delete step I get the message "Access is denied". My batch command looks something like this. set ...
1
vote
2answers
44 views

Search for files by creation or modified date using command line

From the command prompt, the script: C:\>dir *.* /s > a.txt will list all files in the TXT file (a.txt) which can then be opened in Notepad or another text editor. You can then search through ...
1
vote
1answer
4k views

Starting VLC via command line to play a video as desktop wallpaper

I'm trying to create a batch script to start a video as a live wallpaper on startup. Right-clicking a playing video and selecting the "Set as wallpaper" option works fine, but attempting to run VLC ...
3
votes
3answers
3k views

Remotely check who is logged in by NETBIOS name

I manage a network and I am trying to figure out who is using a machine with a specific NETBIOS name because it appears to be mislabeled physically on the exterior of the box. I am wondering what, if ...
5
votes
2answers
3k views

Notepad switches

What command line switches exist for Notepad? I found a few: /A <filename> opens file as ANSI /W <filename> opens file as Unicode /P <filename> prints filename Are there others?
1
vote
1answer
294 views

How to list chocolatey packages already installed and newer version available from command line?

I have following packages installed with chocolatey. choco list -localonly >choco list -localonly Chocolatey v0.9.9.2 adobereader 11.0.10 ...
1
vote
0answers
19 views

7zip cli kills itself. Why?

I have 1 TB huge directory on debian/ext3. I need to 7zip it and then transfer it to another computer windows/ntfs. I use the following command, but in the end it says Killed. Any idea whats wrong? ...
0
votes
0answers
23 views

Windows 2012 Server, ONLY command prompt access to administrator

Is there anyway I can create a Administrator in Windows server and give access ONLY to command prompt. Due to some reasons, We want to give access to ONLY to command prompt for admin users in Windows ...