Home » U++ Library support » U++ Core » Symlink/Shortcut support
Re: Symlink/Shortcut support [message #24997 is a reply to message #24995] |
Sat, 06 February 2010 23:19   |
 |
mirek
Messages: 14256 Registered: November 2005
|
Ultimate Member |
|
|
koldo wrote on Sat, 06 February 2010 17:13 |
luzr wrote on Sat, 06 February 2010 19:40 |
koldo wrote on Sat, 06 February 2010 08:30 |
luzr wrote on Sat, 06 February 2010 13:20 | Like this:
bool FindFile::IsSymLink() const
{
String name = GetName();
if(GetFileExt(name) != ".lnk")
return false;
return !IsNull(GetSymLinkPath(AppendFileName(path, name)));
}
Mirek
|
Well. It is not the most efficient possible but it is very valid.
|
Why? System calls appear to be equivalent for the test and for obtaining the path.
Mirek
|
Hello Mirek
Being punctilious these is not necessary:
char fileW[_MAX_PATH] = {0};
psl->GetPath(fileW, _MAX_PATH, NULL, 0);
path = FromSystemCharset(fileW);
|
I have to admit I have only considered fudadmin code.
OK, I will change it...
Mirek
|
|
|
 |
|
Symlink/Shortcut support
By: koldo on Mon, 01 February 2010 08:02
|
 |
|
Re: Symlink/Shortcut support
By: mirek on Mon, 01 February 2010 14:42
|
 |
|
Re: Symlink/Shortcut support
By: koldo on Mon, 01 February 2010 15:49
|
 |
|
Re: Symlink/Shortcut support
|
 |
|
Re: Symlink/Shortcut support
By: koldo on Mon, 01 February 2010 16:24
|
 |
|
Re: Symlink/Shortcut support
By: fudadmin on Mon, 01 February 2010 21:40
|
 |
|
Re: Symlink/Shortcut support
By: mirek on Mon, 01 February 2010 22:29
|
 |
|
Re: Symlink/Shortcut support
By: mirek on Fri, 05 February 2010 10:22
|
 |
|
Re: Symlink/Shortcut support
By: mirek on Fri, 05 February 2010 10:25
|
 |
|
Re: Symlink/Shortcut support
By: koldo on Fri, 05 February 2010 11:42
|
 |
|
Re: Symlink/Shortcut support
By: mirek on Sat, 06 February 2010 12:49
|
 |
|
Re: Symlink/Shortcut support
By: mirek on Sat, 06 February 2010 13:20
|
 |
|
Re: Symlink/Shortcut support
By: koldo on Sat, 06 February 2010 14:30
|
 |
|
Re: Symlink/Shortcut support
By: mirek on Sat, 06 February 2010 19:40
|
 |
|
Re: Symlink/Shortcut support
By: koldo on Sat, 06 February 2010 23:13
|
 |
|
Re: Symlink/Shortcut support
By: mirek on Sat, 06 February 2010 23:19
|
 |
|
Re: Symlink/Shortcut support
By: mirek on Sat, 06 February 2010 23:26
|
Goto Forum:
Current Time: Sat May 03 15:00:13 CEST 2025
Total time taken to generate the page: 0.01745 seconds
|