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
2answers
40 views

windows scheduler that runs every x minutes daily in the command line

Is there a way to schedule a task (.bat) through the command line that runs every 5 minutes daily? I also want it to run even if the user isn't logged on. What is the exact command line syntax?
0
votes
1answer
36 views

Does command line pick up a proxy server from Internet properties toolbox?

Recently my company proxy server, through which all the internet traffic is directed, was disrupted and internet services were down. Surprisingly though (for me), I was still able to ping google from ...
0
votes
1answer
23 views

What is the best way to auto run scripts and/services on Raspberry Pi (raspbian)?

I'm working on creating a headless media server out of my Raspberry Pi and there's a lot of junk that has to run on boot to make it useful. My question is what's the best way to run scripts in this ...
0
votes
1answer
20 views

Use existing explorer.exe instance when calling from batch file - Windows 7

In my batch file, I am calling a new Windows file explorer at a specific location by using the following: echo off explorer.exe "C:/Users" The user then navigates to other folders as needed. Then, ...
0
votes
2answers
50 views

Using cmd to edit reg keys?

I need to edit 2 registry keys in Windows 8.1 but make it in a way to be able to use them in a batch file to be able to use them on more than 1 PC. In the batch file I will have more reg key's that ...
0
votes
0answers
6 views

Run ATPDraw to perform simulation to all *.acp files in a folder

I would like to simulate *.acp files on ATPDraw, but instead of opening one, pressing F2, clisong it, opening another... I would like to use some batch way, perhaps through commandline. I tried to ...
0
votes
0answers
14 views

Send and receive file in curl

I have a remote server running and i want to send a text file to that server. I have this script to upload the file: curl -F 'txtfile=@sometxtfile.txt''http://www.example.com/transfers' My ...
0
votes
0answers
18 views

Batch conditions and variable

I have a question about variable and batch windows. The main goal is : I have files in directory (pattern 0? with ? a number between 0 and 9). First I create a %%nf.bat (filename of each files) ...
0
votes
1answer
18 views

Variable and Conditions with Batch Windows

I would like to make a batch. The goal is simple : For all files with DSW xtension If my filename contains VU1 so variable1=2 and variable2=2 If my filename contains VU2 so variable1=20 and ...
1
vote
1answer
33 views

Preventing my pc from being shut down remotely

In my college, we use Microsoft Server 2008, and each student has their own account. In my class, students discovered that they can remotely shut down each other's PCs using cmd (the fact that we ...
0
votes
2answers
36 views

Using piped output as filename in cmd

I want to uses pipes to redirect the output of one program to another like: type file.txt file2.txt | sort | someprog Now I've the problem that someprog isn't able to use the piped STDOUT and wants ...
0
votes
0answers
25 views

Mounting EBS volume on Ubuntu 12.04 taking long time

I have written one shell script which Checks if volume has file system on it or not Formats the volume with ext4 if no file system present Creates mount point directory Tries to mount volume using ...
0
votes
1answer
25 views

Batch file that sets a variable equal to the drive letter of first removable disk found

