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
34 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
23 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
37 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
53 views

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
12 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
52 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
73 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
22 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
35 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
17 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
48 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
59 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 ...
0
votes
0answers
19 views

Mogrify combine every two images

I'm not sure how to accomplish what i'm trying to do. I have several folders with around 100 pictures, i have created another modified version of those 100 pictures that are bigger than the ...
1
vote
1answer
19 views

Windows Batch. Append to PATH Environment Variable, when It Contains Spaces

I want to add some binaries to path for my console session and I'm doing it like so if not defined WIXTOOLKIT_IN_PATH ( set WIXTOOLKIT_IN_PATH=1 set MY_PATH=%~dp0..\tools\wix SET ...
1
vote
0answers
43 views

Which SATA port is my disk connected to?

We have a computer with multiple boot drives, all of which contain the same software. The selection of the boot disk is via multi-position switch on the front panel. If disk 1 is selected, the disk ...
10
votes
4answers
821 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
39 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
40 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
35 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
27 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
50 views

Why is pasting in a windows cmd window so slow?

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
16 views

reject pattern and N following lines (or send to a different file)

I have extraneous output in the form of my pattern 28374017032 something random following something else random following the pattern more numbers and I can easily reject the line containing the ...
0
votes
1answer
36 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
39 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
31 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
6 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
26 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
0answers
16 views

Random output from line of python code appearing in Command prompt help menu [migrated]

I was playing with the interactive Python interpreter, and decided to see what the help session said about different modules. When I typed "modules", I was given a list of modules, and a user query ...
0
votes
2answers
59 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
42 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
60 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
25 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
22 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
41 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
28 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
55 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
35 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
34 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
59 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
43 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
54 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
23 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 ...