Command Line Utilities

From AutoHotkey

Jump to: navigation, search

Contents

[edit] Clipboard Utilities

[edit] cb

Direct Download (4KB)
This is a small and to-the-point utility that will capture up to 512KB of output given to it and make it available to AutoHotkey. In more technical terms, it pipes stdin to the clipboard (where it can be accessed using the clipboard variable). You can use it by simply piping an app into it:

myapplication.exe | cb.exe


[edit] winclip

Homepage
Direct Download (208KB)
The zip file contains a whole suite of applications which you may or may not be interested in, but we are concerned with winclip. You can find it in /bin/winclip.exe, with documentation in /doc. WinClip has a broader range of options, but is also larger and slightly slower than cb. It is used in the same way as cb:

myapplication.exe | winclip.exe -c

[edit] Internet

[edit] curl

Homepage
Direct Download (2.5MB)
curl is a command line tool for transferring files with URL syntax. It supports almost every protocol such as HTTP and FTP, SSL certificates, proxies, cookies, user and password authentication, file transfer resume, proxy tunneling and many other connection types.

Run, curl -u User:pass https://secure.example.com/admin/script.php

[edit] Miscellaneous Utilities

[edit] md5

Homepage
Direct Download (67KB)
md5, a command line utility usable on either Unix or MS-DOS/Windows, which generates and verifies message digests (digital signatures) using the MD5 algorithm. This program can be useful when developing shell scripts or Perl programs for software installation, file comparison, and detection of file corruption and tampering.

Filename = c:\md5.txt
text = password
path = "D:\File Tools\md5\md5.exe"
RunWait, %comspec% /c %path% -d%text% >>%Filename%, , min
FileReadLine, md5, %Filename%, 1
MsgBox, %md5%
RunWait, %comspec% /c %path% %Filename% -d%text% >>%Filename%, , min
FileReadLine, md5, %Filename%, 2
MsgBox, %md5%
FileDelete, %Filename%


[edit] Nircmd

Homepage
Direct Download (74KB)
NirCmd is a small command-line utility that allows you to do some useful tasks without displaying any user interface. By running NirCmd with simple command-line option, you can write and delete values and keys in the Registry, write values into INI file, dial to your internet account or connect to a VPN network, restart windows or shut down the computer, create shortcut to a file, change the created/modified date of a file, change your display settings, turn off your monitor, open the door of your CD-ROM drive, and more...

nircmd.exe cdrom open j:
Personal tools