🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.nativeapi
Article #913

TILDE-ONE file names ?

#913
From: Mike K
Date: Wed, 12 Dec 2007 22:14
29 lines
1997 bytes
I have two instances of 8.3 filenames vexing me.

First: why does this call work:

r = spawnl(P_WAIT, "c:\\windows\\system32\\rundll32.exe", 
"c:\\windows\\system32\\rundll32.exe","C:\\PROGRA~1\\COMMON~1\\system\\OLEDB~1\\oledb32.dll,OpenDSLFile 
c:\\temp.udl",NULL);


but this one does not?

r = spawnl(P_WAIT, "c:\\windows\\system32\\rundll32.exe", 
"c:\\windows\\system32\\rundll32.exe","C:\\Program files\\Common 
Files\\system\\Ole DB\\oledb32.dll,OpenDSLFile c:\\temp.udl",NULL);

The 'old' "C" calls to spawnl can't handle arguments with embedded 
spaces in spite of the enclosing quotes?


Second:
I have an Activex Server EXE with a long filename 
("NMSService_AlarmService.exe") that displays its full name on the 
Processes tab on Windows Task Manager.  The same exe, when I load and 
run it on a customer machine, shows "NMSServ~1.exe" in the TM.  This is 
a problem for me because I have a suite of these services that all have 
long filenames that start with "NMSService_".  Is this a locale setting 
on the remote machine? Anyone have any idea? Thanks for any help.

Mike
Technical Details
Message-ID: <47605d31$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!feeder1-2.proxad.net!proxad.net!feeder1-1.proxad.net!feeder.news-service.com!newsfeed.freenet.de!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,d7e0ee90e3a8c37e,start
X-Google-Attributes: gid10cc67,public,usenet
X-Google-Language: ENGLISH,ASCII-7-bit
Date: Wed, 12 Dec 2007 16:14:10 -0600
From: Mike K <nospam@nospam.net>
User-Agent: Thunderbird 1.5.0.13 (Windows/20070809)
MIME-Version: 1.0
Newsgroups: borland.public.cppbuilder.nativeapi
Subject: TILDE-ONE file names ?
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: 74.38.241.126
Message-ID: <47605d31$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1197497649 74.38.241.126 (12 Dec 2007 14:14:09 -0700)
Lines: 29
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!feeder1-2.proxad.net!proxad.net!feeder1-1.proxad.net!feeder.news-service.com!newsfeed.freenet.de!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail