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
8 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
28 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
7 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
126 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
33 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
28 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
14 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
19 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
18 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
23 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
24 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
51 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
21 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
23 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
30 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
13 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
26 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
47 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
37 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
20 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
31 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 ...
-1
votes
0answers
9 views

How to record echo mssage displayed on command prompt using C#? [migrated]

I am using below function to call EAR_Encrypt_FTP.bat in C#. Is there any way to trace the echo messages dispayed in cmd.exe while running the batch file?? I need to process echo messages displayed ...
0
votes
1answer
22 views

Windows command prompt abbreviation or shortcut key

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 ...
1
vote
2answers
28 views

How could I search a text file in Win7 and make it display matching lines

I have a large list of names that I have to search through many times a day. Using "find" in Notepad has gotten me by, but is there a way in the command line to display the matching strings by line ...
-2
votes
2answers
38 views

\/?' was unexpected at this time error in batch file

I am trying to integrate a password generator into my batch file so that it generates multiple passwords. Unfortunately it give the following error: \/?' was unexpected at this time. The expected ...
1
vote
1answer
32 views

Maximum setlocal recursion level reached. Can't print more then 30 times?

I want to print a defined number of passwords to a file. The code I found on this site is made for 30 loops as I see and I want to print much more, say, 1000. After a few runs, I get this, error? ...
-1
votes
0answers
11 views

Removing dashes from SSN in a text file [closed]

I need to remove dashes from Social Security numbers in text files. There are hundreds of files in each folder. Can anyone help me with this?
0
votes
1answer
27 views

What does “-install” do in the command prompt?

At my job, the procedure to transform a .bat file into a windows service is described as: -Start the command prompt as an Administrator -Type the following command ActiveTask.bat -install I have ...
0
votes
0answers
52 views

bash script how to change date with hrs format and add missing days with copy of above line [migrated]

I have csv file with data: "smth","txt","33","01-06-2015 00:00" "smth","txt","33","02-06-2015 09:06" "smth","txt","34","03-06-2015 09:54" "smth","txt","34","04-06-2015 00:09" ...
1
vote
1answer
26 views

How to use unlimited list of arguments to a command in bash shell?

I'm running up against the "argument list too long" problem using a command in the shell (bash in my case). Most suggestions for working around this suggest using find or some variation, presuming ...
0
votes
0answers
31 views

Batch - reading a file one character at a time

I am still new to Batch and would like to know if there is a way to read special characters from a batch file one character at a time. So if my file had <<>> or something like that and it ...
-1
votes
0answers
13 views

Splitting large audio file with many different timed outputs (ffmpeg)

I downloaded a full album off of youtube and have all the time codes, but how do I tell ffmpeg to create files based on that info?
0
votes
3answers
31 views

How do I delete a part of a file name for a batch of files in Windows 8.1?

I have lots of files in a folder but they all start with a line of numbers and are separated from the actual file name by a "_" For example: 123123123_filename.txt 456456456_filename2.txt ...
1
vote
1answer
22 views

rar - command line switch for exclude compress but store?

Assuming I have few files like : --- +Royi | +---1.txt +---2.txt +---3.Avi +---4.mp4 +---5.docx looking at : rar a -r -m1 Royi myArchive.rar This will shrink all ...
1
vote
2answers
34 views

How do I interactively type \r\n-terminated query in netcat?

$ nc example.com 80 GET / HTTP/1.1 Host: example.com HTTP/1.1 200 OK ... It works, line separator is just 0A here instead of required 0D0A. How do I type a 0D0A-separated query in netcat? It is ...
1
vote
1answer
50 views

How do I select a random file in a folder?

I am trying to select a random file of a specific type like *.mp4 from a folder (and optionally subfolders) using the Windows command line batch script (no PowerShell) The file full path should be ...
0
votes
3answers
36 views

Count files in a folder and subfolders from the command line

How do I count all files of a given type (eg. *.mp3) in a designated folder (and optionally subfolders) from command line into a environment variable? (no PowerShell please, just batch commands)
-2
votes
1answer
18 views

Any other useful 3rd party command line utilities such has SendEmail.exe? [closed]

I'm looking for other useful tools like SendEmail.exe to use in my batch files. Such as ones that I can call form a batch file that can do something you normally couldn't do from batch. For example, ...
0
votes
1answer
28 views

Add addtional test for files

What would I need to add, to also ignore file names containing AppData with .exe extensions? I am using this in an SetupComplete.cmd for unattended Windows setup, and have AppDataLocal.exe and ...