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

How to display the Command prompt during Logon with a batch file

I have a logon script which runs the 'sc config winrm type= own' command. This command changes the registry value at this location: HKLM\SYSTEM\CurrentControlSet\services\WinRM From this Type = ...
1
vote
1answer
14 views

Bash move and rename by parsing the output of find

I have nested directories of pdf files and I would like to extract them to a higher level directory renaming them as follows: My files are something like: ./path1/pathA/fileI.pdf ./path1/pathB/...
0
votes
0answers
9 views

Windows command line - most recently modified files across entire drive [duplicate]

Is there a Windows command line command that can list (say top 100) most recently modified files, searching recursively across the entire drive? I would like to run this from the command prompt that ...
-6
votes
3answers
46 views

Linux: command line access a drive in /media without typing the ridiculously long name?

I'd like to access my secondary HD from command line, however it's named something like /media/user/5ASD5487DEFEAFE415AAEBE7892 Am I really supposed to type this? Wtf were people who make linux ...
0
votes
2answers
20 views

What parameters do I need for the “netsh int ip set dns” Windows command?

This article calls for CMD commands to fix an issue with DNS lookup. All the commands were successful up to these last two: netsh int ip set dns netsh winsock reset When I try the first command, ...
1
vote
2answers
27 views

How to append a registry key value that has spaces in it?

I found the following page (How do I modify the data of an existing registry key value name from cmd?) and it was extermely helpful, but I have a further question. My PATH has a value that includes "...
0
votes
1answer
20 views

Windows 10 Parental Controls

I am trying to limit an account on my computer. It is a admin account (standard account too restrictive the be useful), not not the local admin. I ran: Found a way. Just run Command Prompt as ...
0
votes
1answer
26 views

How to show spaces in CMD?

So I wanted my cmd to select random sentences. set /a rnd=%random%%%5 for /f "tokens=1,2" %%a in (list.txt) do if %rnd%==%%a echo %%b Im using this but inside the list.txt file I have sentences ...
0
votes
0answers
20 views

What is wrong with this Terminal command? (fusermount -u /directory)

What is wrong with this Terminal command? (fusermount -u /directory) I am trying to unmount an encfs folder but I get this error message: entry for /directory../ not found in /etc/mtab Why and how ...
-1
votes
1answer
36 views

Batch to move files from root folder into sub-folders

I have a root folder: C:\Users\username\Desktop\New folder which contains .mp3 files that are named like this: 20162406_3346_234958_97270791720411 20162305_3315_163017_97620734220699 I tried ...
3
votes
3answers
38 views

Windows 7 command to add a leading zero to a batch of filenames

Having trouble getting the correct command syntax. We need to add a leading zero to a batch of files in a directory on a regular basis. I cannot download and install a software item to do so. The ...
0
votes
0answers
7 views

CoreOS HP410 RAID1 device not added (-19)

i face problem 'addition failed -19, device not added' > hpsa 0000:07:00.0: addition failed -19, device not added. > HP P410 controller SSDSmartPathCap- En- Exp=1 This hpssacli sees no ...
0
votes
2answers
29 views

how to use space within pathname for Window's Robocopy

When my path for robocopy has a space, I surround it with " but get the weird error below... My .bat file contains: rem Backup scans ROBOCOPY "C:\Users\doug\Documents\My Scans\" "B:\BACKUP\My Scans\...
0
votes
2answers
61 views

How can I merge video with ffmpeg

How can I get the following merged video files with ffmpeg? Please help me EDIT i Used hstack & vstack the following error 06-24 17:11:39.133 14565-14565/com.parksangha.videorecorder I/...
0
votes
2answers
35 views

CREATE a VPN Connection on Windows Command Line

I need to be able to CREATE a new VPN connection through the command line. I have seen things like rasdial but they are all for connecting to an existing VPN, not creating one, then joining it. The ...
0
votes
0answers
2 views

Specify schema from the Linux CLI when running script with psql

There's a lot of information out already on how to choose the schema and import a script from the psql CLI, but I have a use-case where it would be more advantageous for me to be able to choose the ...
-2
votes
0answers
26 views

How to recursively rename files and folders in a directory using command line

