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

Is it possible to make a relative symbolic link that is relative to the link itself(Windows)

Is it possible to make a relative symbolic link that is relative to the link itself. Only the Path to the link itself is known. Anything else can change D:\Photos\Subject\realfile_XX.jpg ...
1
vote
1answer
18 views

Search for string and read the next line

I need to write a shell program that installs some packages. The program will run on Linux (obviously some commands will not work, for example, on Arch-based distros). So, I've got this file called ...
0
votes
0answers
15 views

Can I use ProxyCommand to run arbitrary commands on a target server via a jumpbox/middle server?

At work, we have a number of servers that we can only SSH into from our jumpbox server. Every now and then I need to execute a command on these servers. For example, if I want to execute df -H on ...
2
votes
1answer
298 views

Variable in WinSCP script

I'm asked to automate some SFTP download processes via WinSCP. I'm not familiar with WinSCP scripting. ftprun.cmd: C:\Program Files\WinSCP\winscp.com" /script=D:\testsftp\ftpscript.txt ...
0
votes
0answers
14 views

Send an email whena service is stoppped/Started [duplicate]

I have a requirement where I need to stop a service on a schedule. So I created a simple bat file which starts and stops the service using Net STOP /Start command, which I schedule using the windows ...
2
votes
1answer
3k views

How to add files to specified folder in archive with 7zip command line

I have folders and files on my disk C:\builds\main.exe D:\components\a\testa.exe D:\components\b\testb.exe D:\components\c\testc.exe D:\dependencies\abc.dll Can I create an archive with 7z command ...
3
votes
2answers
93 views

Merge by date multiple log files that also include un-dated lines (e.g. stack traces)

How can I merge log files, i.e. files that are sorted by time but that also have multi-lines, where only the first line has the time, and the remaining ones have not. log1 01:02:03.6497,2224,0022 ...
3
votes
3answers
2k views

Remotely check who is logged in by NETBIOS name

I manage a network and I am trying to figure out who is using a machine with a specific NETBIOS name because it appears to be mislabeled physically on the exterior of the box. I am wondering what, if ...
1
vote
1answer
39 views

How can I create symbolic links in Windows 8.1 without an admin command prompt?

I am hoping that someone can correct me where I'm going wrong when trying to create a symbolic link in Windows 8.1 without having to run cmd.exe as administrator. Whenever I try to create a symlink ...
0
votes
3answers
41 views

Cannot change directory with cd in DOS using Win7

I would like to change my Present Working Directory in DOS (I am running Win7 professionnal). When I perform a cd D:\, nothing happens: Microsoft Windows [Version 6.1.7601] Copyright (c) 2009 ...
0
votes
0answers
15 views

RAR - add folder according to wildcards?

I'm using commands line's RAR 5.1 (exe) : I have this c:\r\ folder which has : C:\r\ │ MsgProtos.java │ k.txt │ ├───kjhasd │ CSharpOptions.cs │ DescriptorProtoFile.cs │ ...
0
votes
2answers
23 views

How to reset a HDD to one partition

I have a HDD which seems to have its partitions messed up. At this point, I want to just make the entire HDD one partition clean and ready to go. Is there a way I can do this with the Windows CD CMD? ...
6
votes
3answers
40 views

PHP version for super user is fcgi instead of cli

I have a strange problem with PHP version when using CLI. When I login as root and use: php -v I get an info that php is running in CLI mode which is fine, but as soon as I use sudo php -v I get ...
5
votes
2answers
2k views

Software: Launching League of Legends spectator mode from Command Line (Mac)

Background: tl;dr at the end League of Legends has a spectator mode, in which you can watch someone else's game (essentially a replay) with a 3 minute delay. Popular LoL website OP.GG has figured ...
0
votes
2answers
28 views

Bash - Fixing messy output

I'm not sure how/why this is happening. Basically I have a command that is supposed to find and clean out all files in the desktop that contain a certain pattern. I am doing the first part using: ...
5
votes
4answers
2k views

Does Windows Move command delete the file only on successful completion?

This may be a stupid question, but I'm erring on the side of caution here. If I'm using Windows command line/batch files to Move a file from one server to another and we have a network failure, what ...
7
votes
3answers
2k views

