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
3answers
46 views

Bash script to find all folders containing a specific file and copy a new file to those folders

I'm trying to write a script that will loop through all subfolders of a directory to search for a specific file and then copy a new file to those folders that contain that file. This is what I have ...
1
vote
0answers
29 views

The Command “copy /b Source+,,” does not work in a Batch Script [duplicate]

I'd like to update the timestamp (Modified Date) of a file in a batch script by using the following command "copy /b Source+,," but it does not work. I tried the same command through command line ...
0
votes
2answers
174 views

Change Windows Desktop Background command line

Is there a command line option to change the Windows desktop background color? I want to set my desktop background to use Solid Colors (blue - rgb: 57, 109, 166) with no background image. The only ...
0
votes
0answers
13 views

Command Prompt set UTF8 not working after opening specific directory

I'm trying to automate opening up PSQL (PostgreSQL command prompt). I've got the batch program opening the correct directory however I'm not sure how to get it to run the command to switch to UTF8 ...
0
votes
2answers
27 views

Linux slightly different behaviour If we give '&' before io redirection '>' and after redirection

I was starting jboss recently in background in Linux and saw that if you run command as follows: nohup ./startjboss.sh > server.log & Output is : [1] 18835 [root@cnt5-01b downloads]# The ...
2
votes
1answer
85 views

Changing Visual Effects settings through command line

Is there a way to change/modify the Visual Effects settings via command line? For example, I want to control (enabling and disabling) on Animate windows while minimizing and maximizing option from ...
0
votes
2answers
28 views

How do I restore my command prompt/power shell to default settings?

I took a java class a few semesters ago, and in order to do things like compile the code, they had us modify a number of things. I wasn't paying attention to what I was changing and I no longer have ...
0
votes
2answers
71 views

giving permission to program to run with out confirmation in start command windows

I am using this start /b C:\wamp\wampmanager.exe command to start a program in my windows( Windows 7 Ultimate - 64 bit). But then the program want a permission to run Do you want to allow the ...
0
votes
1answer
25 views

How can I run this Perl script in Windows?

I am trying to run a PERL script for the first time. Here it is : http://search.cpan.org/dist/HTML-ExtractMain/lib/HTML/ExtractMain.pm I have never used or worked with PERL before and I am finding ...
0
votes
1answer
51 views

OSX bash command line countdown timer

I found here on superuser the following nice countdown script that I could include in my .bash_profile: function countdown(){ date1=$((`date +%s` + $1)); while [ "$date1" -ne `date +%s` ...
0
votes
2answers
51 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
42 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
38 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
41 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
74 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
10 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
16 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
22 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
22 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
45 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
28 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
53 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
27 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.
-2
votes
2answers
50 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
24 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
2answers
44 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 ...
1
vote
2answers
35 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
24 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
579 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
49 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
35 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
42 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? ...
2
votes
1answer
34 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
42 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
46 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
23 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
26 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
16 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
28 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 ...
2
votes
1answer
149 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
17 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
22 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
18 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 ...
-1
votes
0answers
13 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
31 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
63 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 ...