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
9 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.
1
vote
0answers
27 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
12 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
17 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
0answers
15 views

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 ...
1
vote
2answers
241 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
9 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
21 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
12 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
16 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
24 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
32 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
25 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
1answer
32 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
24 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
38 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
31 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
24 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
23 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
108 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
14 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 ...
1
vote
2answers
48 views

File delete - access is denied even with /F

I'm trying to delete an executable, but it fails with the error Access is denied even adding /F to force it as del /F system.exe. I'm using an elevated Command Prompt. Attempting to delete the file ...
0
votes
1answer
39 views

How to move folders into parent folder on Linux Ubutnu

I have a folder structure with varying depths similar to the following. parent/location/businessname/sublocation/hotelname parent/location/businessname/hotelname All of the lower most folders are ...
0
votes
1answer
77 views

Error handling for automated uploads in Ubuntu?

Every day I need to upload automatically about 100 images with a total size of 4MB. I've used ncfttput and FTP via command line, but sometimes the upload of one image gets stuck with a Connecting to ...
0
votes
1answer
19 views

How to format my pendrive?ade it bootable by power iso

I made my pendrive bootable by poweriso and loaded centos on it. But now my pendrive cant be formatted. First it was showing the in this pc but when i tried to format it there was an error and now i ...
17
votes
3answers
901 views

Why does dd sometimes not wait until data is written?

Sometimes, when I write images to a flash drive, this happens: $ sudo dd if=install57.fs of=/dev/sdc 573440+0 records in 573440+0 records out 293601280 bytes (294 MB) copied, 0.549231 s, 535 MB/s ...
0
votes
0answers
21 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 ...
0
votes
1answer
36 views

appending to file with bash

using: #!/bin/bash echo "Please, enter name" read NAME echo "$NAME," >> MyFile$(date +%m%d%Y) echo "done" it will append the NAME to the file without issue, however, I want it to append the ...
1
vote
2answers
24 views

Is it possible to remove certain files types from certain folders using wild cards. within a command prompt / batch file

I have a files I need to remove within a certain file structure from a certain directory but have multiple directories but within the structure there is a defining folder. e:\archive\ *\3 WIP\ *...\ ...
1
vote
1answer
26 views

Batch script to execute jobs one after the other using a GUID as an input argument

I would like to create a batch file which I can reuse with different GUID input parameters. Normally, I execute a file 4 times, one after the other with varying input parameters like so: ...
0
votes
1answer
39 views

can I paste code after opening notepad from cmd

I have written below given query and opening notepad from cmd, but even I want few things to be pasted when this notepad opens. These things will be in my initial notepad and once I run this bat ...
0
votes
0answers
31 views

Microsoft Diagnostic Tool via C# remotely

I need an efficient way to execute the Microsoft Diagnostic Tool Troubleshooting Pack via C# on a remote machine. The criteria for the Troubleshooter is: Run elevated (admin). Run silent. Run ...
0
votes
1answer
14 views

FOR /F not retrieving all parameters

@echo off setlocal enableextensions setlocal enabledelayedexpansion set frase=Nome da impressora EPSON L110 Series REM A linha abaixo ao inves de resultar em "EPSON L110 Series" REM retorna apenas ...
0
votes
0answers
17 views

Increment file names within Windows command prompt

I'm using a program called PDF2XL CLI by Cogniview to convert a folder full of PDF files to excel files and store them in another location. I have a large batch of them (>200) to process. For ...
1
vote
1answer
39 views

How do I list all installed packages from the command line in bash / osX

What is the -bash command to list all the packages installed locally on my machine? I am using osX. I tried the following so far: dpkg -l - doesn't work. apt --installed list - doesn't work. ...
3
votes
1answer
25 views

Ctrl-C'd an in-place recursive gzip - is this likely to have broken anything?

So, today i was trying to zip up a large folder (that has a large nested set of subfolders), in linux. I did: gzip -r bigfolder bigfolder.gz and after it had been going for a couple of minutes I ...
0
votes
1answer
20 views

While running the PS tools in CMD i get the trust relationship error

I was trying to setup a set of computers to control them through LAN network using PS tools. All my computers are Windows 7 Professional 32bit. I installed the PS tools. I also added the ...
0
votes
1answer
24 views

Cannot view all the output from Windows command

I entered the following in cmd: cd C:/Windows/System32 Then I ran the tree command. For some reason, when I scroll up I cannot view the complete command :( I counted and it only shows the last ...
0
votes
1answer
15 views

Axel-command-line-downloader just show progress?

Is there any way to hide all output from axel command but DO NOT HIDE progress bar. I want to get output like; [ 5%] [0 1 2 3 ] [ 567,5KB/s] [15:59] This ...
2
votes
0answers
11 views

DiskPart status list

I'm writing a simple script that checks the output from diskpart for certain keywords. I am running echo list volume|diskpart and then checking the output for failed or whatever bad status is listed. ...
1
vote
1answer
27 views

Changing default terminal of Codeblocks 13.12 in Windows

I seem to be at a dead end here. I cannot change the terminal for Codeblocks on Windows, although it is a cakewalk in Linux. The option is greyed out. Running as admin doesn't work also. The box ...
0
votes
1answer
13 views

Operating on wildcard input files and saving output as <input> + suffix

I want to batch process my a list of wildcard input files and then output then to the input filename with a suffix appended. I'm hoping to understand this general case. In particular, I'm running ...
0
votes
0answers
29 views

Batch file to rename folders/subfodlers with random names (with option to restore the names from a txt file)

I need a batch file to rename folders/subfodlers with random names, with an option to restore the names from a txt file. Files to be ignored entirely. I found this batch file online, it does this for ...
7
votes
1answer
105 views

What is the Windows equivalent of “wc -l”?

What is the Windows equivalent of the Linux/Unix command wc -l? Basically, how do you count the number of lines output from a command on the Windows command line?
0
votes
0answers
44 views

How to convert HTML into endless one-page PDF via wkhtmltopdf?

Currently when converting the PDF from given URL, like: wkhtmltopdf http://superuser.com/ superuser.pdf where it consist multiple A4 pages (sometimes images are cut in the middle of the page). How ...