I'm wanting to rename all files and folders in a directory using the command line. basically when i install modules for grunt and then want to remove the site it complains that the length is too long ...
0
votes
0answers
8 views

ecasound downmix from stereo to mono

This should be an easy one, but could find how to do it. I am trying to use ecasound to downmix a stereo audio file onto a mono file, keeping the same sample rate a bit rate. Any clues?
0
votes
1answer
32 views

2 cmd windows flash after boot

For some reasons after the boot 2 cmd windows popped up and closed very quickly. I've managed to take a screenshot As you can see it's prompting for some access denied error regarding OneDrive even ...
-3
votes
1answer
55 views

Windows 7 SYSTEM cmd possibility?

I have an access to system cmd (the one before you login to domain) and a non admin user located on domain. Since SYSTEM user is considered a higher privilege than admin in windows 7, how do I move ...
0
votes
2answers
26 views

GnuWin grep End-of-Line Anchor

I have GnuWin installed on a Windows 7 Enterprise SP1 x64 machine. I am trying to use grep 2.5.3 to match lines containing the word "true". The following is my working use-case: (echo true& ...
0
votes
4answers
3k views

How to disable kill command on linux

I want to disable all kill commands(including root user). I have tried to change permissions but it still can be executed. Is there any way to do that.
0
votes
0answers
19 views

How to resize window size according to a specific process name on console command?

I have an application, which automatically maximizes its window in each launch. Is it there any command like Win32 MoveWindow which can reposition and resize the window, according to a specific ...
0
votes
0answers
8 views

Firewall rules by command in Windows will still work when using 3rd party firewall software?

Firewall rules can be set by command in windows, this way: https://support.microsoft.com/en-us/kb/947709 Would those command still work if the computer has a 3rd party firewall (like Comodo, ...
0
votes
0answers
13 views

Switch between DVORAK and QWERTY via command line in Windows 7/8.1

I am aware of the language bar and its shortcuts to switch between select input methods. But I was wondering if it was possible to do it from the command prompt or perhaps PowerShell, so that it can ...
0
votes
0answers
7 views

Why is no window loading from XQuartz when I try to choose a CRAN mirror to install a package from in R?

I'm trying to install a package in R in the terminal, and when it tells me to select a CRAN mirror, XQuartz opens but no window is created. I have a mac, and I don't know what the problem is.
0
votes
1answer
30 views

How to reset the default Windows command line after installing Cygwin?

I have installed cygwin into my Windows 8.1 and configured the settings in the advanced system (Control Panel > System and Security > System > Advanced system settings > Environment Variables) It has ...
1
vote
4answers
94 views

Is there a way to open windows command CLI from Windows Explorer with Administrator rights?

In windows explorer, you can open a folder and type "cmd" in the address bar. Then a CLI (cmd) is opened with the CWD set to the path that was selected in Windows Explorer. But this is not run as ...
0
votes
2answers
33 views

'C:/Perl64/bin/' is not recognized as an internal or external command, operable program or batch file

I installed active perl on my win2k12 server, I want to run a perl script but it showing this message, 'C:/Perl64/bin/' is not recognized as an internal or external command, operable program or batch ...
0
votes
1answer
15 views

Find the com port of a specific device on command prompt

I know we can find it out from the device Manager under ports. But I want to be able to get this info on command line so I can incorporate it in my python script. I looked at tools like WMI, Devcon. ...
0
votes
0answers
38 views

Automate Exporting of Outlook Calendar to CSV

Is it possible to create a powershell or cmd script that will automatically export Outlook's calendar to a CSV file? Edit: There is a way to do so from within Outlook, but I was wanting an example as ...
0
votes
2answers
33 views

Misleading cmd prompt message

this is not that critical, but since it has been bugging me for 2 years now, I'll ask. I am a programmer, and I'm running a Grails compiler in Windows Command Prompt. When I need to terminate a ...
0
votes
1answer
32 views

Batch file that runs cmd.exe, several commands one after the other

I'd like to make a batch file that: Opens the Command Prompt Mounts an .ISO Then runs: DISM /Online /Cleanup-Image /StartComponentCleanup DISM /Online /Cleanup-Image /AnalyzeComponentStore DISM /...
0
votes
0answers
10 views

Assign administrative access to all folders in a drive via CMD [duplicate]

MY primary hard drive broke down yesterday, which prompted me to have to buy a new HDD. I had a backup drive where I stored all of my files, however, I do not have administrative access to any folder ...
0
votes
0answers
44 views

How can I make a batch file play an MP3 file that starts minimized?

I've tried many things such as: set "track12.mp3" ( echo Set Sound = CreateObject("WMPlayer.OCX.7"^) echo Sound.URL = "%file%" echo Sound.Controls.play echo do while Sound.currentmedia.duration ...
1
vote
1answer
34 views

& was unexpected at this time

I have a batch file that is supposed to set some variables at the beginning. for /f %%A in ('wmic os get osarchitecture ^| find /i "bit"') do set "OSARCH=%%A" for /f "skip=1 tokens=4" %%B in ('wmic ...
0
votes
1answer
12 views

Compress only specific files from a folder while preserving folder structure

Say I have 1 main folder and 10 sub-folders, each with .avi, .html ,.txt and .srt in them. Now I want to preserve the folder structure but I want to only compress the .srt files into .7zip. Is there ...
0
votes
2answers
41 views

How do I make a batch script that toggles my internal Wi-Fi adapter?

It's been a few years since I used a computer that used Windows. I've been using Linux for a while. However, I do remember a few things about writing a batch script. (REM for comments, ECHO to print ...
1
vote
1answer
78 views

Why does this email not arrive?

I have been attempting to send an email from the command line to myself, but the message does not appear in my inbox (or in spam or anywhere else). Below is the command I used, and a copy of the log. ...
0
votes
0answers
6 views

Installing SourceTree from command line

Alright so I want to make a bat script that automates installing and setting up many programs, SourceTree too. Problem is I didn't find any way to set it up and install it from the CLI (using command ...
1
vote
1answer
40 views

Open “Change Your Password” window from command line

Is there a windows command (sent via the command line) that open the "Change Your Password" window as shown below.
0
votes
2answers
58 views

Importing variables in one shell script from another without executing the referred shell script

I have 2 shell scripts, file1.sh and file2.sh file1.sh #!/usr/bin/env bash export var1="/data/share" export var2='password' echo "Hello" file2.sh #!/usr/bin/env bash source file1.sh echo $var1 ...
0
votes
0answers
22 views

Installation of OpenSSH hangs on each windows system

I am sitting here in a big company with terrible restricted infrastructure. When I execute the openssh installer: http://www.mls-software.com/files/setupssh-7.2p2-1-v1.exe as Administrator on a VM ...
0
votes
1answer
17 views

Prevent another command from exiting Windows CLI

I am trying to build a Windows .bat script that includes several commands: ionic state restore ECHO done restoring state However, the "ionic state restore" command appears to be exiting out of my ...
1
vote
0answers
14 views

Matching filenames of different types, mirroring file structure, batch renaming

Ok, I have been searching for a way to do this for sometime. Here we go: I'm a DJ - I use .MP3 for personal listening, .WAV for performances. I get a song in .mp3 format, clean the file name to "...
0
votes
0answers
52 views

cut 10 sec from start and from end of video with ffmpeg

I'm trying to cut 10 sec from the begging and from end of videos. I have 150 short videos in mp4 and I want to do this in batch. I have downloaded ffmpeg (x64) and installed. When I type the command "...
0
votes
0answers
25 views

Prevent programs from opening

I'm writing a batch file that kills background processes, but some processes keep starting back up again. (Using Taskkill) I could loop the taskkill command, but that would use more CPU power than it ...
0
votes
0answers
24 views

How do I get wget to grab the specific directory I want multiple levels down from the home page?

I have a website, lets call it WEB I am trying to get the directory and everything under it from WEB/a/b/ I don't want anything from a/ but I want b/ and whatever else it may link to (the furthest may ...
0
votes
1answer
52 views

How to extract specific data from the table?

Here is the table... Group Name Designation 2 (John) Front End Developer 12 (Jim) Back End Developer 8 (Jill) Full Stack Developer 21 (...
-1
votes
0answers
21 views

how to run putty cmds through batch files?

I am running cli cmds in putty through batch files.It is not taking text files data that has putty cmds.I am connecting through -ssh with a external hardware. putty.exe -ssh root@10.15.0.2 -m "C:\...