DeutschEspañolFrançaisItalianoNederlandsPortuguêsΕλληνικάРусскийالعربية中文(简体)中文(繁體)日本語한국어
 
Donate Bitcoins
Google
 
www smithii.com
 

Command Line Utilities

si_installer 1.18 has been released (announcement)

Details 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!

si_installer 1.18 has been released (announcement)

dskwipe 0.4 has been released on 25-Dec-12

dskwipe is a small Windows command line utility to securely wipe a disk's contents.

You can download the binary here and the binary with the source code here.
Previous versions can be found here.

Here's the changelog.txt:

nirsoft_installer 1.44 has been released (announcement)

nirsoft_installer 1.44 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!

nirsoft_installer 1.44 has been released (announcement)

dskwipe 0.4 has been released (announcement)

dskwipe 0.4 has been released. Details at http://smithii.com/dskwipe.

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!

dskwipe 0.4 has been released (announcement)

textpad_installer 1.8 has been released (announcement)

Details at http://smithii.com/textpad_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!

textpad_installer 1.8 has been released (announcement)

nirsoft_installer 1.43 has been released (announcement)

nirsoft_installer 1.43 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!

nirsoft_installer 1.43 has been released (announcement)

textpad_installer 1.7 has been released (announcement)

Details at http://smithii.com/textpad_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!

textpad_installer 1.7 has been released (announcement)

lsdsk 1.6 has been released (02-Oct-11)

I wrote lsdsk as I wanted a program to display all my drives, including local, network, and substituted drives, in one convenient display.

You can download the binary here and the source code here.

Here's the changelog:

nirsoft_installer 1.41 has been released (announcement)

nirsoft_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!

nirsoft_installer 1.41 has been released (announcement)

nirsoft_installer 1.35 has been released (announcement)

nirsoft_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!

nirsoft_installer 1.35 has been released (announcement)

aria2 1.3.3 for Windows has been released (updated 12-May-09)

aria2 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)

For 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

Here'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)

si_installer 1.13 has been released (announcement)

si_installer 1.13 has been released (announcement)

Details 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!

How to generate OpenSSL keys for Apache for Windows

I 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)"
Syndicate content
DeutschEspañolFrançaisItalianoNederlandsPortuguêsΕλληνικάРусскийالعربية中文(简体)中文(繁體)日本語한국어
 
Donate Bitcoins
Google
 
www smithii.com
 
Special thanks to Riester Rente Online for a generous donation!