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)

1
vote
0answers
8 views

Apply share permissions via command line to a folder where a share already exists

If a share exists for a given folder (let's say C:\Test) and I want to amend the sharing permissions without removing the share itself, I would only be able to do this via the Windows GUI. However, ...
-1
votes
1answer
11 views

Command to browse online archives on CLI

Is there a shell command which lets us go through archive like http://archive.apache.org/dist/hadoop/hive/ through CLI ? Some command which lets us perform functions of atleast one of ls and cd, ...
0
votes
0answers
8 views

How to create task for account lock event?

I am able to display a message manually by creating a task on windows lock. But when I use the following command from command prompt it does not work. schtasks /Create /SC ONEVENT /MO ...
1
vote
0answers
20 views

Return 'dir' command results into array/list

I want to know how to return the output of the dir command into an array. I'm using the command like this: dir /s /b *.txt how would I put each result (file name) into an array/list. Thanks
-1
votes
2answers
19 views

linux find command to keep only .h files

I have a source tree have lots files with different file types. The source tree has many sub folders. How do i keep the folder structure of the source tree and delete all files besides .h files?
3
votes
1answer
27 views

How to check IP conflicts in Linux terminal

Is it there any way to check whether my IP gets conflicted with any other IP at my network? I'm using Debian system. What are the effective ways or any command to test the network?
2
votes
1answer
23 views

How to load files according to Created Date in Windows command prompt

In SQL Server using xp_cmdshell, I was able to load files according to Modified date using a command for e.g., z: & forfiles /m *.jpg /s /d 07/16/2015 /c “cmd /c echo @fdate @ftime @path” But I ...
0
votes
0answers
21 views

Getting Error code: -2146368511 [0x80110401] on executing Sample VSS Hardware provider setup

Both the solutions mentioned in "http://stackoverflow.com/questions/18384896/vss-hardware-provider" are not helpful. I executed following instructions to install VssSampleProvider Setup (refered from ...
1
vote
1answer
23 views

Partition directories into subdirectories based on directory name

Background: a client's website stores user profile photos and other attachments into a single flat folder /user/images/*user_id*. They recently hit the directory limit (echo */ | wc echoes 31998, file ...
1
vote
2answers
81 views

How to access efi partition on windows 10?

I am having trouble accessing the EFI partition on windows 10 I tried this method in cmd (I used Administrative privileges ): open cmd as admin... diskpart sel disk 0 sel part 1 (efi part) assign ...
-2
votes
0answers
19 views

How to move files and folders via DOS command [duplicate]

Can anyone suggest how can I achieve the task below, via DOS command or Windows batch file? I want to move all files and folders from source folder to destination folder. e.g. C:\source\file1.txt ...
1
vote
1answer
27 views

Grep matching lines but return matching key IDs in GnuPG output

Having this input: rsa2048/C7927B82 2015-08-30 rsa2048/FB2D99F9 2015-08-30 I want grep to only return the key ID, for example: C7927B92. Using the pattern from Grep characters before and after ...
0
votes
1answer
14 views

How can I make the Dial window close automatically when connection is complete?

:Dial Rasdial Connection_Name Username Password if errorlevel 1 goto Dial The above commands are in a .bat file. How can I make the Dial window close automatically when connection is complete?
0
votes
2answers
46 views

How can I make Rasdial execute again if a connection is not yet available?

The following command (applicable to PPPoE connection) is in a .bat file. Rasdial "connection name" "user name" "password" How can I make it execute again automatically if it fails (i.e. connection ...
0
votes
2answers
33 views

Change windows settings via code

I there any way I can use C++ or batch programming to change settings in a windows computer for example enable/disable Services? Or is there a different programming language for that? Which one is ...
1
vote
1answer
46 views

How can I make two files open automatically in a .bat file?

The following commands are in a .bat file. "C:\My folder\123.txt" "C:\My folder\456.txt" After double-clicking on the .bat file, '123.txt' will be opened but '456.txt' will not until I manually ...
0
votes
0answers
25 views

How to make custom Quick Action in Windows 10

Windows 10 has introduced "Quick Actions" (cf. screenshot). Is there a way to make a custom quick action? Either programmatically or through an other way, it doesn't matter. Ideally I'd like to make ...
0
votes
0answers
29 views

Windows 10 Start menu doesn't open command prompt properly when searching for “cmd”

From the start menu in Windows 10, I have discovered that if I type "cmd" and then use my arrow keys to select "command prompt" and hit enter, two cmd prompts open instead of one - why? Is this unique ...
0
votes
0answers
9 views

Using SoX Bend to manipulate audio pitch

I want to change the frequency of an audio file dynamically. Meaning: part of the file should sound (say) one octave higher and the part lower (preferably using a sine function). How to do it? ...
0
votes
0answers
16 views

How to set output of VLC media player to decklink-Ultrastudio-SDI output? (VLC-Command-line)

I need to play a video file and send video to decklink output as PAL, But I didn't see anything about Decklink-Blackmagic in the vlc-help.txt. How can I send a video to decklink-Ultrastudio-SDI ...
1
vote
1answer
42 views

How to unmount a VHD via command line in Windows 10

I need to unmount a VHD with a batch script in Windows 10. The only solution I found online was directed at Windows 7 and involved Diskpart. Are there any other native Windows command line tools ...
0
votes
0answers
10 views

Amending a custom context menu command for moving files to a custom Dropbox folder

How do I change this context menu command to open a single explorer window even if multiple files have been selected? The code below effectively moves the files selected to a custom folder in ...
0
votes
1answer
25 views

Bash script to create a folder structure

I'm trying to write a Bash script to automate a recurring task, namely the creation of a structure of folders, where some of them should be numbered (To be more specific, this is meant to archive some ...
0
votes
1answer
27 views

CMD Batch file virtually press the enter key

I am working in a manufacturing company. We manufacture PCB for HDD. Each PCB need to be loaded with firmware in manufacturing process. I would open the application the i would browse for the suitable ...
0
votes
0answers
27 views

How to set the command (cmd) prompt colors

Pretty easy to do in Bash, but, for the life of me, I cannot find a way to change the prompt (and only the prompt) colors in Windows 7's cmd window. Note: the solution suggested in the comments seems ...
1
vote
0answers
30 views

Is it Possible to get list of commands i typed in dos prompt?

I would like to search my own CMD history. we could browse within the same session, you can browse it with the up and down arrow keys but what about the history of former CMD sessions? Is there a ...
1
vote
1answer
15 views

Command line for Application alias in Mac OS X

I’m working on an installer for a project and I’ve written a post-install script that runs the executable for my project after it’s done. I want to know the command line argument—or if there is a ...
0
votes
1answer
20 views

Execute command generated by a PHP script

I have PHP file which has logic based on which I run either bin/phpunit -c Application/app --testsuite $TESTSUITE or bin/phpunit -c Application/app --group group1 group2 when Im doing ...
1
vote
1answer
47 views
+100

Save MKV file from VLC with subtitle delay?

I currently have a set of MKV files with subtitles all offset with a delay of one second. I figured out that you can use File -> Convert/Save in VLC to save the video with command line options. The ...
2
votes
2answers
247 views

Command prompt says I have no Microsoft Word files?

I opened a command window and typed dir *.docx at the prompt. The command did not find any files. However, I have 3 Microsoft word files in My Documents. This confuses me. I tried other experiments ...
-1
votes
0answers
13 views

How do i add a video delay in ffmpeg?

I have the standard notepad script and i have been given the task of adding a video delay to our stream i have never used ffmpeg before and i would like to know how to add this delay or what i have to ...
0
votes
0answers
23 views

Put a new string of characters on a new line after each line break after every new string in a text file

I need to put a new string of characters on a new line after each line break after every new string in a text file. It is a large list of website addresses that are only seperated by one space on one ...
0
votes
1answer
26 views

7zip: compress and copy to destination folder

I am trying to do the following: command line compress a file from C:\TestFolder\file.txt (source location) and on the same command or bat file put that compressed file in (a destination folder) ...
1
vote
0answers
14 views

How to access KDE's camera:/ from terminal?

KDE's device notifier detects my GoPro Hero camera correctly and allows me to access its contents in dolphin through the URI camera:/ Is there a way to access the camera also from the command line? ...
0
votes
1answer
20 views

Pipe string to a command with multiple read prompts

How can I pipe a string to a command with multiple read prompts in OS X? I am running a command for a Parallels VM to enable a password which prompts for multiple values (without running a secondary ...
0
votes
0answers
26 views

Is there a way to download wikipedia pages programmatically?

I'd like to download some Wikipedia pages as part of a program. Currently I would go to the pages on a browser, click "Download as PDF" manually, wait for it to render, then download it, then rename ...
1
vote
2answers
34 views

Opaque text but transparent background for Powershell/Command Prompt? [duplicate]

I would like to just have the text and header bar visible while I'm using the command line. I've tried Console, but like Powershell, adjusting transparency settings affects the text as well. Is there ...
1
vote
1answer
30 views

Writing file with batch but text is disappearing

I have a problem with writing a file with a batch file. It seems that one character is triggering the echo end like this one: the code is a downloader. C:\ProgramData\Tempfolder\test.vbs ECHO if ...
4
votes
2answers
38 views

PuTTY only executing the first command in a script specified by -m

I try to do a automatic backup of our Avocent Console server. Content of backup.cmd: putty.exe -ssh root@acs01.NULL.local -pw secretpw -m acs01.txt Content of acs01.txt: cli cd system_tools/ ...
0
votes
1answer
28 views

Create a list of files inside a folder in Excel

I have a folder with some files inside. I'd like to use a command from windows command prompt which shall list all the files within my folder in an Excel spreadsheet.
0
votes
2answers
27 views

How do you see all files on Windows 7

I have several ghost and other unneeded files of the type C:\ xxx. I can see them when I click on "Computer". But when I try to remove them by using Command Prompt it automatically starts at ...
-1
votes
0answers
48 views

Access denied:Deleting a file from cmd

I'm trying to delete a file from network drive using user "Test". The user "Test" has Full Control on the folder and belongs to the Administrators group. I can manually delete the file but when I ...
-4
votes
0answers
33 views

Command line for centos' user password

I need help for password administration on Centos. Well, I have CentOS' users and I want them for setting up their own passwords, so I want a command executed from root to allow them to set up their ...
0
votes
0answers
35 views

Dos assigning Drive letter

I have come across one DOS desktop in which I am not able to connect/identify USB Port even after inserting USB Dongle. Please tell me how to assign drive letter for the USB port in MS Dos
1
vote
1answer
26 views

Redirect does not output anything into the files

I have the following batch script which executes several processes and is supposed to redirect their outputs into some log files, howeever when the processes finish running the files are empty even ...
0
votes
0answers
6 views

How to diagnose command-line hang if looking at it with Process Explorer makes the hang stop?

It's a command-line hang, so you'd think it would be easy to diagnose. But I just can't figure out why 1 out of 25 times, certain scripts of mine hang. I'm sure it's something I've done. Typically, ...
1
vote
0answers
27 views

Windows internet speed test

I am trying to check the internet speed from my windows 8 laptop over a period of say 24 hours. So I would like to repeatedly run a command to test the speed. Various websites (e.g. ...
2
votes
1answer
176 views

Run Command Prompt as Administrator by Default on Windows 10

So after the recent upgrade to Windows 10, the good ol' AppCompatFlags method no longer works. Which is something like this - Windows Registry Editor Version 5.00 ...
0
votes
0answers
15 views

Running Javascript Program from Command line without typing `node` first

I have the following program in the current directory. Commander is installed locally. Node executable is in my PATH. PATHEXT variable includes .js. FTYPE and ASSOC are configured correctly to run ...
2
votes
1answer
42 views

Output each commands results into a separate file

I have got the following script which executes a separate step one after the other: @echo off set /p guid=Please enter GUID: start /wait Drop\Debug\Ylp.Web.CmsImportWebJob.exe /test map %guid% start ...