Command Line Utilities
nirsoft_installer 1.41 has been released (announcement)
Submitted by ross on Sat, 12/17/2011 - 15:57nirsoft_installer 1.41 has been released. Details at http://smithii.com/nirsoft_installer.
This seemingly duplicate blog entry has been created as some RSS readers, such as Google Reader, do not display updates to existing blog entries, even if the update date was changed. This entry will be deleted in a week or so. Therefore, please do not post comments to this entry. Post them to the above URL instead. Thanks!
- ross's blog
- Login or register to post comments
lsdsk 1.6 has been released (02-Oct-11)
Submitted by ross on Sun, 10/02/2011 - 10:16nirsoft_installer 1.35 has been released (announcement)
Submitted by ross on Wed, 06/10/2009 - 08:35nirsoft_installer 1.35 has been released. Details at http://smithii.com/nirsoft_installer.
This seemingly duplicate entry has been created as some RSS readers, such as Google Reader, do not display updates to existing blog entries, even if the update date was changed. This entry will be deleted in a week or so. Therefore, please do not post comments to this entry. Post them to the above URL instead. Thanks!
- ross's blog
- Login or register to post comments
aria2 1.3.3 for Windows has been released (updated 12-May-09)
Submitted by ross on Tue, 05/12/2009 - 12:29aria2 is a download utility with resuming and segmented downloading.
Using the makefile aria2.mak, I successfully ported aria2 to Windows using the Debian MinGW cross-compiler. While aria2 compiles under native MinGW and Cygwin, the resultant executable was buggy using the supplied gcc version 3.4.5, and numerous unit tests fail.
After installing gcc 4.3.0 in MinGW using get_mingw.cmd and am now able to produce working binaries in my Windows environment. This leads me to believe that gcc 3.4.5 is not reliable under MinGW.
The latest MinGW binary, and source code is available at https://sourceforge.net/projects/aria2/files/.
Automatically Slipstream Windows XP with SP3 and All Post-SP3 Security Hotfixes with a Single Command (Updated 03-May-09)
Submitted by ross on Sun, 05/03/2009 - 08:25For information about slipstreaming Windows XP SP2, visit http://smithii.com/slipstream_xpsp2.
I've written the batch file xpsp3.cmd (updated 03-May-09) to automatically download and slipstream a standard Windows XP boot disk with Service Pack 2 and all post-SP3 security hotfixes.
It uses wget or curl (if either are found in the PATH), or your installed browser to download the updates. I have tested this with Internet Explorer, Firefox, and Opera. Other browsers should work, as well. The batch file xpsp3local.cmd (updated 03-May-09) will update the copy of Windows XP that is installed on the computer you run the command on. You may wish to do this, if you do not have, or want, the machine you want to hotfix connected to the internet, or if you are unable to run Windows Update for some reason (for example, if Internet Explorer isn't installed, or doesn't work properly, due to a virus or similar mishap). To slipstream the hotfixes, and burn the slipstreamed disk, I've created the makefile xpsp3.mak (updated 03-May-09). Details on usage below.Automatically changing screen positions and default printer based upon my location
Submitted by ross on Sat, 02/28/2009 - 14:55Here's my startup.cmd script I wrote to automatically change thr screen positions, and the default printer, whenever I change locations. I place this in the directory C:\WINDOWS\system32\repl\import\scripts, so it will be executed automatically when I login. It uses res_set to change the screen locations and resolutions.
@echo off set scriptdir=%~dp0 pushd "%scriptdir%" >nul if not "%1" == "" (set location=%1) else (set location=) if not "%location%" == "" goto found ipconfig | findstr "Gateway" | findstr "10\.0\.0\.1" >nul if not errorlevel 1 set location=home ipconfig | findstr "Gateway" | findstr "192\.168\.1\.1" >nul if not errorlevel 1 set location=work ipconfig | findstr "Gateway" | findstr "192\.168\.3\.1" >nul if not errorlevel 1 set location=work2 if not "%location%" == "" goto found echo Cannot determine location. popd >nul exit /b 1 :found echo Configuring system for %location%... goto %location% :home res_set -m 0 -w 1920 -h 1200 -b 32 -x 0 -y 0 res_set -m 2 -w 1920 -h 1200 -b 32 -x 0 -y -1200 cscript /nologo /b "SetDefaultPrinter.vbs" "hp LaserJet 1320 PCL 6 (home)" goto eos :work res_set -m 0 -w 1920 -h 1200 -b 32 -x 0 -y 0 res_set -m 1 -w 1920 -h 1200 -b 32 -x -1920 -y -120 cscript /nologo /b "SetDefaultPrinter.vbs" "HP LaserJet 2100 PCL6 (work)" goto eos :work2 cscript /nologo /b "SetDefaultPrinter.vbs" "HP LaserJet 1020 (work2)" goto eos :eos popd >nul exit /b 0
Here's the SetDefaultPrinter.vbs script:
dim WshNetwork
dim sout
dim oFS
const StdOut = 1
set oFS = CreateObject("Scripting.FileSystemObject")
set sout = oFS.GetStandardStream(StdOut)
sout.Write "Changing default printer to: " + Wscript.arguments.Item(0)
set WshNetwork = WScript.CreateObject("WScript.Network")
WshNetwork.SetDefaultPrinter Wscript.arguments.Item(0)
- ross's blog
- Login or register to post comments
si_installer 1.13 has been released (announcement)
Submitted by ross on Thu, 01/01/2009 - 10:59Details at http://smithii.com/si_installer.
This seemingly duplicate entry has been created as some RSS readers, such as Google Reader, do not display updates to existing blog entries, even if the update date was changed. This entry will be deleted in a week or so. Therefore, please do not post comments to this entry. Post them to the above URL instead. Thanks!
- ross's blog
- Login or register to post comments
How to generate OpenSSL keys for Apache for Windows
Submitted by ross on Wed, 10/31/2007 - 20:09I recently downloaded http://www.apache.org/dist/httpd/binaries/win32/apache_2.2.6-win32-x86-openssl-0.9.8e.msi from http://www.apache.org/dist/httpd/binaries/win32/, but found no easy way to generate the proper OpenSSL keys, to use the HTTPS protocol, so I wrote this little script:
@echo off if not defined apache_dir set apache_dir=C:\Program Files\Apache Software Foundation\Apache2.2 if not defined apache_conf_dir set apache_conf_dir=%apache_dir%\conf if not defined openssl_conf set openssl_conf=%apache_conf_dir%\openssl.cnf if not defined openssl_opts set openssl_opts=-config "%openssl_conf%" if not defined openssl set openssl=%apache_dir%\bin\openssl.exe if not exist "%apache_dir%" ( echo Directory not found: "%apache_dir%" goto :eof ) if not exist "%apache_conf_dir%" ( echo Directory not found: "%apache_conf_dir%" goto :eof ) if not exist "%openssl_conf%" ( echo File not found: "%openssl_conf%" goto :eof ) if not exist "%openssl%" ( echo File not found: "%openssl%" goto :eof ) pushd "%apache_conf_dir%" "%openssl%" req %openssl_opts% -new -out server.csr || goto :eof "%openssl%" rsa -in privkey.pem -out server.key || goto :eof "%openssl%" x509 -in server.csr -out server.crt -req -signkey server.key -days 3650 popd
then I added the following to the end of my httpd.conf, and I was off an running:
LoadModule ssl_module modules/mod_ssl.so <IfModule ssl_module> Listen 443 NameVirtualHost *:443 SSLRandomSeed startup builtin SSLRandomSeed connect builtin AddType application/x-x509-ca-cert .crt AddType application/x-pkcs7-crl .crl SSLPassPhraseDialog builtin SSLSessionCache "shmcb:C:/Program Files/Apache Software Foundation/Apache2.2/logs/ssl_scache(512000)"
- ross's blog
- Login or register to post comments
- Read more
res_set 1.5 has been released (09-Sep-07)
Submitted by ross on Wed, 09/26/2007 - 21:42dskwipe 0.3 has been released
Submitted by ross on Tue, 04/10/2007 - 10:00attr 1.4 has been released
Submitted by ross on Fri, 03/02/2007 - 07:00path_set 1.3 has been released
Submitted by ross on Sat, 11/11/2006 - 01:18I tried setx, and other environmental editors, but none did everything I wanted. Some would change the value from REG_EXPAND_SZ to REG_SZ. Other's wouldn't let me add a REG_EXPAND_SZ variable such as %ProgramFiles%.
So I wrote path_set.
Here's the changelog.txt:
- ross's blog
- Login or register to post comments
- Read more
regdelta 0.2 has been released
Submitted by ross on Wed, 11/08/2006 - 20:00I created regdelta to provide an automated way to produce .reg files of changes made when installing or running applications.
You can download the binary here and the binary with the source code here. The program includes a complete test suite. Using it, I even discovered a few anomolies with the Microsoft tools regedit, and reg. Here's the changelog:nirsoft_installer 1.34 has been released (announcement)
Submitted by ross on Mon, 01/01/2001 - 10:56Details at http://smithii.com/nirsoft_installer.
This seemingly duplicate entry has been created as some RSS readers, such as Google Reader, do not display updates to existing blog entries, even if the update date was changed. This entry will be deleted in a week or so. Therefore, please do not post comments to this entry. Post them to the above URL instead. Thanks!
- ross's blog
- Login or register to post comments
seterlvl 1.1 has been released
Submitted by ross on Thu, 11/23/2006 - 18:20seterlvl is a very simple utility to set the errorlevel on the command line.
You can download the binary here and the binary with the source code here. Here's the readme.txt:- ross's blog
- Login or register to post comments
- Read more
