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

Windows: recursively search for, and execute, batch file from command line

I have a project with nested folders. I want to be able to recursively look up directories until a "build.bat" file is found, and execute it. How can I do this from the command line? (i.e. not a ...
0
votes
0answers
16 views

Create Bootable USB drive with “Press Any Key To Boot” Message

I'm trying to make a usb bootable trough command line. I can do it but there is a problem. I will boot automatically without any prompt! I need to see "Press Any Key To Boot..." first and decide to ...
0
votes
0answers
7 views

Sending data through Telnet established connection on windows command line

I have connected to an outside server using telnet on windows. I have a program written in Ruby running on my local machine whose output needs to be passed as a command in the server running. How do I ...
0
votes
0answers
4 views

%%f in a batch file with Windows 7 Professional 64 bit

I have a line like the following in a several batch files: FOR %%f IN (%*) DO something.exe %%f I've used them for a long time with no problem. I recently had to replace my hard drive and had ...
0
votes
3answers
26 views

How does piping/redirection in Linux work exactly?

I have these three examples of redirection stdin/stdout, only one of them is working the way it is intended to. I would love if someone can explain that to me. The goal is to sort the contents in ...
0
votes
1answer
20 views

Window 7 commands not running

Specifically trying attrib, but I believe all commands in System32 don't work. I had an issue with a path variable, which I believe is fixed now, since C:\Windows\System32 is showing at the end of my ...
0
votes
1answer
16 views

How to stop DIR command counting “Thumbs.db”

We have a process that executes a DIR on multiple folders to check that the correct documents have been generated by another process. In each of the target directories we use this command: dir /A:-D ...
0
votes
2answers
18 views

tar: How to remove files after packing but keep directory

I want tar to pack a complete directory tar cvjf dir.tbz dir But make it delete all files tar cvjf dir.tbz dir --remove-files However this removes ./dir too. So I tried to cd into directory ...
0
votes
0answers
5 views

Listing specific software on group of remote machine

psinfo -s \10.101.4.204 > out.txt above command displays all software installed on 10.101.4.204 I need to find only specific software installed on remote machine
0
votes
1answer
10 views

Why does the command-not-found handler trigger for a command that exists?

I had a package (in this case, Docker) for which the version available in the Ubuntu repos was too old, so I added the Docker repo to my apt sources and installed the package from there. Now, with my ...
-1
votes
0answers
15 views

How do I launch Robocopy with a scheduled batch file and not have the command prompt appear?

I'm using Robocopy to keep two hard drives constantly synced up. I've created a task which runs the following batch file: @echo off robocopy "D:" "L:" /MIR /Z /MOT:1 /MON:1 /XA:H /R:1000000 /W:5 ...
0
votes
1answer
38 views

Delete all files in the folder except one extension(say .idf) using batch file [duplicate]

My current code to delete all files in a folder older then 2 days is : forfiles /p "C:\Test" /s /m *.* /c "cmd /c Del /F /Q @path" /d 2 There is one .idf file among all other files. I want to ...
0
votes
0answers
16 views

How to run specified terminal command from context menu on right clicked folder?

I'm quite happy I found out about Finder > right-click > "New Terminal at Folder". To make it perfect, I'm looking for a way to run a specified command right after. Automator doesn't seem to have such ...
0
votes
1answer
15 views

Run Spyder as a ConEmu tab

Is it possible to run Spyder ([I]Python IDE) inside a ConEmu tab? I use Notepad++ as an external editor in Far Manager & it runs inside one since I've added -new_console to my external editor ...
0
votes
0answers
15 views

In Windows, how to search in a specific Wi-Fi channel?

In Linux, it is possible to "keep searching" in a specific channel (using airodump-ng): airodump-ng -c 5 mon0 if I keep searching in a channel for more than 10 seconds, I notice that some new APs, ...
0
votes
1answer
16 views

Log Commands Run Over SSH on Client Side

I am looking for a way to run SSH (OpenSSH in particular, but not necessarily) and log all commands that I run against the remote, to a file locally. Running each command as an independent ssh ...
0
votes
2answers
17 views

grep and sed with pipe from tail -f appears to be caching

I am trying to get a working system to monitor special logs. I usually just want a very specific pattern which I extract using grep and a pipe from tail -f. I have noticed that grep does not output ...
1
vote
1answer
29 views

Copy Command with “%” in path name

I am trying to write a bat file to copy some files into a new directory (which exists). Here is my command: copy ".\050-9800-JJJ-DSC-BAW-MEE-00019-01*.pdf" "T:\201201.00 TCO - Tengiz, ...
2
votes
0answers
30 views

What are the underlying Windows7 mechanics that are responsible for opening selected files via key 'Enter'?

I need to create a batch script that opens n files, of same type and same suffix, with program p, without creating n instances of p (i. e. use multiple tabs instead of multiple instances). For some ...
0
votes
3answers
42 views

How do you write to a file within the command line?

Specifically mac, but for future reference for those that come across this post, this could be on any OS. So am learning the command line, and one utility (perhaps the only one) which seems to be ...
1
vote
2answers
39 views

Why does the set command display more environment variables than the environment variables gui?

When I run the set command in command prompt the first variable I see is But when I open my Environment Variables GUI I don't see ALLUSERSPROFILE Why is that? There are numerous other ...
0
votes
0answers
22 views

'.' is not recognized as an internal or external command

def evaluate(str, par): return (os.system("./LKH %s" %par) - swap_2opt_solve_str(str)[1])**2 I have an executable lkh file in the directory. However when my program runs this function, it gives the ...
0
votes
0answers
8 views

How to make Chrome when launched by other programs use my command lines i defined?

For security concerns, i've set chrome to launch with this: --cipher-suite-blacklist=0x0005,0x0004,0xc011,0xc007 --ssl-version-min=tls1.2 I use Windows 7, and when i click it from my TaskBar it ...
0
votes
1answer
13 views

How to access Kitematic host computer's command line

I installed Kitematic to my Mac. Kitematic installs a Linux server to VirtualBox to work as a Docker host and has a simple GUI for the basic Docker tasks etc. Now I'm wondering, how to have command ...
2
votes
2answers
27 views

Using notepad++ command line commands

I am trying to use the -l parameter in a notepad++ command line to open a file and have the highlighting be set to highlight for C++. I typed in the command: notepad++ -lC++ file.cpp For some ...
2
votes
3answers
32 views

Parse string using batch script

How can I parse string using batch script? Goal is to save in a array everything under Import: and strip out #head for example --> //MPackages/Project/config/abc.txt and ...
1
vote
1answer
27 views

What is the best policy for running GUI programs from CLI to silence non-error messages?

When, on Linux, running graphical programs (such as Sublime Text for example) from the Terminal, the program runs fine but logs on the console messages that are not exactly failures, nor useful log ...
-1
votes
1answer
28 views

Should I use Git from Windows's command prompt? [on hold]

I am new to Git and learning it these days. I was installing git and it asked me to choose any of three option that whether I wish to use it through gitbash or through cmd and so on. I was confused ...
1
vote
1answer
28 views

How can I edit local Group Policy settings using command line?

I'm attempting to throw together a script for work that allows BitLocker without a compatible TPM. The setting is "Configuration \ Administrative Templates \ Windows Components \ Bit Locker Drive ...
0
votes
1answer
30 views

How to run Windows SDK Command Prompt from command line?

I have instruction to run Select Start --> All Programs --> Microsoft Windows SDK v7.1 and open Windows SDK 7.1 Command Prompt. which is obsolete for Windows 8.1 I have installed something ...
0
votes
1answer
30 views

Windows: How can I use the command line to set registry permissions

OS: Windows 7 Desirable Method: Command Line Other acceptable methods: VBScript How can I use the command line to set registry permissions? I found the REGINI utility, but I'm not having any luck ...
3
votes
2answers
31 views

Command Line Sort Files or Directories by part of their name

How do I sort files or directories by part of their name, specifically the element contained in the parenthesis or separated by delimiter? I am after two separate solutions one for directories with ...
0
votes
1answer
23 views

Python logging class not working when sending stdout to /dev/null

I have a Python 3 script that has logging enabled (for debugging purposes). Whenever I run/execute this script it is working fine and the logfiles are created. I've also created a setup.sh-bash ...
0
votes
1answer
28 views

Registry or command line - Set fixed position of pinned task bar item

I am installing Google Chrome in addition to Internet Explorer 11 on several Windows-7 machines. After the installation, I would like to have Google Chrome set to the same position (#2) in the task ...
2
votes
1answer
27 views

Print line for word found in file in directory

Hello i am using this line find ./ -iname *txt | xargs grep "ququ" -sl>holis.txt To find "ququ" text in a txt file and then write the file name that does contain such word in the txt file, ...
0
votes
0answers
7 views

How to have an executable file run without cmd? [migrated]

Right, so I'm in a little bit of a pickle here. I've been coding for years (non-professionally, only algorithms for competitions, I'm still in high school) and I tried to create my very first actual ...
1
vote
2answers
30 views

Given key-value content, how do I group values by key and sort by value?

I've the following sample input format (file or stdin): key1: 1 key2: 2 key3: 3 key1: 4 key2: 5 key3: 6 Is there any few-liner which can group values based on the key and then sort? Expected ...
-1
votes
1answer
16 views

How do I reenable mkdir and other commands from the nav bar win7

This was in another thread as a comment, but I don't have the rep to post there...Pretty sure it hasn't been posted as a question yet.. I KNOW you USED to be able to do dos commands through the nav ...
0
votes
0answers
5 views

download complete when run from command line but not complete run from launchd

Curious thing. I have a Python script that I've set up through launchd on my Mac to run every 5 minutes. All it does is download a file from a website. My issue/question is that when it's run that ...
0
votes
1answer
17 views

Appending an extension to a new file created with xcopy

I've been having problems with xcopy in the past few days, and I'd like to stop ripping out my hair. In my DOS class, a portion of an assignment requires a file to be copied (with xcopy), and the new ...
1
vote
1answer
42 views

Making Batch to run Windows PowerShell, then have it run some text

I am newer to making batch files. I am trying to run a command that will open windows PowerShell in a specific directory, and then once there to run a command. So far I have the following. ...
0
votes
1answer
23 views

Extending the command-line search path without editing the PATH variable

I want to extend my system search path without appending new directories to %PATH%, I am aware of the App Paths registry entry put that entry is only being accessed when using ShellExecuteEx which the ...
1
vote
1answer
40 views

How to parse a space delimited text file

I have a text file like this: Fam1000: CMIN|CMIN_9-RA CMIN|ABC_7-RA GCLA|EFX5.1 GCUC|GCUC_7-RA Fam1001: GCLA|EFX6.1 GCLA|EFX7.1 Fam1002: GCLA|EFX5.1 GCLA|EFX2.1 GCUC|GCUC_8-RA GCUC|GCUC_8-RA Fam1003: ...
0
votes
1answer
16 views

How can I append text in the middle of a pipeline?

With cat its possible to append a file to the data passing through a pipeline: foo | cat - somefile.txt | bar Is there a command that lets me append text without using an intermediate file? foo | ...
0
votes
0answers
28 views

Ask Firefox to export current Bookmarks to Json in CMD line

I can do this manually in Firefox when the browser is open (holding Alt key to show menu) and navigating to Bookmarks > Show All Bookmarks > Import And Backup > Backup This will generate a ...
2
votes
1answer
29 views

Batch command to archive folders with content using WinRaR

I have lot of folders in the root "C:\Test\Archiv\" (more than 1000). To be more specific, I get one every hour. They are named as following : ay %year% m %month% d %day% h%hour% In each folders are ...
0
votes
1answer
14 views

Is it possible to filter attribute of dos command output?

Below is output of this command netsh interface ipv4 show interface ...
1
vote
0answers
20 views

Can Dropbox under OS X be accessed from a command line?

I want to access Dropbox in my Mac from a remote location with ssh. Is there any way to access Dropbox from the OS X command line?
3
votes
2answers
78 views

How can I make my computer do a repeated series of tasks by a script file on Windows?

When I want to update a web project of mine, I have to do the following tasks all the time: Open cmd.exe. cd into working directory of project. Run localhost command in cmd.exe (~ jekyll s). Launch ...
1
vote
1answer
23 views

Windows 8 Can't find executable in path with “where” command

I added the following line in my System Variable Path "C:\Program Files (x86)\FontForgeBuilds\bin" I can then run fontforge: C:\Windows\system32>fontforge -v Copyright (c) 2000-2014 by George ...