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
7 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
9 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
12 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
23 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
48 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
14 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
22 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
17 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
28 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
11 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
25 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
43 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
35 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
19 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
55 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
29 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
37 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
31 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
33 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
47 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
33 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 ...
0
votes
1answer
36 views
+100

Running script according to Terminal Context

Is is possible to get the current context, or front-most user-facing process, to trigger a script when it changes? For instance, the user starts with the command prompt, then goes into Emacs ...
-1
votes
1answer
11 views

ENV Variable not working - Windows 8

Trying to add an environment variable called phantomjs to my PATH: ECHO %PATH%: ...;C:\foo\phantomjs.exe but when I run where phantomjs, I get INFO: Could not find files for the given ...
1
vote
2answers
49 views

Concatenate multiple tar files in one command

I receive anywhere from 4 to 100 very large tar (~20GB) archive files everyday. I have been concatenating them in the past by looping through each of the archives I see on the file system and doing ...
0
votes
1answer
71 views

DNS problems from command prompt

I can't get a network connection when using the command line for some reason, even though it used to work. I think it's a DNS problem because I can ping 8.8.8.8 but not google-public-dns-a.google.com: ...
0
votes
1answer
18 views

cmd-f freezes the program and has unexpected inputs in mac os X

I have a mac os X. After certain point, cmd-f is taking a very long time in every programs. The program freezes so that I have to eventually force quit the program I tried cmd-f. Another cue is that I ...
0
votes
1answer
20 views

How can I quickly tile these command prompts in windows 2012?

I have many command prompt started in one go by a batch file. (16 altogether) I want to know if there is any easy way to tile these DOS prompt easily via the Windows GUI alone. Preferably into 8 rows ...
1
vote
0answers
31 views

Can't run PowerShell as admin inside of Webstorm

I am trying to figure out how to run PowerShell as an admin embedded in Webstorm. I can run PowerShell as non-admin in Webstorm, but when I try to run PowerShell as admin inside Webstorm I get the ...
1
vote
1answer
15 views

Change user storage folder from /home to somewhere else

I want to let a user take huge space on another drive. Is there a command that I can move the user from /home folder on a mounted drive in /mnt folder? If I do move folder /home/foo to ...
0
votes
1answer
47 views

Changing wireless network password

I have a cisco 1900 series router connected to a modem. I want to change the current wireless network password with which a user can access the network and connect to the internet. Is this supposed to ...
0
votes
2answers
58 views

Confirmation prompt for chmod, chown

I'm just trying to add a confirmation prompt to a few linux commands like chmod and chown. I've tried to google this but I can't find much information on the topic. While searching I found out ...
0
votes
2answers
20 views

Ctrl+c is not working with gedit

When I use gedit command to try edit the a file and then pressing ctrl+c is not terminating the gedit and giving the following log gedit test.sh ...