![]()
Just spend a few hours on a simple batch job issue 🙁
I had a job.cmd file I executed, but the containing commands was not executed as Windows could not locate the filename.exe files 😐 The problem was rather simple, the current directory (%cd%) while executing the job.cmd file was “c:windowssystem32”.. doh 🙁
Anyhow, found out that there is actually a simple way around this;
@Echo off
set IDP=%~dp0
set OLDDIR=%cd%
cd /d %IDP%
filename.exe /S
cd /d %OLDDIR%
This is rather simple, IDP (%IDP%) is set to the executing batch file’s directory via the IDP=%~dp0 and finally OLDDIR contain the ‘before’ current directory. If you need to set the %cd% at the end, well no probably not (but hey I’m a nice guy 😉 )..
For further details;
http://weblogs.asp.net/whaggard/archive/2005/01/28/get-directory-path-of-an-executing-batch-file.aspx
![]()
Heard about Solid State Disks? No!?, well then you’d better start googling..
Basically a solid state disk is a ram ‘replacement’ for the HDD, the idea is less power consumption and maybe improved performance. The problem is that HDD’s are cheap SSD is not (yet), however some clever ‘geeks’ in Japan has come up with a solution – a board that can host Compact Flash Ram modules and function as a SSD disk.. nice..
Read more;
http://www.comon.dk/index.php/news/show/id=35766
Manufacture is; http://www.century.co.jp/products/suto/sdb25cf.html
its available as both SATA and PATA although the SATA is the only one I have seen links to on western web-sites. But you can buy it directly from the manufacture, that is if your Japanese is better than mine 😉 http://www.century-direct.net/
