Re: Wrapped application directory oddity



Jeff Godfrey wrote:

I have a TclApp wrapped application running on a remote web server.
I'm trying to programmatically determine the absolute path of the
executable, but the usual suspects are returning odd results in this
case.

Specifically, the real path begins with: D:/WebHosting/...

....

[info nameofexecutable] and "$starkit::topdir" both return
"//?/D:WebHosting/..." The rest of the path is correct, but what's
with the odd leading chars and the missing slash after the drive
letter?

....

Running the same wrapped application on my local server (via command
line or cgi) returns valid results. I only see the strange results on
the remote system, so it seems to be related to the configuration of
that server.

What platforms are the two machines?

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

To me, that looks like a mix of filesystem conventions, perhaps not
traversing properly between UN*X and Windows.

\\MachineName\resource

Is a standard Windows convention for referring to remote shares,
and is present, though hidden, in many of the ways to which the local
machine may be referred:

\\localhost\resource
\\.\resource
\resource

See the COM port section of [open] for more details. IIRC, you can open
COM1 and COM2, but for, say, COM10, you have to specify \\.\COM10.
Named pipes (yes, WIndows has them, sorta) much in the same way.

"//?/" looks to me like a bad conversion of "\\.\"

As for the missing "/" after D:, that could be a similar poor
translation of filesystem syntax. Keep in mind, for example, that:

\\remotehost\C$

is a standard way to refer to the entire C drive share. Or, perhaps the
"/" just got lost in some bad assumption that there is always a leading
"/" in a filesystem path, so some routine somewhere has the first
instance replaced with "" when concatenating to form the complete path.

Pure conjecture, though.

--
MKS
.



Relevant Pages

  • [OT] Advocacy (was: "Re: Universal sound card?")
    ... Decided to install within windows on a laptop. ... emulation layer is used in between the Linux-native filesystem used by ... performance as it keeps the kernel busy translating the filesystem I/O ...
    (comp.os.linux.hardware)
  • Re: CONFIG_VFAT_FS_DUALNAMES regressions
    ... The patch only changes the values stored for new files created by ... A filesystem is intact when all of its metadata is intact. ... in a virtual machine I connected it to the windows update service to ... see if there had been updates to the old install images I had, ...
    (Linux-Kernel)
  • Re: Windows and Maildir
    ... Windows NT with NTFS has both file streams and extended ... > NT whose performance with large directories is better than that of FAT. ... And there won't be much of a difference between FAT and NTFS. ... because the problem is in the filesystem format and not in the ...
    (microsoft.public.win32.programmer.kernel)
  • Re: Install application non-Windows Folder
    ... the files you want (for example, if you mounted a flash-based filesystem to ... and you are a Windows Mobile OEM, you have a technical contact at Microsoft; ... I need ROM filesystem built into nk.bin to appear somewhere other than ... windows folder using Disk Image? ...
    (microsoft.public.windowsce.platbuilder)
  • Re: primary partitions
    ... | real partition (which doesn't hold a filesystem yet). ... :-) I don't use Windows myself, so I also don't wish to ... in FAT32 for both data and file sharing ...
    (comp.os.linux.hardware)