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

Checking UAC Elevation of Running Process from Command Prompt

How can I use the command prompt (cmd.exe) to check if a process is running with UAC elevation / elevated privileges? If I were to use the Task Manager (taskmgr.exe), I could check by adding the "UAC ...
0
votes
1answer
24 views

how to concatenate files within each subdirectory using windows command prompt

I'm a newbie, a grad student, and frustrated!! I have tons of directories containing subdirectories and each subdirectory contains a bunch of .irf files (these are a DVR-type file). I am trying to ...
0
votes
0answers
13 views

Making the windows command promt title display the current folder? [duplicate]

Is it possible to have the Windows Commmand Prompt title display something other than C:\Windows\system32\cmd.exe ?
1
vote
3answers
36 views

Running a Python script from the “Run” prompt

I thought this would be easy, but I've been struggling for a while. I have a Python script on my Windows machine called "myscript.py". I have it in a folder that's on my PATH, and I've added the ...
1
vote
0answers
14 views

Get system volume from command prompt

I'm using NirCmd http://www.nirsoft.net/utils/nircmd.html utility to set the volume via the command prompt for a game but need to know what the current volume is upon the app start up. I found this ...
0
votes
0answers
18 views

Upload data in .txt file to SQL database through ftp in command line

I have a table in .txt file with header, and an empty table Final_Beta_Table with header only in SQL database. It's a NETEZZA database and there are many other tables in it. How can I upload the .txt ...
0
votes
3answers
33 views

How to append multiple .txt files to one file without header line

I have 100,000 .txt files with format below: bygrp,colnum,beta 100005,1,0.629519434191718 100005,2,-0.500000000026516 100005,3,0.560850895321124 100005,4,0.119624318119292 100005,5,0.257676682753309 ...
0
votes
1answer
57 views

How to installing software using CMD on windows 7? [on hold]

Is it possible to install a software using CMD on Windows 7 without using the GUI install wizard. I know about "Chocolatey" but seems it works with listed software only. Would using something like ...
-2
votes
0answers
45 views

*.bat script : find in “xxx” folder today files that containing “yyy” string inside and copy thoes files to “zzz” folder [on hold]

Please script in batch : find in "xxx" folder a today files that containing "yyy" string inside of them and then copy those files to "zzz" folder i guess it can be done with forfiles and findstr ...
1
vote
1answer
19 views

Windows: Run script on cd

On linux, I've got a number of scripts running upon changing to a directory. Tasks like updating repos, rotating logs, etc, are decided through a small bash script that overrides bash's "cd" and runs ...
5
votes
1answer
67 views

How does one browse a website using Telnet?

When you connect to an open port 80 (HTTP) through Telnet, shouldn't the client display a plaintext version of the site? All I get is a blank screen, and then the client disconnects. I know you can ...
2
votes
0answers
9 views

Start Appium server at system boot (MacOS)

I'm trying to setup Appium server to stat automatically after system startup. Also I'd like it to restart after a crash. Appium was installed as a npm package and it launches and works fine when I ...
1
vote
1answer
13 views

Construct command for bash exec

I have a shell script that runs exec to replace itself with another command. The other command takes some optional arguments. exec mycommand $ARG1 $ARG2 $ARG3 Any of these arguments could be ...
1
vote
1answer
15 views

Trying to pass variables to Send-MailMessage arguments and failing miserably

So I have a problem. I’m trying to write a scripts that pings a list of hostnames in an external .txt file, and send an email alert if one of them goes down. I’m having a few problems with it, but ...
1
vote
0answers
14 views

php.exe can not find .dll files

I recently installed xampp which of course installs php. I want to run php from the command line so I added it to the PATH variable in windows using setx path ... This worked well so that now I ...
3
votes
2answers
42 views

How to open a batch file and execute a command AFTER opening command prompt

I am trying to create a batch file that first opens command prompt and then executes "prompt $t$gEnter Command Here$g". I have tried starting it with "%windir%\system32\cmd.exe" and then using ...
0
votes
2answers
33 views

Add a newline after each terminal command except at the beginning

I want to add a newline after every command I enter in the terminal. Right now, I have this line in my .bash_profile file: export PS1="\n\u$ " This works as expected: However the issue with ...
1
vote
1answer
60 views

