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)

10
votes
4answers
844 views

Pass text to program expecting a file

Related to a question I asked on Stack Overflow: Passing multiple lines of code to wsadmin.sh?. I have, as a string, a few lines of input that I need to feed into a command. The command, however, ...
0
votes
1answer
42 views

PowerShell - Quasi equivalent strings are infact not equivalent?

I have a string which I'm passing into my script as an argument. For the purpose of displaying the code on here however, I have specified these manually in the code. These variables are: ...
0
votes
1answer
60 views

how to stop command execution in command prompt windows 10

in recent release of windows 10 command prompt microsoft have placed ctrl c and ctrlv ,in older versions we used to stop command prompt execution by pressing ctrlc In recent release of windows 10 ...
0
votes
1answer
65 views

How to run R from the windows command prompt?

I want to run R from the command prompt in Windows 8.1. I am logged in as an administrator, I started cmd.exe with the "Run as administrator" option, the path to the folder containing R.exe has been ...
1
vote
2answers
35 views

Powershell: Dir /s - Remove Repeated Folders

Situation: In Powershell, I'm using: $folders = dir -s C:\Users\Name\Downloads\*.ttf | Select Directory foreach ($folder in $folders) { echo $folder } To display folders whose contents ...
1
vote
0answers
57 views

Why is pasting in a windows cmd window so slow? [closed]

I can paste a novel into shell session on a remote computer near instantly, but when working local on my Windows 8 PC, pasting into the cmd window appears to paint each character individually and for ...
0
votes
1answer
48 views

How to use PSExec (or similar) in a cmd script to kill a task

Courtesy of some buggy third party software, we regularly (and frustratingly) have a task that sits in Task Manager and cannot be killed - all attempts to do so result in "Access denied". This ...
0
votes
1answer
52 views

Spawn command line prompt to a remote Windows machine

Is it possible in Win7, Win8.1, Server 2K8 and 2012 to "shadow" or rather spawn a console and 'impersonate' or 'masquerade' a user command line prompt ? I am domain admin and I would like to interact ...
0
votes
0answers
36 views

rdiff-backup operation not permitted

Objective I'm trying to execute the following command in my Python script: rdiff-backup --terminal-verbosity=5 --remote-schema "ssh %s -p1019 -i C:/Users/Adam/.ssh/private-passphrase ...
0
votes
1answer
7 views

Can you create mulitple groups at once in bash?

I'm trying to create multiple groups at once and give each one an ID. Can you do this without continually using the groupadd command? groupadd group1 groupadd group2 Thanks.
1
vote
2answers
38 views

Send Ctrl-C to piped command

