valid filenames for shell functions? 
Author Message
 valid filenames for shell functions?

here's the problem: i wrote an app a while back to act as
a toolbar (similar to the old Office toolbar) for my
programs.  it retrieves paths from the registry for all
installed programs, then uses the shGetFileInfo function
in the win32 shell to retrieve the icon for that
program.  the thing is, the last app i've written has a
period in the assembly name. (ie. "...\NePAD.Net.exe")  i
COULD change the assembly name, but this would require
hundreds upon hundreds of code changes in that assembly
and others that use it...so i'd like to know if there's
any way i can format paths like that before passing them
to the shGetFileInfo function so that the function will
be able to get the icon.

any help would be GREATLY appreciated!
ben



Sat, 20 Aug 2005 22:18:25 GMT  
 valid filenames for shell functions?
Hi,

I'm not sure what type of format do you want to use on the path, but maybe
this Win32 function is useful for that purpose.
(watch for line break).
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/file...

Hope it helps.

VB .NET team.
--
This posting is provided "AS IS" with no warranties, and confers no rights.


Quote:
> here's the problem: i wrote an app a while back to act as
> a toolbar (similar to the old Office toolbar) for my
> programs.  it retrieves paths from the registry for all
> installed programs, then uses the shGetFileInfo function
> in the win32 shell to retrieve the icon for that
> program.  the thing is, the last app i've written has a
> period in the assembly name. (ie. "...\NePAD.Net.exe")  i
> COULD change the assembly name, but this would require
> hundreds upon hundreds of code changes in that assembly
> and others that use it...so i'd like to know if there's
> any way i can format paths like that before passing them
> to the shGetFileInfo function so that the function will
> be able to get the icon.

> any help would be GREATLY appreciated!
> ben



Wed, 24 Aug 2005 04:14:34 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. DOS wildcard, *, not valid with .FileName?

2. Valid Filenames?

3. Checking for valid filename

4. Detecting if a filename is a valid picture file

5. Converting an invalid filename to a valid one

6. check string as valid filename

7. API to test for valid filename?

8. Valid FileName

9. Shell Function not shelling under Windows NT.

10. Shell command and long filenames

11. Shell with filename as variable

12. Passing drive\dir\filename params to a DOS program via SHELL

 

 
Powered by phpBB® Forum Software