Re: Re: Problems with exec() on windows

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I've skimmed some of thread, but I have not been following closely so please
disregard if I'm just rambling.  However, I've worked with lots of software
on DOS boxen that couldn't handle long file names.  If they also choke on
the tildes then I usually just write a batch file that calls the full path
and file with whatever command line parameters I pass to the batch.

For example:
---

@echo off
C:\"Program Files\Mozilla Firefox\firefox.exe" %1 %2 %3

---
HTH,
G

On Fri, Mar 20, 2009 at 9:26 AM, haliphax <haliphax@xxxxxxxxx> wrote:

> On Fri, Mar 20, 2009 at 1:47 AM, Kyohere Luke <pr0f3t@xxxxxxxxx> wrote:
> > You might have something there - never really thought about how windows
> > forms the 8.3 names... & not many resources online about it ...
> >
> > The actual path is "c:\Program File\Gammu 1.23.91\bin\gammu.exe"
> > I'd used "c:\Progra~1\Gammu~1\bin\gammu.exe"
>
> You should be able to view these truncated path names via the "dir"
> command in a CMD.EXE command line. I say this because "Program Files"
> and "Programs" would collide with each other (just as an example); one
> would be Progra~1 and one would be Progra~2.
>
>
> --
> // Todd
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>

[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux