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
1answer
28 views

7zip batch file does not include extension Why?

I found the below batch file and it works fine but I need the code to add the extension to the final zip file. I am sure this is a simple question but I have tried everything. @echo off cd /d %~dp0 ...
1
vote
1answer
41 views

Reg import without overwrite

I am trying to add keys to the Windows Registry without replacements. I have tried this method to import the registry: Regedit.exe /s "C:\reg\file.reg" But this overwrites the currently existing ...
1
vote
2answers
49 views

Remove directories only command line

How to remove folders and there content and keep files in the current directory ? before parent ├── folder1 ├── folder2 │ ├── file1 │ ├── file2 ├── folder3 ├── file3 ├── file4 └── file5 after: ...
0
votes
0answers
29 views

How to check raid rebuild progress from command line

I have the same problem as described here: How do I check Windows 7 Software RAID Rebuild Progress from the Command Line? But I have no access to power shell, windows is always starting in repair ...
0
votes
0answers
34 views

When does %PATH% get expanded?

Ok so I'm pretty sure this question has been answered somewhere already, I'm just not able to find it within 30minutes. I have set some custom variables (system-wide) and added them to my system ...
1
vote
1answer
104 views

Batch command to open url and fulfill username and password

I'm currently opening a local url from batch command (.bat file) like this: @echo off start /d "C:\Program Files\Internet Explorer" IEXPLORE.EXE http://some_local_address:88 This is working fine. ...
0
votes
0answers
29 views

Why can't I override mkdir with Git for Windows's version?

I've installed Git for Windows with the "overwrite native commands" option checked. I've checked my PATH: C:\Users\Domenic>echo %PATH% C:\Program Files\Git\usr\bin;C:\Program ...
3
votes
1answer
23 views

How to go through a list of installed programs and take out any line with Microsoft-related strings?

This is on Windows 7 using command line and batch files. I was looking to examine my program list and uninstall a good amount of junk and update a good amount of outdated programs. I used a wmic ...
1
vote
2answers
64 views

How do I list files when changing directories using tab completion in Windows?

With UNIX command cd, when you press tab to complete a file/dir name and there are multiple options, it does an ls. How can I get this behavior in command prompt with cd? When you tab complete with ...
0
votes
1answer
59 views

How can I remove similar lines from a text file (image listing) using batch, Jscript (JREPL ?) or vBScript?

The environment is WindowsXP (possibly upgrading to Windows7 soon). I am allowed to run scripts but NOT allowed to install tools. Pure batch has generally failed due to performance issues or ...
0
votes
0answers
35 views

Can't open URL on remote display from cli over SSH

So I'm running an office 'dashboard' on a Raspberry Pi (wheezy) in my office. I've set up the pi to kiosk mode that automatically loads up the scrolling graphs page on boot. All day long it loops a ...
0
votes
0answers
12 views

Issues with setting up appium on OS 10.10

I am using OS 10.10, with appium 1.4.8 to test automate safari on iphone 6 (OS 8.1.3). Command "ios_webkit_debug_proxy -d -c Your Device's UDID:27753" doesn't accept device UDID. Can someone help ...
0
votes
1answer
28 views

Can I look up wikipedia articles on the command line?

I have a list of well-known authors that I'm trying to find data for, specifically their gender and nationality. Is there a way to query this on the command line? Like curl something-magic.com ...
0
votes
1answer
24 views

¿BUG? can not create file with '=' via command line ECHO and COPY CON

WHERE is the documentation that explains the apparently anomalous behaviour of the equal sign below? STEPS TO REPRODUCE (at a command prompt): example with ECHO: H:\BUGS>echo abc > a-b.txt ...
0
votes
1answer
24 views

Not sure what windows Path command is doing?

So I'm not sure exactly what this command is doing - it looks like it was set up edit the path variable. I need to run it for a class. Unfortunately it's not well documented so I want to make sure: ...
0
votes
0answers
45 views

Cannot kill a process in task manager/cmd

One program started to give me problems and I cannot re-started it without restarting my PC. When I go to processes within my Task manager and choose to End process/End process Tree it says "The ...
1
vote
1answer
35 views

Difference between ampersand (&) before or after command arguments

I am a Windows user and I am using Cygwin as my terminal. In order to run notepad++ from terminal I have added this lines to ~/.bash_profile: npp () { /cygdrive/d/Notepad++/notepad++.exe ...
0
votes
0answers
47 views

How to start Minecraft 1.8.8 from the command line?

I'm trying to launch Minecraft 1.8.8 (or higher) from the command line with the Username and the Session ID as parameters. This code doesn't work: java -Xms512m -Xmx1g -Djava.library.path=natives/ ...
0
votes
0answers
24 views

elementary OS + Bash + VIM tab completion broken

When I type :q and press Tab, I get this output: :q^I Instead, it should complete it to: :quit My ~/.vimrc: " An example for a vimrc file. " " Maintainer: Bram Moolenaar <Bram@vim.org> ...
3
votes
0answers
64 views

How can I view command prompt history after the window is closed on Windows 10?

I saw in the morning a command prompt window for just one second. After the command finished the window was closed. I would like to see, what command was run before it closed. Is it possible? I ...
-1
votes
2answers
47 views

How To Run A Complex .bat file

I am running a Minecraft server from Windows, and the .jar that starts the file is located at C:\Users\David\Server\bin\pw\prok\KCauldron\1.7.10-1614.200\KCauldron-1.7.10-1614.200.jar What I do to ...
1
vote
1answer
13 views

Command Prompt random pause

I am developing a site using Node.js and MongoDB, both of which are run from the Windows Command Prompt. Occasionally one or both of the programs freezes (no output to console, not accepting incoming ...
0
votes
0answers
13 views

cmd.exe shell on windows 10 64bit is not showing the unicode properly [duplicate]

when i run the cmd.exe and want to read the file names e.g. ( c:\> dir) it shows me the non ASCII as squares or '?' marks If I copy these letters and paste them in the notepad they show the proper ...
0
votes
1answer
38 views

Apparently inexplicable packet-loss; possibly causing slow Skype connection despite speed-tests showing good up and downstream speeds at both ends

I have done a look Whois lookup on my IP Address which is returning [redacted by instruction]. We're currently connected via Skype so I know transmissions are sending; however, when my friend attempts ...
0
votes
1answer
38 views

Copy file names to clipboard but skip file extensions

I'm using this script in the batch file I created to copy the filenames to clipboard then I can use, @echo off set dirpath=%1 dir %dirpath% /b /n | clip exit I created a shortcut in Windows SendTo ...
3
votes
1answer
57 views

How can I show the file NAME of each running process from the command-line in Windows?

I was wondering how one might get a file's NAME if one has the running process PID. Say if i have 2 notepad.exe text files running consecutively and I run at the command line (code courtesy of: ...
0
votes
0answers
45 views

Access desktop GUI with PsExec through service session

I have an SSH server (Bitvise) running as a service on my Windows 2008 server. After logging in through SSH, I need to run an automation script that interacts with the current logged in user's desktop ...
0
votes
0answers
37 views

How to install fonts on Ubuntu with terminal without moving files

I need to programmatically install fonts. I need to do this without changing the directory the font file is in. I need to do this with Terminal on Ubuntu 14.04. Clicking the install button, installing ...
0
votes
2answers
45 views

Command Prompt change file icon

It is possible to change file associations using the command prompt assoc .c=Cfile ftype Cfile="C:\emacs\bin\emacsclient" -n "%1" Is there a way to change the icon of a file this way also. Or is ...
0
votes
1answer
18 views

Separating greps output blockwise

Let's assume I have a programm that prompts a lot of information. I'm interested in only 3 messages which appear always after each other. I now want to grep these lines and separate them from the next ...
0
votes
2answers
71 views

How to run the “cat” command on the background inside the script

I have a USB LTE modem connected to my Raspberry and I need to read replies sent via serial line, generated by requests sent using the "echo" command. Code: cat /dev/ttyUSB0 > ttyUSB0_logs & ...
0
votes
0answers
42 views

Command from batch file not recognized unless run from Desktop OR as administrator

I have installed UnZip so I can extract files by running batch files, I added the bin folder to both PATH (user variables) and Path (system variables), but I still have the following problem: I ...
0
votes
1answer
29 views

Recording a bash session

For auditing and documentation purposes, I'd like to find a command such that everything that happens in a given bash session, is written to a file. I.e., I'd like to end up with a file that shows ...
0
votes
1answer
49 views

Copy multiple files using Powershell

How can I copy all files of kind:docx from all directories under and including e.g. D:\Doc_Source, to destination E:\Doc_Destination, in batches of e.g. 500, and only when there are none left in ...
2
votes
0answers
41 views

How to get the PID of the windows cmd I'm in

I want to create a unique directory for the time a process runs (to complete the copy process I described in this question). I've tried %random% but it changes too slowly. Waiting is not a viable ...
0
votes
0answers
25 views

pscp not accepting passwords with -pw in batch FOR loop

I am trying to copy a list of files from local (Win7) to remote (Ubuntu14.04) with pscp. The paths to my files are stored in a text file file_ids.txt: T:\file_1.txt T:\file_2.txt T:\file_3.txt The ...
2
votes
3answers
68 views

How to use xargs and sed to pipe results to an array?

I'm pulling JSON from a REST endpoint using curl and then parsing it using the node package json to get at some of the JSON attributes, which I use later in some app configurations. curl -s ...
0
votes
1answer
30 views

How to change file extention of every file in directory unix/linux

I have a directory of 5,000 files. All these files end with an extention of .xml I'd like to change that and have them all end with .txt How can I accomplish this in linux/mac?
0
votes
0answers
49 views

How to unbuffer stdout when piping commands in cmd.exe under Windows?

Given the following: C:\>perl -E " say STDOUT 111; say STDERR 222; say STDOUT 333; " 111 222 333 C:\>perl -E " say STDOUT 111; say STDERR 222; say STDOUT 333; " | cat 222 111 333 The order ...
0
votes
4answers
92 views

Executing a powershell script through batch file

I am trying to execute a powershell script through a batch file, at the moment I am only testing this to get it running so the .ps1 file is simply a hello world script. This ALMOST works fine except ...
3
votes
1answer
48 views

Drive letter of given file in windows batch

I'm writing a script where I will get a file name as a parameter. The file will be absolute. (Ideally the solution would support relative files as well, but I can live with absolute-only). It is ...
-1
votes
2answers
57 views

The command prompt(cmd.exe) closes immediately without leaving enough time for me to even feed a command

I have windows 7 on my computer as well as laptop. On both , I am facing this problem. The command prompt closes immediately within few milliseconds EDIT : - I was able to open the command prompt and ...
2
votes
1answer
45 views

Changing printer settings via command line

I have a Brother PT-9800PCN label printer that uses 6mm to 36mm tapes. Is there a way of changing the default paper size (width, length, orientation) via command line? I'm generating 18x113mm and ...
0
votes
0answers
45 views

How to link a Windows 10 user account to a Microsoft account login from a script?

I am trying to create a batch script to be run after clean installs. I simply want to add an account which uses the new Windows 10 - Microsoft Account login. I know I could use net user [username] ...
1
vote
1answer
49 views

Adding date to the name of multiple files in multiple folders

I have a directory which contains 400+ subfolders. In each of this subfolders a new file appears every day. Each new file has the same name as the file that appeared in the same folder yesterday. Each ...
0
votes
1answer
74 views

How to fix truncated PowerShell output, even when I've specified -width 300

I'm trying to get a list of all the directories and files on an external hard drive, with one fully-qualified directory/file path per line. I'm using PowerShell on Windows 10 to achieve this. This is ...
1
vote
2answers
65 views

Windows utility/tool command line to move clipboard to file

I have seen a similar tool CLIP here Clip command but it works into clipboard not the other direction. I have seen references to "paste" but this doesnt appear to be part of windows. I need to find a ...
1
vote
1answer
33 views

nano in the PATH but no nano access

I've put nano in the Windows PATH. Nano was initially available globally from the Windows command line but has now disappeared. I am loathe to restart the machine at the moment for a number of ...
0
votes
1answer
24 views

How to escape quotes in arg passed to program

So I have following problem. I have batch script script.bat having folowing content cat %* | gawk " { value = "something" } " Which obviously does not work. In bash, I would escape the quotes ...
0
votes
1answer
38 views

How to install greasemonkey user scripts into Firefox by UNIX command line

I want to avoid manually navigating using Firefox browser in order to add a Greasemonkey userscript by navigating to that script on a website. That is very cumbersome if I want to add a bunch of new ...