Re: Wrapped application directory oddity




"Melissa Schrumpf" <m_schrumpf_at_yahoo_com_NOT@xxxxxxxxxxxxx> wrote
in message
news:m_schrumpf_at_yahoo_com_NOT-E6B868.17282829062007@xxxxxxxxxxxxxxxxxxxxxxxxxxx
In article <mMchi.2140$Od7.623@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx>,
"Jeff Godfrey" <jeff_godfrey@xxxxxxxxx> wrote:

Any ideas on what would cause the botched paths under CGI?


"//?/D:WebHosting/..."

http://machinename/D:WebHosting

My guess is it is the method the web server uses to spawn the
subprocess.

Note that on windows, creating a new process can actually have *two*
arguments that define what executable is run, and they are used in
different ways.

Google CreateProcess(), find it at MSDN, and read the sections on
lpApplicationName and lpCommandLine for more info.

Melissa,

Thanks for the information. I'll study the info that you've provided.
I guess my next questions would be:

1. Why did [pwd] return a different path (and more expected) format
than the other commands? I assume it must retrieve its info
differently at the 'C' level?
2. Does this indicate a problem in some of the mentioned commands in
this circumstance? If nothing else, shouldn't the format of the
return value be the same for all commands in question?
3. Ultimately, I'm trying to programmatically determine the absolute
path to the CGI exe itself - so I can access a config file that will
sit beside it. I guess I can repair the return value of [info
executable] in this case, but still wonder if these results are
expected? Perhaps I should be filing a bug report?

Thanks for any additional input.

Jeff


.



Relevant Pages

  • Re: Is there a way to step debug the multiprocessing python program?
    ... Here is where 'multiprocessing' assembles the command line to spawn ... the subprocess (Windows version): ...
    (comp.lang.python)
  • Re: System Information Unavailable on XP Pro
    ... Bill, ... Open a Command Prompt window and enter the following commands, ... > You can see I'm multibooting, where WinXP is on partition ... >>> received the reply, "The Windows Management ...
    (microsoft.public.windowsxp.security_admin)
  • Re: Thanks Everyone
    ... All I was able to do was do simple dos commands, ... Windows hadn't loaded, I was hoping I was in the Command Prompt and that I ...
    (microsoft.public.windowsxp.general)
  • Re: [opensuse] RPM Question
    ... of the disks, and what files are stored on what disks, could ... put the commands in shell scripts (think of .bat files, ... packages on my windows machine here at work. ... an internet connection to open up and process an RPM file? ...
    (SuSE)
  • Re: Thanks Everyone
    ... To be very polite Malke, I had already googled, searched Microsoft's ... All I was able to do was do simple dos commands, ... Windows hadn't loaded, I was hoping I was in the Command Prompt and that I ...
    (microsoft.public.windowsxp.general)