Is there a way to access OS X location services from the command line?

I'd like to be able to fetch OS X's current estimate of location from the the command-line so that I can script based on it. Is there a tool that does this? I've found apps like locations that let ...
6
votes
1answer
7k views

What command-line options are available in Adobe Acrobat (not Reader) for modifying documents (Convert, Merge, etc.)?

See title. I'd like to convert a bunch of XML files to PDF using Adobe Acrobat (9.0). Currently, I'm opening each of these files with IE and then convert them manually using the Acrobat Plugin. I'm ...
0
votes
0answers
19 views

Windows Script Host

My batch file runs on my PC, but when I run it on the server, it calls the Windows Script Host (WSH) which seems to hang the process. There are no settings for the WSH. when I kill the WSH my batch ...
0
votes
0answers
10 views

Adobe Acrobat - merge PDFs via command line [duplicate]

Is it possible to combine PDFs files into one via command-line in Adobe Acrobat? Is so, how? I have tried PDFtk and it works great but at work I am supposed to use Adobe Acrobat only. Thank you! ...
3
votes
2answers
523 views

How to use usbmon for knowing amount of data transferred from usb (pendrive )?

Please someone explain me in simple terms how to use usbmon to track the amount of data transferred from pendrive ?
5
votes
2answers
5k views

Zypper: How do I display all packages from a certain repository?

Please tell me, how to let zypper display all installed packages of a certain repository.
1
vote
2answers
2k views

Looking to create a batch file capable of editing a line (or word) in a text file

I have a text file (...\config.txt) containing 2 lines which looks like: Preamp: -4 dB Include: surround.txt I need to change "surround" to "headphones" in that config file. I really need to make 2 ...
1
vote
0answers
14 views

Sort lines to form a unique words dictionary listing

Many a times we build dictionaries in online forums for typical words used in a forum, the user responds in following format in a phpbb forum term: defination hence the job is to collect all these ...
6
votes
3answers
208 views

How to determine what is running in DLLHOST.EXE that's missing /ProcessID switch?

I have multiple dllhost.exe processes running on my computer: Every one of these image's command line is missing (what I am thinking is) the requisite ...
1
vote
1answer
190 views

How do I expand a multipart CAB in cmd?

I have successfully created a multi part CAB file using makecab and a ddf file: .OPTION EXPLICIT .Set CabinetNameTemplate=package.* .set DiskDirectoryTemplate=Disk .Set MaxDiskSize=10485760 ; 10 MB ...
10
votes
2answers
15k views

Clear windows command prompt screen using keyboard shortcuts

Is there any way of clearing the command prompt screen in windows using keyboard shortcuts?
-1
votes
0answers
50 views

PSEXEC - Run another process still interpreted in CMD

Is there way how to execute a text editor inside CMD via PSExec? I mean to run process inside cmd.exe, not as another proc.exe. I can't find way how to do it. It's because of psexec which is just ...
2
votes
1answer
3k views

CutePDF command line or equivilant

Is it possible to run a command that will automatically print to file using CutePDF? I have tried this and still no luck: print C:\test.doc /D:CPW2 If not any other suggestion on how to automate a ...
0
votes
1answer
36 views

How can you access a remote disk/volume from the terminal in OSX?

In Dos, you can access a network path easily by doing \\<server\path very similar to c:\path. Is there a similar way to do this in OSX Mavericks and above?
0
votes
0answers
16 views

adobe acrobat pro xi save as PDFs optimized using command line?

I have a directory with about 4,570 files that I would like to reduce the size of I have adobe acrobat pro and the save as pdf optimized seems like its doing a good job but obviously I can't do them ...
9
votes
3answers
18k views

Internet Explorer commandline arguments

I'm trying to run Internet Explorer from a batch file/scheduled task. My batch file contains (in its entirety): cd "%ProgramFiles%\Internet Explore" iexplore.exe http://superuser.com -nohome ...
0
votes
1answer
61 views

Is it possible to run a program in Windows XP Mode directly from a batch file that is in Windows 7?

I have Windows 7 Ultimate with Windows XP Mode installed. In my host OS (Windows 7) I have a batch file which executes some commands. I have to execute also three programs that are installed in my ...
0
votes
0answers
13 views