How to omit characters at the beginning of a file name while renaming it in DOS?

I would like to know how to omit the first character of a file name while renaming the file in DOS. In my case I have bunch of files like: #test1.txt #test2.txt #test3.txt #test4.txt #test5.txt I ...
2
votes
1answer
26 views

Batch script is adding funky characters when a command gets executed

I have this script and when I try to execute it, a bunch of random symbols show up in the command prompt: cd "X:\folder\subfolder" svn update pause I have no idea what those symbols are called or ...
0
votes
0answers
11 views

Java server started from putty with screen cmd gets unresponsive over night

I have a java server that I start on a centos box via putty. I use the screen command like this: screen -S name java -cp desktop-1.0.jar com.aperico.game.skellitown.desktop.DataServer & Ctrl + A ...
0
votes
1answer
37 views

Symlinks over SSH: Why am I unable to access files/directories in parent directory if traversal to current directory was through a symlink?

NOTE: This behaviour is observed via remote access using SSH. I noticed that if I have moved into a directory using a symlink that I cannot use the .. entry in the directory listing to move back into ...
1
vote
0answers
28 views

Delete all files and folders in a specific directory older than 1 day except one folder with bat file using forfiles

Hello I want to delete all folders, subfolders and files older than 1 day in a specific directory and leave one folder untouched with the forfiles like the command below: forfiles /p ...
-2
votes
2answers
40 views

How can you remove the need to type the full name of an .exe in cmd to run it? [duplicate]

