Making sure a file really is there
-
Is there some part of the .NET framework that allows me to check to make sure a file is there? To be more specific, I need to make sure a shortcut is there. Any ideas?
if system.io.file.exists(path as string) = true then 'it exists end if
You can do the same with a directory.Please check out my articles: The ANZAC's articles
-
if system.io.file.exists(path as string) = true then 'it exists end if
You can do the same with a directory.Please check out my articles: The ANZAC's articles
-
OpenFileDialog?
A guide to posting questions on CodeProject[^]
Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
2006, 2007 -
OpenFileDialog?
A guide to posting questions on CodeProject[^]
Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
2006, 2007 -
You'll have to explain what you mean by "automatically navigate to a file"??
A guide to posting questions on CodeProject[^]
Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
2006, 2007 -
You'll have to explain what you mean by "automatically navigate to a file"??
A guide to posting questions on CodeProject[^]
Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
2006, 2007 -
In code, tell it to go to %USERPROFILE%\Desktop\. I am trying to put an icon on the desktop without using a special installer.
Environment.SpecialDirectory, from memory, is how you get paths to things like the desktop.
Christian Graus - Microsoft MVP - C++ "I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
-
In code, tell it to go to %USERPROFILE%\Desktop\. I am trying to put an icon on the desktop without using a special installer.
List of special folders: 0 Desktop 2 Programs 5 Personal 6 Favorites 8 Recent 9 SendTo 11 StartMenu 13 MyMusic 16 DesktopDirectory 17 MyComputer 26 ApplicationData 28 LocalApplicationData 32 InternetCache 33 Cookies 34 History 35 CommonApplicationData 37 System 38 ProgramFiles 39 MyPictures 43 CommonProgramFiles This will get you the user's desktop: Environment.GetFolderPath(Environment.SpecialFolder.DeskTop)