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

How to use Task Scheduler to open an elevated Powershell window and run SFC and DISM in Windows 10

I have a scheduled Task where an Admin Command Prompt opens up and runs SFC and DISM. Here are the actions I entered in the "Action" tab of Task Scheduler: Program/script: %windir%\system32\cmd.exe ...
1
vote
0answers
8 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
vote
2answers
72 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 ...
3
votes
1answer
17 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?
0
votes
2answers
14 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?
1
vote
2answers
2k views

Is there a tool to measure file difference percentage?

I am looking to compare two text files. Normally, I can just use diff to compare the two files to see the differences. This is great, except that I am more concerned with the percentage difference of ...
0
votes
1answer
3k views

tracert command is not working but able to access the same site through browsers

tracert [site name] is not working in cmd prompt. But the same site has been working in all of my browsers . Please find below output of command. I need to use this command in my batch file but there ...
3
votes
1answer
7k views

Disable MsMpSvc from command line

Quite simply I'm looking for a way to disable Microsoft's security essentials service from the command line, you used to be able to run the command (as admin) net stop MsMpSvc but that was somehow ...
2
votes
1answer
22 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 ...
29
votes
8answers
65k views
11
votes
8answers
84k views

How To Execute Cmd.exe Silently?

I use below code in Run dialog of Windows XP. cmd /c "C://Program Files/Adobe/Adobe Photoshop CS4/Photoshop.exe" You may replace the program path any program installed on your system. The problem ...
19
votes
13answers
14k views

Google Search from Linux Terminal

I saw a Google console app someone wrote a while back, but it was actually a website emulating a console. What I'm after is a shortcut or linux terminal app which I canuse to quickly search google. ...
1
vote
1answer
22 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 ...
2
votes
1answer
3k views

How to add files to specified folder in archive with 7zip command line

I have folders and files on my disk C:\builds\main.exe D:\components\a\testa.exe D:\components\b\testb.exe D:\components\c\testc.exe D:\dependencies\abc.dll Can I create an archive with 7z command ...
0
votes
0answers
20 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 ...
5
votes
5answers
6k views

How to use Cmd's tab autocomplete effectively?

I've used the Bash shell on Linux for years and I'm very fast with it. By frequently appealing for autocomplete by hitting the tab key, I'm able to write long commands in few keystrokes. Recently at ...
4
votes
3answers
541 views

Merge by date multiple log files that also include un-dated lines (e.g. stack traces)

How can I merge log files, i.e. files that are sorted by time but that also have multi-lines, where only the first line has the time, and the remaining ones have not. log1 01:02:03.6497,2224,0022 ...
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 ...
-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
25 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 ...
1
vote
1answer
40 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 ...
1
vote
1answer
42 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 ...
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?
10
votes
6answers
2k views

Fullscreen Vista's Command Prompt, or Replacement

Opening the command prompt ("cmd") on Vista into full screen causes the application to take up 100% vertical space, but only about 50% horizontal. Is there not a way I can make this fullscreen? If ...
0
votes
1answer
383 views

How do you access a removable device from the command line?

I have a file called list.txt on a USB stick that I want to edit using VI. I can't cd to the usb stick. It appears on the desktop as ESXI. When I run diskutil list it shows up as /dev/disk2 #: ...
16
votes
3answers
20k views

How to enter login information for a website from the linux command line

My internet connection is provided by the university. It is protected to a username/password combination. This means when I start up my computer, I have to start a web browser and open an arbitrary ...
0
votes
1answer
5k views

Why do not all computers show up on net view?

I have a wired LAN network with some networking issues. In dealing with them, I have used net view in Command Prompt to try to see all of the computers on the network. There are four computers on the ...
0
votes
0answers
23 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
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 ...
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 ...
14
votes
3answers
105k views

How to get hard drive serial number from command line?

From the Windows NT-based (Windows XP and 7 specifically) command prompt, how can I get the serial number of a hard drive as a variable? The one I'm looking at is the serial number of the physical ...
3
votes
1answer
3k views

Linux command-line: Quick way to disable internet (keeping LAN)?

Split question: this other one here is for Windows. Linux: Fastest way to disable internet (keeping LAN) from command line? I think the easiest way to deactivate internet (not LAN) in Linux is ...
2
votes
3answers
3k views

Add folder name to beginning of filename

I have a directory structure as below: Folder > SubFolder1 > FileName1.abc > Filename2.abc > ............. > SubFolder2 > FileName11.abc > Filename12.abc ...
0
votes
2answers
3k views

How do I use cat to base64 encode stdin on the fly with openssl?

The following command works for encoding stdin using echo: echo "abc" | openssl enc -base64 This command also works for substituting characters in stdin using cat: cat | sed 's/a/b/g' However, ...
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
8 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? ...
1
vote
2answers
4k views

Looking to create a batch file capable of editing a line (or word) in a text file

I have a text file (...\config.txt) containing 2 lines which looks like: Preamp: -4 dB Include: surround.txt I need to change "surround" to "headphones" in that config file. I really need to make 2 ...
0
votes
0answers
8 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
2k views

Write file permissions for root user

I have a file called myfile that I would like to move using: sudo mv myfile deep-dark-directory/ I need to use sudo to move the file as deep-dark-directory needs root privileges to write and I ...
47
votes
6answers
13k views

Is there a shortcut to mkdir foo and immediately cd into it?

This is something I do frequently $ mkdir foo $ cd foo This works as a single command, but it's more keystrokes and saves no time. $ mkdir foo && cd foo Is there a shortcut for this? ...
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
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 ...
17
votes
9answers
66k views

Get list of installed applications from Windows command line

I once saw a guy run a command and got a list of all installed applications on his computer. How do I do this? I would like a list of my currently installed applications. I believe he used WSH ...
0
votes
2answers
144 views

How To Enable Syntax Highlighting for Nano In Windows?

I am a huge fan of the nano editor, but I can't get the syntax highlighting to work in the windows version. Is it possible to have syntax highlighting in windows?
0
votes
1answer
24 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
24 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 ...
1
vote
1answer
3k views

Run an ftp batch file from within a batch file

I have a scheduled task which executes the commands in my file ftp.txt every day. The file can be seen below, it connects via ftp to my site and puts 3 XML files on to my web server. command: ftp ...
1
vote
1answer
2k views

How do I import registry settings to loaded hive via commandline?

What i want: Load another users registry hive (HKCU aka NTUSER.DAT located in %UserProfile%\UserName on local machine). ^ This works just fine. Inluding the unload command. The problem is with the ...
0
votes
1answer
937 views

How can you access a remote disk/volume from the terminal in OSX?

In Dos, you can access a network path easily by doing \\<server\path very similar to c:\path. Is there a similar way to do this in OSX Mavericks and above?