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

command to pipe in password when prompted by command prompt

runas /profile /user:administrator "cmd /c net user /add [username] [password]". I used the above command to create a new user using administrator permissions. After I enter this command, it prompts ...
0
votes
1answer
17 views

how to add all the integers between two lines with a pattern and print

I have an input file (sample.txt) Sat 02/28/2015__19:32:37.63 262,404 K 100,964 K 112,052 K 124,628 K Sat 02/28/2015__19:37:38.41 262,408 K 100,964 K 112,056 K Sun ...
0
votes
1answer
55 views

How to use Powershell command invoke-sqlcmd in batch script

I have a Powershell command that I want to be run in a batch script. It works well in the Powershell console, but I cannot call it properly in batch script. The Powershell command goes like this: ...
0
votes
0answers
14 views

iterm2 resize pane/window with command

So iterm2 on the Mac has some proprietary control codes that let you change the profile by sending them to the terminal on the command line. I'm wondering if there's a similar way to set the window ...
0
votes
0answers
13 views

Run appcmd.exe list wps as a RemoteApp

We have just switched to using RDWeb to host remote applications. I am trying to make a batch script which will open a command prompt and run a program, displaying the output to the user. It would ...
1
vote
1answer
28 views

Execute a program in tmux without scrolling

I use tmux (with zsh, if that helps). I have a pretty good setup, but often I find myself running a program with a lot of output, and then entering copy mode and reverse searching for the line I typed ...
-2
votes
1answer
30 views

Is there a command to convert administrator account to standard user account windows via a command line

Is there a command to convert an Administrator account into a standard/local user in windows via command line which can be implemented in a Java code?
1
vote
2answers
33 views

How can I force a scheduled .bat job to run in the foreground?

I have a simple .bat that runs a PHP script at the same time every day. @echo ON php C:\path\to\script.php argument pause It runs fine when I double-click the .bat file. And I set up a scheduled ...
0
votes
1answer
23 views

List files in cmd.exe numerically by default to generate a gif out of a sequence of frames

Greetings and Salutations All, I'm trying to create an animation using imagemagick via: convert -delay 80 -loop 0 *.png ani.gif The logic is finding all the .png files, except the file names are ...
0
votes
1answer
51 views

Restoring 'TrustedInstaller' as owner for executable in Windows folder

After changing the ownership of executables in the Windows directory (explorer.exe, regedit.exe etc.), I can't seem to change it back to TrustedInstaller using icacls.exe. Using the GUI method ...
0
votes
1answer
20 views

How to list chocolatey packages already installed and newer version available from command line?

I have following packages installed with chocolatey. choco list -localonly >choco list -localonly Chocolatey v0.9.9.2 adobereader 11.0.10 ...
0
votes
0answers
15 views

Deleting file artwork using the command line

How can I remove the artwork (added using iTunes) for a file using the command line? I found this here but it deletes a little too much, and also copies the file. ffmpeg -i in.mov -map_metadata -1 ...
0
votes
0answers
27 views

Auto close Command prompt

I'm trying to close the the command prompt in vbscript. Code Set oShell = CreateObject("WScript.Shell") Set oWmg = GetObject("winmgmts:") strWndprs = "select * from Win32_Process where ...
0
votes
3answers
39 views

Multiline && combinator operator for command chaining in batch file

I see that this operator is used in windows (and might be Linux?) to chain/combine multiple commands in one line. Commands are executed one after another, as long as preceding complete successfully ...
0
votes
1answer
46 views

Add Date-Time Stamp To Copied File using Windows Batch

I thought this would be simple but it seems more of a challenge than I thought. I want a file to be copied and pasted with a time stamp appended. I get the time stamp using this code: set ...
1
vote
0answers
30 views

Cygwin and Cygwin64 missing prompt in terminal

I tried to install and reinstall cygwin and cygwin64. I also tried different mirror sites. Instead of seeing a line like user@PC~ $, I see a blank screen with a blinking cursor. The properties of ...
0
votes
0answers
10 views

PDF extraction renders strips of images

I have permission to use images from a catalog in my online ads (I resell their products) but they won't give me the image files (I'm a small reseller) Their catalog is available as PDFs. I've ...
1
vote
0answers
17 views

