[osgeo4w-dev] Re: cd before run
andrea antonello
andrea.antonello at gmail.com
Thu Mar 31 11:09:16 EDT 2011
Ok, I already have a problem with this.
It doesn't work if the folder from which the application is launched
is different from C: (a user reported it).
In that case the changedir command won't end into the right folder.
So the idea would be to change it to:
c:
cd "%OSGEO4W_ROOT%\apps\udig-dev"
@start /B "BeeGIS" "udig_internal.exe" --launcher.ini beegis.ini %*
But in that case if someone installs on a disk different from c:, that
would not work also.
Is there a variable that tells me the disk in which the installation occurred?
So that I could do:
%DISK%:
cd "%OSGEO4W_ROOT%\apps\udig-dev"
@start /B "BeeGIS" "udig_internal.exe" --launcher.ini beegis.ini %*
Any other idea?
Thanks,
Andrea
On Thu, Mar 31, 2011 at 11:44 AM, andrea antonello
<andrea.antonello at gmail.com> wrote:
> Hi, for technical reasons I need to cd into the apps folder before
> exeecuting the application.
> I changed the startup script to do so as:
> cd "%OSGEO4W_ROOT%\apps\udig-dev"
> @start /B "BeeGIS" "udig_internal.exe" --launcher.ini beegis.ini %*
>
> it works. Just wondering if there is a more "windows" way to execute
> an application from within a path.
>
> Thanks,
> Andrea
>
More information about the osgeo4w-dev
mailing list