I want to write a batch file such that when I run it in cmd, it sets a new variable equal to the drive letter of my usb flash drive (if, of course, it's the only storage device of that type). Assume ...
-2
votes
1answer
23 views

DOS command-line query returns too many results

Can anyone tell me why dir *.asp returns all .asp files but also all .aspx files? It seems dir ignores extensions longer than three. This is really bugging.
-1
votes
1answer
28 views

7Zip Zipping up directories

I want to use 7 zip to compress and archive folders but I want it to exclude existing .7z files if they exist and not duplicate them with a .7z.7z ext I found this but it duplicates the already zipped ...
0
votes
1answer
18 views

Looking for bash command to recursively find and copy only files from one dir hierarchy to another

Is it possible to run a command using bash that will replace all the files in one directory structure with all the files in another. For example, if I have these two directory structures: dest dest/A ...
0
votes
1answer
23 views

Long commands typed in bash overwrite the same line

Since We updated Bash to 4.3.27 when I type a long command, if it reach the end of terminal window, instead of continuing in a new line, it overwrites over the same line using a ">" at the beginning ...
0
votes
0answers
27 views

Syntactic differences in cp -r and how to overcome them [migrated]

Let's say we are in a blank directory. Then, the following commands: mkdir dir1 cp -r dir1 dir2 Yield two (blank) directories, dir1 and dir2, where dir2 has been created as a copy of dir1. ...
0
votes
2answers
26 views

Why redirecting FINDSTR output produce UNIX line ending?

When I issue this command: FINDSTR /I /N "<sdk:extra>" addon.xml output is: 973: <sdk:extra> 995: <sdk:extra> 1017: <sdk:extra> 1036: <sdk:extra> 1057: ...
0
votes
1answer
19 views

Storing info from wmic as variables in command prompt (Windows 7)

I'm trying to write a batch file that copies a folder from my flash drive to the desktop. I want the batch file to achieve this on any pc in my college. the command wmic logicaldisk get ...
8
votes
2answers
572 views

Open the folder associated with the Command Prompt's working directory? [duplicate]

I am wondering if there is a command one could type into The Windows Command Prompt which would cause Windows Explorer to open a folder set at the Command Prompt's current working directory? (This ...
1
vote
0answers
18 views

Windows 7 text input/graphics repainting in random areas

In the past few months I've been encountering this issue where the line of text being typed in the command prompt window reappears in a random place on screen and paints over whatever was previously ...
1
vote
1answer
37 views

WinRar - Custom shell commands

i'm trying to create custom commands on the context menu in windows. i found this great registry hack here: https://superuser.com/a/376879/395548 this is the code made to work for me: Windows ...
0
votes
0answers
22 views

Silent uninstall with the Flash Player Uninstaller

I am using this tool to uninstall broken Flash installations on Windows 7. I would like to known how it can be run silently from command line. I was able to find to some answers to this so I known ...
0
votes
2answers
38 views

How can I get my prompt back after starting Emacs from the command line?

After I type emacs somefile at the command prompt and hit Enter, I don't get my prompt back until after Emacs closes. How can I run Emacs so that I get the prompt back immediately after Emacs starts? ...
1
vote
1answer
27 views

In bash: processing every command line without using the debug trap?

I have a complicated mechanism built into my bash environment that requires the execution of a couple scripts when the prompt is generated, but also when the user hits enter to begin processing a ...
0
votes
1answer
33 views

Notepad++ search and replace with current line number

I am using notepad++ and am using it to create 200 copy commands. Each line starts copy \\server\\folder\a.pdf 1.pdf I want the 1.pdf to be a different file name for each line so I was thinking of ...
0
votes
2answers
44 views

accessing a computer through the command prompt [duplicate]

I'm trying to access files on another machine on the same network, I know you can do it with Windows Explorer by typing \computername\c$ etc. but when I do it in the command prompt it shows an error ...
0
votes
0answers
16 views

Control vmware workstation network “bandwidth” settings from command line

Is there a way I can use the command line to adjust the network bandwidth settings of a running VMware Workstation instance?
0
votes
1answer
25 views

Change the default command line startup location in Windows 8

I want to be able to open my command prompt from my desktop, for example, and have the default starting location be somewhere else, such as C:\ My question is how to I do this in windows 8?
0
votes
0answers
8 views

Set screensaver lock delay from registry or command line [duplicate]

I have a few Windows 7 machines in my network, and I don't have GPO or an AD. I do however have a tool that can push commands or registry changes. Is there a command string or a registry tweak that I ...
0
votes
0answers
8 views

Can I make vlc expand all given directories in its playlist on startup?

I have a script which runs a command of the form vlc music/foo/ music/bar/ It starts playing immediately on shuffle but only one of the directories foo/ or bar/ will be expanded in the playlist, ...
0
votes
1answer
25 views

I've placed a binary in my $PATH, but when I run it from powershell it gets its own directory instead of the current directory

I’ve installed Hugo (a static website generator) on my Windows 7 system by placing it in a directory in my $PATH. When I try to run it, regardless of the directory I’m in, it's run in its own ...
1
vote
1answer
28 views

Resource and Performance Monitor error

When I try to issue this rather simple command in cmd.exe, I run into this strange error. INPUT: C:\Windows\system32>perfmon.exe /report OUTPUT: An error occured while attempting to generate the ...
1
vote
1answer
14 views

Start zsh with a prompt specified on the command line

Is it possible to start an interactive zsh session with a specific prompt without modifying a configuration file? I tried things like that: zsh -c 'autoload -U prompt; prompt adam1; zsh -i' But ...
3
votes
0answers
20 views

Does pbpaste empty the clipboard under some circumstances?

The manual for pbcopy and pbpaste reads as follows: pbpaste removes the data from the pasteboard and writes it to the standard output. The wording read odd as remove for me carries the ...
0
votes
1answer
11 views

When I delete a file/folder on Windows in a Samba share - what unix commands are being issued?

Let's say I have a Samba share and a Windows client deletes a folder in it. Is it the same internally as rm -rf foldername? Is there any cleanup needed? Also is there a difference for the Samba share ...
0
votes
0answers
12 views

How to watch text file changes over time?

I am looking for a tool that allows me to watch text file changes in the spirit of tail -f or the less [F] feature but not only for data appended to the file but for overall changes. My dream tool ...
0
votes
1answer
28 views

How to start a program and close it right after it's launched with BAT/CMD file?

There are two program A and B. What I want to do is: 1,Launch program A; 2,Close program A; 3,Launch program B; 4,Close program B; How can I write the bat file? My previous work; A.exe TSKILL A ...
0
votes
2answers
35 views

Echo/Pipe command output to Serial line

I have a serial device running on 115200 baud at /dev/ttyUSB0. I need to Pipe the output of a command to it. I Need somthing like: command-that-gives-stdout | command-that-puts-stdin-to-serial --baud ...
0
votes
0answers
17 views

reg export excluding specific by name

i must export a set of registry keys only if the keyname not include a specific word ex: reg export "HKLM\SYSTEM\CurrentControlSet\Control\Print\Monitors\Standard TCP/IP Port\Ports" if the name of ...
0
votes
1answer
24 views

GIT Bash commands produce no output in ConEmu

I've tried this with ConEmuPack.141123 and ConEmuPack.140602: As you can see, error messages print fine (like dir: command not found), but output from bash commands don't show up. Does anyone know ...
0
votes
2answers
50 views

Identify user profile loaded into HKCU from remote command prompt

I need to modify a setting in the currently logged-on user's HKCU branch of the Registry on a remote Windows 7 Pro PC. I cannot connect using the Remote Registry functionality in regedit.exe but I do ...
0
votes
0answers
16 views

LZA Compressor Directory

I am trying to use LZA to compress my directories (No sub folders) Whenever I use it however it automatically creates the archive within an additional folder! Example: I am using a folder called ...
0
votes
1answer
39 views

Ubuntu nested bash shell

Thanks for any help. I'm helping configure a machine to log keystrokes using /usr/bin/script function. For each session, a log file is created that includes the POSIX time. $PS1 is changed to reflect ...
0
votes
0answers
34 views

Windows 7 folder opens automatically in command prompt

My girlfriend has a problem with her PC and I wasn't able to solve it. She's got a Laptop running Windows 7. If you open a folder it doesn't open in the Explorer (as it should), but it opens the ...
1
vote
1answer
42 views

Windows 8.1 command like Unix/Linux WHICH command

Below is an example of the results of the WHERE command used in Win 8.1 CMD (DJANGO) C:\Python34>where python C:\Python34\python.exe C:\Python34\DJANGO\Scripts\python.EXE What I am looking for is ...
1
vote
1answer
114 views

How can I run a windows batch internal command remotely?

I have two Windows computers A and B, and I want to remotely run a command on computer B. I use the tool psexec, so on computer A I can run: psexec.exe \\10.0.0.2 -u user -p pasword ...
0
votes
0answers
25 views

When are quotes added to a file or folder path when dragged into a cli?

Like a CLI noob does, I often change directories by using the dragging the target folder into a command prompt to get its path. What's annoying, however, is that the path isn't wrapped in quotes, ...
0
votes
0answers
24 views

VLC command to output stream to /dev/video1

Looking to latch onto an http stream (specifically, a GoPro wireless stream, which I can view fine in VLC) and instantiate a fake video device, e.g. /dev/video1/ Is this possible with VLC alone? I've ...