How do I script chntpw wizard

I am using SystemRescueCd to reset passwords on laptops I need to fix for work. SystemRescueCd supports autostart scripts http://www.sysresccd.org/Sysresccd-manual-en_Run_your_own_scripts_with_autorun ...
0
votes
1answer
37 views

/forceit in command prompt gives error: unknown command

I'm trying to run a bios update using /forceit command after the file name on a dell inspiron with a 'faulty' battrey (bios update on dell requires 10% battery hence why I cannot perform this) . I ...
0
votes
2answers
35 views

Assistance understanding the output of “netstat -b”

I’m using Windows 7 64-Bit, and ran netstat -b and it outputted the data to a text file. Their are 4 columns “Proto,” “Local Address,” “Foreign Address,” and “State. The “Foreign Address” states my ...
1
vote
1answer
46 views

Bash: better way to output to both console and output file than tee?

What I need to display is a log refreshing periodically. It's a block of about 10 lines of text. I'm using |tee and it works right now. However, the performance is less satisfying. It waits a while ...
1
vote
1answer
24 views

Head waits for full stdin before printing

When one runs ls | head head seems to wait for the full output of the piped command before printing to screen. This is undesirable when the command will take a very long time to run, such as when ...
0
votes
1answer
36 views

Opening a command prompt in another location - XP

In Windows 7, shift-right-clicking on a Explorer window brings up 'Open Command Window Here', which I cannot find in Windows XP. I heard you have to edit the registry, so I tried using this source. ...
0
votes
0answers
16 views

METADATA_BLOCK_PICTURE header for vorbis ogg. How to batch (windows cmd.exe) or rebol create it?

