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
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 ...
9
votes
3answers
444 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
17 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
67 views

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

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
31 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
27 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
72 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
15 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
39 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
60 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
20 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" ...
0
votes
0answers
12 views

Deploying Win 7 prompts for password change

So I am deploying Windows 7 through WDS. I have made a golden image, launched sysprep jumped back into audit mode and deleted the default User account so that it is clean. Then generalised it and ...
1
vote
0answers
22 views

How can I flash the screen to indicate a CMD process has completed?

I'm running a process on a remote Windows 8.1 PC through CMD, and have a Remote Desktop window open to monitor it. That window is usually in the background. How can I have CMD display a visual cue ...
0
votes
1answer
41 views

Unicode and MS DOS sessions

Considering UTF-8 + Windows CMD nightmare... After reading this question, are these solutions only partial ? Is there a way to set globally the character set/encoding in a cmd environment? It seems ...
1
vote
1answer
100 views

Chmod 777 in Windows 7

I use Window 7 and I need to create a new .dat file in the principal partition C:. But I can't do that because I don't have all the permissions. I run the cmd as administrator and I try again but the ...
2
votes
1answer
28 views

Putty - excute remote script and leave console open

I'm running the following command in windows console: "C:\Putty\putty.exe" -load "mySavedSession1" -m C:\somePath\localScript.txt -v localScript.txt content: /somePath/update-new-ver.sh the ...
1
vote
2answers
37 views

Linux: w (who) command top-like monitor

Is there a monitor like top but for the w (who) command? It's ok if it's a package that needs to be installed. Any Linux flavor. I'd like to have a simple CLI real-time monitor of users logged into ...
1
vote
1answer
27 views

Aliasing piping operations in bash

I frequently will do something like grep -R foo . at the root of a project. It’s helpful but the results get diluted by the inclusion of binary. temp, and test files that I don’t care about. So I end ...
2
votes
2answers
52 views

Can I adjust command line output to make columns vertically align?

The first image is Mac terminal output, these columns are vertically aligned. This is Windows cmder output, in a mess. Can I adjust it?
1
vote
2answers
62 views

I want to delete a certain number of oldest files in a folder with .cmd

I have a backup folder where are for everyday day a Backup-folder (like 15.06.; 14.06; 13.06.....) containing the backup files. I now want a to delete (in .cmd file) An amount of x oldest folders ...
0
votes
2answers
33 views

Batch check for *.reg but only if = 1 file

I am looking to basically check if a batch file is present by wildcard *.reg, but I would like it to error if there is more than 1 .reg file. This is the code I have been trying to use, but my batch ...
0
votes
1answer
25 views

how can I extract entries out of the HOSTS file with the command line tool in Windows 7?

It concerns the HOSTS file, Windows 7 Ultimate 64bit. I want all entries/lines with a certain name in it to be written in a .txt file. how can I do this in the command line tool?
1
vote
0answers
14 views

schtask Activate task when specific user login

I want to create a batch file that creates a scheduled task to run a .cmd file when a specific user logons. So far I've come up with this: @echo off schtasks /CREATE /RU %username% /TN "TaskName" /TR ...
0
votes
1answer
34 views

Piping a line of the file read with while read loop

I am trying to read each line of the file and then assign some parts of it to variables. A line itself is read as a variable so I need to process a variable input say for cat which seems to be ...
0
votes
2answers
37 views

Pinging My phone [closed]

I have recently lost my phone and I really need to find it I was searching on how to ping it for its location but I still haven't found any useful information. Is it possible I could ping it from ...
2
votes
1answer
36 views

Get URL from HTML file using FindStr

I'd like to preface this by saying that I'm very new to the command prompt and I've been only using it for some WGET and YOUTUBE-DL, and that I'm on a Windows 8 PC. I'd like to get a bunch of links ...
1
vote
2answers
15 views

download file in Linux console from server that use redirection

