www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - link.exe windows

reply Ant <Ant_member pathlink.com> writes:
does link.exe 
support directory names with spaces? How?

Ant
Nov 12 2004
parent reply Joey Peters <Joey_member pathlink.com> writes:
In article <cn2k3a$k09$1 digitaldaemon.com>, Ant says... 
 
does link.exe
support directory names with spaces? How? 
 
Ant 
I think not, but try quotes or replacing spaces with %20? Maybe even use the old DOS naming, Adirxxx~1 etc.
Nov 12 2004
parent reply Ant <Ant_member pathlink.com> writes:
In article <cn2lom$m3o$1 digitaldaemon.com>, Joey Peters says...
In article <cn2k3a$k09$1 digitaldaemon.com>, Ant says... 
 
does link.exe
support directory names with spaces? How? 
 
Ant 
I think not, but try quotes or replacing spaces with %20? Maybe even use the old DOS naming, Adirxxx~1 etc.
yeah, quotes didn't work. I doubt %20 but I'll try it. thanks. Ant
Nov 12 2004
parent reply Ant <duitoolkit yahoo.ca> writes:
On Fri, 12 Nov 2004 16:17:29 +0000, Ant wrote:

 In article <cn2lom$m3o$1 digitaldaemon.com>, Joey Peters says...
In article <cn2k3a$k09$1 digitaldaemon.com>, Ant says... 
 
does link.exe
support directory names with spaces? How? 
 
Ant 
I think not, but try quotes or replacing spaces with %20? Maybe even use the old DOS naming, Adirxxx~1 etc.
yeah, quotes didn't work. I doubt %20 but I'll try it. thanks. Ant
no, %20 doesn't seem to work. DOS naming doesn't seem valid to me. looks like spaces are out. how nice: the users home directory is "\Documents and Settings\....." but we can't use it. I despair... \|||/ O x | ~~~ well, back to the strugle... Ant
Nov 12 2004
parent Charles <Charles_member pathlink.com> writes:
DOS naming works, win32's GetShortPathName is what you need.

a simple C++ func :


inline string shortPathName(const string& path ) {
char buffer[MAX_PATH+1];
GetShortPathName(path.c_str(),buffer,MAX_PATH+1);
return buffer;
}




In article <pan.2004.11.13.04.00.49.401118 yahoo.ca>, Ant says...
On Fri, 12 Nov 2004 16:17:29 +0000, Ant wrote:

 In article <cn2lom$m3o$1 digitaldaemon.com>, Joey Peters says...
In article <cn2k3a$k09$1 digitaldaemon.com>, Ant says... 
 
does link.exe
support directory names with spaces? How? 
 
Ant 
I think not, but try quotes or replacing spaces with %20? Maybe even use the old DOS naming, Adirxxx~1 etc.
yeah, quotes didn't work. I doubt %20 but I'll try it. thanks. Ant
no, %20 doesn't seem to work. DOS naming doesn't seem valid to me. looks like spaces are out. how nice: the users home directory is "\Documents and Settings\....." but we can't use it. I despair... \|||/ O x | ~~~ well, back to the strugle... Ant
Nov 13 2004