I have searched the web with no success :( Is there anybody out there able to help with a working example on how to create the header for the METADATA_BLOCK_PICTURE for vorbis ogg ? (batch (windows ...
0
votes
0answers
36 views

Is there an equivalent of the Unix touch command on Windows 7? [duplicate]

On Unix the touch command allows you to change the date of creation of a file. I would like to know whether there is an analogous command on Windows 7 which would allow you to change the dates and ...
0
votes
0answers
27 views

How to start chrome in profile directory or “switch person”

I'm looking to start the Chrome browser in the "switch person" screen every time. That is: Every time I click on the desktop icon, I want the "Switch Person" list to come up so I must choose the user ...
0
votes
2answers
43 views

Append to System PATH variable without including the User's PATH variable

Imagine the following environment variables: System PATH = C:\Windows Bob's User PATH = C:\Users\Bob In a command prompt the PATH command returns C:\Windows;C:\Users\Bob After running setx /m PATH ...
-1
votes
1answer
35 views

Can implementing programs to command line/path be dangerous?

Quite a few programs I use have an option for implementing itself to my computer's command line. I've currently disabled that feature on most of my programs (except node.js and a few others). Example ...
0
votes
1answer
64 views

Powershell Folder monitor/batch execution

I am new to Powershell. I have found a script that works with what I need, kind of. What I am looking for is a script to monitor a folder for specific file names/types. Depending on the file ...
0
votes
1answer
26 views

Can I get throughput speed from WinSCP Script?

I see that when I run my script, it outputs the throughput while it is downloading, is there a way to get the total throughput speed of the file after it has been downloaded? My Script: WinSCP.exe ...
0
votes
1answer
15 views

rsyslog not catching output?

I can push stdout / stderr from the ping command to rsyslog like so: ping www.superuser.com 2>&1 | logger -p user.info On my system, the "live" output can be watched with a simple tail -f ...
0
votes
0answers
7 views

set nickname for particular network using `xchat -e -c`

If I'm only connected to one network, issuing xchat -e -c 'amahdal|gone' changes the nickname on that network. But if I'm connected to more than one network, the above command will only affect ...
1
vote
2answers
49 views

How do you create system variables via batch file for Windows 7?

How can I create a batch file which creates a new system variable? (You know, in advanced system settings > environment variables > System Variables). I want to create a new variable named ...
0
votes
0answers
12 views

Set console width while redirecting the output

I'm trying to avoid wrapping long lines in the NetUsers output, and the output is ok using a cmd window or Console2 with 200 cols. However, if I'm redirecting the output to a file, the output is ...
1
vote
1answer
26 views

'fsutil' is not recognized as an internal or external command in Batch Script

Here's my script which basically creates a file and converts it to a sparse file SparseFileCreator.bat @echo off echo ************************ echo * SPARSE FILE CREATION * echo ...
0
votes
0answers
19 views

“Password Expired” when attempting to access Win7 machines on local network with our local admin account [migrated]

Looks like all of our Win 7 and Win 8 machines were somehow set to expire the admin account that we created locally a couple months back. Now we're trying to make sure we either have to go to ...
0
votes
1answer
44 views

How to turn off monitor using DLL's entry points of windows?

As far as you know, we can call windows7 DLL's entry points via rundll32 <dll-file>,<Entry point> in command line. For example I lock my screen using below command in Windows Command Line ...
0
votes
1answer
46 views

Terminal prompt disappeared?

I was fooling around in “Terminal” (Mac OS 10.6) and typed in sudo ping -f but didn’t put in a URL and didn’t hit return, instead closing the application. When I opened it again the prompt that ...
-1
votes
1answer
26 views

Error message "the program can't start becuse MSVCP110.dll is missing from your computer

I got the message "the program can't start becuse MSVCP110.dll is missing from your computer.Try reinstalling the program to fix this problem" when i Run wamp server.
-3
votes
1answer
61 views

Merge Multiple file using CMD

I have got plenty of *.cpp files in my directory. I have successfully merged file using the below command which i got from one of the sites online. for %f in (*.cpp) do type "%f" >> Merged.doc ...
1
vote
2answers
45 views

Is it possible to get ONLY the Drive Label using WMIC?

Using WMIC, I want to get only the drive label based on the drive letter: for /f "skip=1" %a in ('wmic volume where "Driveletter like '%C%'" get label') do echo %a Now, those of you who understand ...
0
votes
1answer
67 views

Is there a Window's Command Line Option to Show the Sizes of Directories

When I do a dir command it, gives this information: 02/11/2015 01:39 PM <DIR> bar 11/11/2014 07:22 AM <DIR> buz 02/12/2015 01:35 PM 140,660,736 foo.sdf ...
0
votes
1answer
15 views

How to run b2sum-amd64-windows command recursively in a batch file?

BLAKE (hash function): https://blake2.net/ Download: https://blake2.net/b2sum-bin_20130305.zip The current b2sum-amd64-windows command does not include recursive option For example in windows ...
0
votes
1answer
39 views

How do i locate where a program is installed on Linux without knowing its exact executable name?

I am trying to locate where a program's executable file is located from the command line. Is there any way to do that without knowing the executable's exact name? Ive tried whereis "program name" ...
-1
votes
1answer
31 views

How to delete all files that match a pattern (or older than..) except the newest file that matches the pattern?

I have a scheduled task / script running that takes a snapshot of a file each 3 hours, but the file is growing and disk space is limited, so each week I want to perform a cleanup. As for now I do ...
0
votes
2answers
53 views

Linux command get unused port

I'm looking for a command or script which returns an unused port on my ubuntu linux system. I have look on internet and the only thing I find is about the used/Listen port with the nestat command. ...
0
votes
0answers
53 views

Get vector graphics (svg, pdf) page size (width, height) in different units via command line?

Basically, I would like to find out the image size (and possibly, any special boxes) in different units (points, pixels, centimeters) from the command line. As an example here, I have produced an SVG ...
0
votes
1answer
31 views

How to filter this output from powershell?

This is my powershell command: powershell -noprofile -NonInteractive -Command "(gwmi win32_process | select ProcessID,ParentProcessID,@{e={$_.GetOwner().User}}, CommandLine) | ft -AutoSize" When I ...
0
votes
0answers
26 views

Unable to type in Putty after a few minutes of inactivity?

For some reason I am unable to type in Putty when connecting to a remote CentOS server, after a few minutes of inactivity. It appears the prompt is disabled and can't be clicked or typed on. I ...
0
votes
0answers
82 views

Executing Minecraft Server Commands via SSH and Screen

I'm extremely new to linux, so please help me out if you can! I have read many of the posts about managing/monitoring servers using SSH and Screen, but have not found anything regarding my particular ...