First of all, I just don't want to change name of curl's output file. The great example is http://www.getsoloapp.com/download. When you do: curl http://www.getsoloapp.com/download you download html. ...
-2
votes
1answer
20 views

How to connect remote machine using CLI

I want to connect one of my Windows/Linux machines remotely via CLI(command-line interface). I can login into the remote machine with team viewer(GUI). Is there any software that help me to create a ...
0
votes
0answers
24 views

DEVCON stopped working - permissions issue on Windows 7 32 bit?

I have used DEVCON for many years as part of scheduled tasks in a Windows 7 32 bit system. It verifies that certain USB devices are connected and properly enumerated. In the last week, it has ...
1
vote
1answer
31 views

How to set path for sudo commands

If I issue sudo my-command how does Linux look for that my-command? The my-command is in my PATH. I can invoke it without any problem. However, when I invoke it with sudo, I'll get command not ...
2
votes
2answers
114 views

How can I start an application via a Windows symlink

As a developer, I install and run many applications. To access these from the command-line, the usual mechanism to add the applications to the PATH environment variable. That's ok, but leads to a ...
1
vote
2answers
59 views

Is a symlink to a directory a file or a directory?

I have several commands that remove files and directories. One of them deleted a symlink that was pointing to a directory. It raised the following question: which command removed it? The one that ...
-4
votes
0answers
63 views

How to remember parent process in nested batch scripts?

Can I remember the parent process that caused the child, in the sense of a return to the original script Batch as the directories are stored and restored PUSHDIR command POPDIR command? It may not be ...
0
votes
2answers
21 views

Prefixing output text in batch

I am trying to create a remote, WMI query script that will query a bunch of machines and tell me the MemoryChip configuration information. This way, we can find out what machines physically have 1 ...
0
votes
1answer
49 views

Bash Script to generate <name> and pass this as command line argument to programm

I have an python script which gets 1 command line argument python arg Now I want a bash-script which: calls python arg & with the argument arg=000 make this x-times so therefore: python ...
0
votes
0answers
16 views

To edit commandline Anki flashcards in MySQL

I need to make a small change in 77777 Anki flashcards, preferentially programmatically, not by using their replace tool which is not sufficient. I imported data originally there as CSV files where ...
0
votes
1answer
92 views

What does dd do that pv doesn't?

I see examples online all the time of using dd in combination with pv to show progress... But, something I don't understand is that pv is perfectly capable of doing the task entirely on it's own. So, ...
0
votes
2answers
36 views

understanding the -R flag and * in rm commands

When using the rm command in OS X 10.9 I accidentally deleted an entire disk. As I understand the command I used: sudo rm -Rfv /Volumes/Disk/AppName\!\ Whatever\ X.app/Contents/Resources/* ...
0
votes
3answers
81 views

Does “DOS” have a shell?

I have been reading the posts I found about shell , terminal , bash but I get more and more confused about these terms. Does the operating system DOS have a shell, like the bash in linux? Is this ...
1
vote
0answers
23 views

How can i track client isolation?

My wireless Router client isolation is enabled.Now how can i know that WiFi client is isolated without longing inside the router? Is there any script or command what i run in any local pc and that ...
0
votes
0answers
25 views

PsExec returning “the system cannot find the file specified”

I am trying to open a program remotely from another pc. I am using this command for psexec: psexec.exe -accepteula -s -d -i 2 -w C:\Tools \\192.168.1.1 -u Login -p Pass C:\Tools\program.exe If I ...
2
votes
1answer
28 views

How to give count to a Vim command line command (like :insert, :normal, etc)

In Vim as probably all of you know it is possible to give a count to commands in "normal mode" by preceding them with a number. Like for example 4dd that will delete 4 lines. I am wondering if there ...
0
votes
1answer
19 views

script a list of websites to determine ciphers

Have a list of websites I would like to check the ciphers. We will be using SSL decryption and want to see if I can in advance check the sites that will not support our decipher. We have some ...