Hi!
30-Авг-2006 11:09 [EMAIL PROTECTED] (Diego Rodriguez) wrote to
[email protected]:
>> Do you already remove current truename(), as I suggest for you?
DR> No, _fullpath function isn't supported under TC 2.01 or TC++ 1.01
Then write your own. What the deal?
DR> But I did some testing on SUBSTed drives and seems to work, MOVEs files
DR> to real path, e.g.:
DR> C:\>SUBST E: C:\TMP\TEST
DR> E: => C:\TMP\TEST
DR> C:\>MOVE DATA\ E:\
DR> C:\DATA => C:\TMP\TEST\DATA
"
if path string is on a JOINed drive, the returned name is the one that
would be needed if the drive were not JOINed; similarly for a
SUBSTed, ASSIGNed, or network drive letter. Because of this, it is
_possible_ to get a qualified name that is not legal under the current
_combination_ of SUBSTs, ASSIGNs, JOINs, and network redirections
"
Let me suggest _possible_ scenario (with original MS tools and/or its
clones, like SSWAP, which swaps drive letters):
join d: c:\diskd
assign d:=a:
Now, if you try to copy c:\diskd\file, truename should return d:\file, but
this path now invalid (because D: drive letter now redirects to A:).
For example, on one of my computer real D: disk was replaced (by SSWAP)
by other driver letter. And this definitely mistakes, at least, NCACHE2.
So, better be safe, even if this requires replace one 15 lines of code
by another 20 lines of source code.
DR> I forgot to says this in my post: Thanks a lot for your help.
:)
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Freedos-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/freedos-devel