Windows - use processID from pipe output as find parameter along with piped input from netstat ?

I can get the process ID with this command: ..\system32> tasklist | find "MyProcess.ex" | cut -d " " -f6 ..\system32> 9672 I can run find on netstat -nao if I know the processId to find ports ...
3
votes
2answers
268 views

LSOpenURLsWithRole() failes with error -10810 on Yosemite from within tmux

Trying to open an application from the commandline (terminal.app), inside tmux (installed through macports, version 1.9a), and getting the following result: $ open /Applications/Adobe\ Reader.app/ ...
1
vote
3answers
6k views

How to optionally copy and rename a file in Windows?

Basically, in an automated batch file, I want to copy and rename a file if the destination file is missing or older. There are several variants, which do not quite work: copy /Y c:\source\a.file ...
50
votes
9answers
114k views

How to run a batch file without launching a “command window”?

On Windows XP, can I run a batch (.bat or .cmd) file, via a shortcut, without a "black window"?
2
votes
3answers
2k views

How to set to a variable, the result of a expression

I need to extract the date of a file, for then use this string as part of the name of a new file. I trying to solve this using the next commands: First I get the details of the file and redirect the ...
1
vote
1answer
952 views

Windows XP/7 copy command line involving junction

I have a batch script which needs to work with Windows XP (for the time being) and Windows 7. The script also copies a link to the Windows Desktop. copy /Y path\to\the\link.lnk ...
0
votes
1answer
2k views

How to mount WebDav filesystem on Mac?

Trying to do the following: mkdir /Volumes/temp mount_webdav davs://myusername@webdav.yandex.ru:443 /Volumes/temp It doesn't return any error, but /Volumes/temp is empty in result. Here are the ...
2
votes
1answer
157 views

Copy command in CMD copies 734 Byte instead of 22 MB?

I have the file DWA_160_drv_RevB_2_2-42_all_en_20130313.zip on Desktop. I want to copy it to a USB flash drive using CMD. I use the copy command to do that, but I'm getting bizarre results, i.e. the ...
0
votes
1answer
15 views

Recover data from corrupted dmg

I had a simular problem as in the asked question (see link) Tools/tips to recover data from a corrupt DMG disk image? Really want to try nworkers solution to this problem but before I do something ...
0
votes
0answers
20 views

use wget for the most updated file on http server

I need to download the most updated files with the name suite. I am using windows server to run the command lines. I wrote the following command but not sure of how to get the most updated one wget ...
0
votes
0answers
10 views

How to switch user rights within Batch file (de-elevation after elevation and back)?

I have a batch file that I need to run as Administrator, but within this batch file I need to run some commands as non-administrator, followed again by admin-commands. admin commands user commands ...
0
votes
1answer
39 views

How to configure Conemu to highlight icon in taskbar during long time operation that is not providing time to finish?

I'm developer and using console for builds. build operation in console is taking much time so I'm minimizing console and doing some other tasks. But time to time i have to look into console to see if ...
3
votes
2answers
92 views

Enabling restarting in Windows

When I use shutdown -r or shutdown /r my Windows computer doesn't restart. I think this command is disabled. How can I enable this command in the command prompt?
0
votes
2answers
2k views

How to enable Graphical Remote Control to Ubuntu OS using command line?

I found a guide which helps to enable remote control for Ubuntu from graphical log-in. I'm using EC2 server and need to enable this using putty command line.
27
votes
10answers
19k views

Bash: Reset and Clear Commands

I have been using the command: reset to clear my terminal. Although I am pretty sure this is not what I should be doing. Reset, as the name suggests resets your entire terminal (changes lots of ...
1
vote
2answers
162 views

How to make .exe's run from Run (winkey+R)

So I've noticed from using the Run thingymabob a lot that for some programs you can simply type in the .exe without specifying the path and it'll run. Chrome, Notepad++, and any native windows apps ...
10
votes
5answers
10k views

Command line browser with js support

Does anybody know good command line browser with js support? Ideally I need following ability: some-browser http://example.com > ~/page.html It means that cli browser download html, execute js ...