A bit of old news here, but it would seem I’m a journalist – cool 🙂 maybe I’ll demand a raise 😉
For more on why that is and why this is a good thing
http://www.tranism.com/weblog/2007/10/
After firmware upgrading my Sony Ericsson K800i I suddenly found myself unable to download Google Maps www.google.com/gmm which was very annoying as its quite a neat feature. The error code read “Invalid application”, and there was just nothing to do the errorcode came up every time not matter what..
it took a bit of debugging but the solution seemed to be in a post on the Google Maps Forum from a guy called Thorsten;
https://readmydamnblog.com/wp-content/uploads/2015/02/toplogo4.png00Mikehttps://readmydamnblog.com/wp-content/uploads/2015/02/toplogo4.pngMike2008-05-02 13:27:162008-05-02 13:27:16Google Maps for Sony K800i
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 😉 )..
Federal Judge Rules Bloggers Are Journalists
NewsGoogle Maps for Sony K800i
GadgetsAfter firmware upgrading my Sony Ericsson K800i I suddenly found myself unable to download Google Maps www.google.com/gmm which was very annoying as its quite a neat feature. The error code read “Invalid application”, and there was just nothing to do the errorcode came up every time not matter what..
it took a bit of debugging but the solution seemed to be in a post on the Google Maps Forum from a guy called Thorsten;
Read more
Batch job troubble (%~dp0)
Deployment, OS, ScriptingJust 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
http://technet2.microsoft.com/windowsserver/en/library/97731e49-ffa3-4918-87fb-5318743f29321033.mspx?mfr=true