Using a command like: tcpdump -w - | bzip2 -c > capture.cap.bz2 If I press Ctrl-C to stop the tcpdump command, I end up with a broken bzip2 archive (I'm assuming because I've terminated both ...
0
votes
2answers
103 views

Using 'send to…' upload file to FTP and copy it's URL to clipboard

I hate odd, almost useless apps on my PC. I don't want them to hang in there running and waiting for me use it once in a week. So I thought the instant fileshare could be done using almost only ...
0
votes
1answer
69 views

Is it possible to make a VBScript which executes a batch script within itself?

I know it sounds strange, but my idea is creating a single text file which contains a VBScript and a Batch Script within it, i.e. if I run that script as a VBScript, it calls itself as a Batch script, ...
2
votes
2answers
71 views

Get *hostname* of a RDP client computer

This question: Get hostname of a RDP client computer, asked how an RDP server can identify a client (i.e., the host that is being used to login remotely), and got this answer: netstat -na | find ...
0
votes
0answers
47 views

`pip: command not found` and other issues

I have several virtualenvs on my computer and I use them extensively. I create new ones and modify them all the time. However, when I tried to create a new one today, I found out that none of the ...
0
votes
0answers
25 views

How to download file from a local server cache windows server

How could I download a files from a local server cache address path I was given? Not sure how to do this on windows server: Link to local sever cache: \\sdgd07mjbvbw2\Users\BuildUser\Downloads Here ...
0
votes
2answers
49 views

Remove empty directories

I found this command on this site for recursively removing empty directories, but was unable to comment to ask this question since I just registered and have zero rep....... for /f "delims=" %d in ...
0
votes
1answer
34 views

Parse and Switch Elements of Folder Names using Powershell

I have been trying to write a powershell script (my first) to parse out only the folders within a directory select only those folders matching a specific naming convention ('SEASON YEAR') switch the ...
1
vote
3answers
80 views

How to use grep or awk to save every line from text file as new file?

I am a scripting beginner. What i am trying to do. I have a text file that looks like this (example): hello hi there apple I am trying to make a script that saves every line as a separate new file ...
0
votes
0answers
41 views

Manipulating excel file from command line

I have written a Python script that generates an excel report file with some data. Then this file is automatically sent to a list of recipients. What I'd like to do though is to make the excel report ...
1
vote
0answers
46 views

How do I use the Python commands in PowerShell?

I work in a GIS department and I'm trying to learn Python to automate something boring. I started using "Learn Python the Hard Way", but I can't figure out how to run Python scripts from PowerShell. I ...
0
votes
1answer
79 views

Batch converting files using ffmpeg

Can anyone tell me where I'm going wrong doing this. The idea is to find and convert all files in a directory to m4v's. Regardless of the extension. Then once it has been converted, to generate a ...
0
votes
1answer
53 views

delete items from path environment variable

I have a question regarding editing the path environment variable on my windows 7 Machine. I have been editing my path using SystemPropertiesAdvanced.exe's dialog window, but the changes i make are ...
0
votes
2answers
62 views

How can a process run from a command line without specifying a drive letter before the path?

The Synaptics Touchpad Helper runs at user logon as a scheduled task. The command line configured to run the executable is... "\Program Files\Synaptics\SynTP\SynTPEnh.exe" As you may assume, it is ...
1
vote
1answer
25 views

Custom command not working

In my Ubuntu I tried to create a custom command: I added a bash script named ns3 in /usr/bin #!/bin/bash cd ns3/ns3-allinone-3.19/ns-3.19 I made it executable chmod +x ns3 Still it doesn't ...
0
votes
7answers
152 views

Is it possible to always run cmd from Windows' Run panel as admin?

I'd like to be able to start Command Prompt as admin either as default or as an easy routine. I know about Ctrl+Shift+Enter in the search list or adding a Registry Entry for a new Context Menu, but I ...
1
vote
2answers
49 views

7z command line = 7z extract to

I have a dmg "winzipmacedition40.dmg" I'm trying to extract dmg from windows 7 I want to know how to "extract to" method via command line Result 1 Using Right Click file > 7z > Extract to ...
0
votes
0answers
108 views

Keep receiving BCDEdit “The system cannot find file specified” errors

I'm currently having a huge problem where I cannot play CS:GO due to an issue with enabling/disabling DEP, Kernel Debugging and Kernal Integrity through BCDEdit in Command Prompt. According to THIS ...
0
votes
0answers
97 views

I can't get Windows 8.1 to execute batch files through the interface

(moved from stackoverflow where I mistakenly placed it in the wrong spot) Windows 8 has decided that a .bat file has no association. I can't choose to associate it with cmd.exe from the open file ...
1
vote
2answers
33 views

How to get `make` to recognize alias command

I am installing MOOG, and when I make -f Makefile.maclap I get the error $ make -f Makefile.maclap g77 -w -c -o Abfind.o Abfind.f make: g77: No such file or directory make: *** [Abfind.o] Error 1 ...
0
votes
0answers
17 views

“fortune” command no output when running as daemon

I execute the fortune command from a daemon, but I don't get any output. If I run the bash-file from command-line I get the output without problems. echo "$(fortune)" The daemon is the Telegram-CLI ...
2
votes
1answer
57 views

How to rename an executable from its details

I have loads of .exe files that got renamed to file1.exe, file2.exe, etc. When you look at a file's Details under Properties (in Windows Explorer), it has the original file name under "Product Name". ...
0
votes
2answers
87 views

Shell script to pass multiple arguments with options in command line

I have the script, I need to execute this script like this: ./create_endpoint.sh --controller-ip 10.20.20.1 --controller-name User1. But its executing like this: ./create_endpoint.sh 10.20.20.1 ...
0
votes
1answer
98 views

Trouble deleting registry using CMD

I am trying to delete following registry via CMD but getting "ACCESS DENIED" HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Control\Pastel The above registry cannot be deleted manually as it gives error ...
1
vote
0answers
33 views

How to extract the Subject Alternative Name from a CSR by just using the openssl command?

I would need to extract the Subject Alternative Name from a CSR. Is there any way I can extract this other than using the "-text" in openssl req -in test.csr -text -noout? (Maybe similar with the ...
0
votes
0answers
27 views

windows command line find file, untar

I want to untar a file I just downloaded in windows 7. I am in the directory, but there are too many files and the name is too long to simply type out. How would I do this in the command line? If this ...
2
votes
1answer
29 views

Command on new line

I have the following command: cd ../../game ^ electron src that I need to run. Which basically means step up two folders from our current directory then into the game folder and call electron on the ...
1
vote
2answers
118 views

How to check version of IE on Windows 7 with PowerShell?

I want to check which version of IE I have on my Windows 7 machine. I would like to do this with the command line, either through Command Prompt or PowerShell. Thank you!
0
votes
1answer
61 views

Issue when launching url from command line in IE8

If I paste the following url directly into the address bar of internet explorer http://maps.google.com/maps?layer=c&cbll=56.18231,10.20435&cbp=12,70 the related google maps streetview is ...
1
vote
2answers
31 views

Run multiple commands automatically after opening command prompt [duplicate]

So I'm really new to this code thing. And i would like to know, how to automatically run commands when command prompt is open. So, what i usually do to run my application is that i open command ...
1
vote
1answer
50 views

Installing the wkhtmltopdf command line

I'd like to make a pdf out of an webpage. For this purpose, I am trying to install the command line wkhtmltopdf on my Mac. I tried brew install wkhtmltopdf and got Error: No available formula for ...
0
votes
1answer
24 views

When vim-ing a folder, how do I make a new file?

I looked around a bit and couldn't find anything on this, but here's the scenario: I vim a folder, to see what's up. I navigate to another folder via j/k/arrow keys/whatever and hit enter I realize ...
0
votes
0answers
23 views

Proftpd File Permissions Issue

I'm using proftpd on a Ubuntu server and the FTP is working on a directory with 777 permissions. Files are uploaded as ftpuser:ftpgroup which is correct. However, on a directory owned by someone else ...
0
votes
1answer
23 views

Variable as argument to Wine

The variable $INPUT_FILES in Case 1 has the same content (string) that is used in Case 2. Why in Case 1 I have problems with spaces in the name "2015 01 09.1.txt", but in Case 2 not? How can I fix ...
1
vote
2answers
81 views

Checking UAC Elevation of Running Process from Command Prompt

How can I use the command prompt (cmd.exe) to check if a process is running with UAC elevation / elevated privileges? If I were to use the Task Manager (taskmgr.exe), I could check by adding the "UAC ...
0
votes
1answer
48 views

how to concatenate files within each subdirectory using windows command prompt

I'm a newbie, a grad student, and frustrated!! I have tons of directories containing subdirectories and each subdirectory contains a bunch of .irf files (these are a DVR-type file). I am trying to ...
0
votes
0answers
15 views

Making the windows command promt title display the current folder? [duplicate]

Is it possible to have the Windows Commmand Prompt title display something other than C:\Windows\system32\cmd.exe ?
1
vote
2answers
80 views

Running a Python script from the “Run” prompt

I thought this would be easy, but I've been struggling for a while. I have a Python script on my Windows machine called "myscript.py". I have it in a folder that's on my PATH, and I've added the ...
1
vote
0answers
36 views

Get system volume from command prompt

I'm using NirCmd http://www.nirsoft.net/utils/nircmd.html utility to set the volume via the command prompt for a game but need to know what the current volume is upon the app start up. I found this ...
0
votes
0answers
63 views

Upload data in .txt file to SQL database through ftp in command line

I have a table in .txt file with header, and an empty table Final_Beta_Table with header only in SQL database. It's a NETEZZA database and there are many other tables in it. How can I upload the .txt ...