OK, so you can run something like start iexplore in cmd and have it run internet explorer. Is there a way to allow the same sort of behavior with something like, javac.exe (or some other utility ...
-3
votes
1answer
24 views

What is command prompt's console name? [closed]

Is there a "console" in command prompt? There are consoles in browsers, but what about command prompt? I tried console.log, but it didn't understand what "console" meant. I have Windows 7 ...
0
votes
3answers
35 views

Is it possible to cd with command line through a folder to a shortcut

I have a shortcut to a folder on my Desktop (as I don't store files directly on it). Is it possible to get to the directory the shortcut points to when I am in the desktop on command line? I would ...
2
votes
0answers
22 views

Program options have sometime one or two dashes (-foo, --foo) [duplicate]

In gcc every command line arguments have one dash. In some other tools, options that are not a single character have a two dashes prefix. Why is there two standards, which one is the most common? ...
1
vote
2answers
28 views

understanding tilda,slash command in bash

I have confusion in the meaning of command ~/ if x is a directory, then what is the meaning of ~/x in bash. Please guide me
0
votes
1answer
16 views

How to delete the profile AD attribute using dsmod or similar?

As part of a user management batch script, I need to delete the profile value from an AD User object. The syntax I'm using is as follows: dsquery user -name TEST | dsmod user -profile "" It ...
2
votes
1answer
38 views

Function using watch on command with command line arguments

I want to run watch on a command which uses an optional command line argument, like this: function queue() { watch -n 10 'squeue -p ${1:-default} -o "%.8i" ' } but the command-line argument ...
1
vote
1answer
31 views

Is there a way to get the current volume output from command-line on Windows?

I'm looking for the current actual output levels, not what the volume is set to. Ideally this would be a command-line tool, but if there's so way I could generate one myself with APIs, that would ...
0
votes
2answers
35 views

Passing variables with space to the command line as admin

strong textscript.bat placed on the sendTo folder(file setted running as admin from properties -> advanced -> run as admin) @echo off cd %~dp1 echo %~dp1 echo "%~1" pause if i pass a parameters ...
0
votes
1answer
9 views

find certain item of a file by using command line tool in windows 7

recently I used findstr "ItemThatIsBeeingSearchedFor" C:\Windows\System32\drivers\etc\hosts > J:\documents\HostsFile\ResultOfSearch.txt in order to output a certain entry of the hosts file into ...
0
votes
1answer
34 views

Batch clear AVI properties? [closed]

I have a number of files in a nested directory structure with over 100 directories in it. I'd like to clear the media properties/metadata (i.e. Artist, Title, Album, etc) from the AVI files (and only ...
9
votes
3answers
426 views

How to use “<<” in batch file or command prompt?

I know what >> is used for, it write all messages into a file instead of screen. And I guess << do reverse, I try it and receive a message: << was unexpected at this time. Please ...
0
votes
0answers
15 views

can't see the output of python in cmd and desktop

I've been messing around with python 3 for a while with notepad and cmd everything worked fine up until today when I saved a python file to my desktop. when I clicked on the file it said something ...
0
votes
1answer
57 views

Detailed steps for creating a junction for winsxs folder in Windows 7 [on hold]

I was searching for a list of detailed steps in Windows 7 for moving the winsxs folder to my data HDD drive and creating a junction in the SSD with mklink /J oldpath newpath I could only find ...
0
votes
0answers
30 views

call environment path commands from powershell

I can call any executable included in the environmental variable path from a command prompt by simply calling its name. However when i try to do the same from Power-shell I get an exception the ...
0
votes
1answer
13 views

Can I add one permission to many files at the same time?

I am using Git bash on a Windows 7 system. I have a directory with 20 files in it. They have various permissions, but they are all missing w for the group. I want them all to have w for the group ...
0
votes
1answer
22 views

Run Excel macros in multiple files and paths

I need assistance to enhance the method I've implemented. Here are the details. I have multiple excel spreadsheets (xls, originally written on Excel 2007 or 2010) that have 3 main macros that I want ...
-1
votes
3answers
71 views

cmd-Difference between quit and exit

If you type telnet in cmd, you will have to type quit to get out of there, but if you type wmic, both quit and exit will work. Welcome to Microsoft Telnet Client Escape Character is 'CTRL+]' ...
3
votes
2answers
31 views

Get the first few characters without the extension of the file in DOS

My files are AAAAAAA-01.pdf , BBBBBB-02.pdf, CCCCCCC-03.pdf I was able to generate an excel list of file name in the folder without the extension using this command below: for %%i in (*.pdf) do @echo ...
1
vote
0answers
12 views

getmac ERROR: Invalid class

When trying to run getmac from the Windows Command Prompt, I am getting ERROR: Invalid class. As a Windows utility, I'm not entirely sure why it's broken or how to go about fixing it. Can anyone ...
0
votes
1answer
17 views

How to get files created in last 5 days and form a list for informatica source

Find all the files of the format yyyymmdd_test.txt created in last 5 days. The file may not be available or created for a day in between as well. i.e. for 5th june if following are the available ...
0
votes
2answers
36 views

Windows Batch commands to copy file to multiple subdirectories

I have 2 files file1.txt and file2.txt that I want to copy into a folder structure like this parentfolder subfolder1 destinationfolder subfolder2 destinationfolder ...
1
vote
1answer
51 views

Can't run batch file in Server 2012

This site rocks! I am trying to run a simple .bat file on Server 2012 that will ping another server, filter out all the lines except one, and then write to a file for later use (I then want that file ...
1
vote
1answer
46 views

Batch appending groups of images using imagemagick

I want to use ImageMagick’s convert script to append two images horizontally. This is easily done with convert +append input1.jpg input2.jpg output.jpg. I have a directory of jpeg files however. ...
0
votes
2answers
35 views

How to disable displaying previously viewed code/output from command line in linux?

For example, if I view a piece of doc called a.txt in linux. Here is my prompt: user $ less a.txt This is a document named a.txt, here is what happened when I press 'q' user $ Small document ...
0
votes
1answer
32 views

How to do this in all subdirectories in parent folder using batch script?

i am total noob for scripting so i need small help with this batch script... Here is script : @ECHO OFF SetLocal EnableDelayedExpansion SET par2_path="C:\PAR2\phpar2.exe" SET par2_redundancy=10 ...
0
votes
1answer
3 views

How to trim and join several parts of an audio file using crossfades?

I want to keep several sections of an audio file, merged together, but without any discontinuities ("clicks") at the join points. There's a SoX command that does this (http://superuser.com/a/677351), ...
0
votes
1answer
17 views

Start VLC command line but not successful stream

Hi i used this code worked with my old tv-tuner (it connected direct with my PC and i used tv digital for streaming. Start "" "C:\Program Files (x86)\VideoLAN\VLC\vlc" ...