Windows Develop Bookmark and Share   
 index > Windows Forms General > vb.net
 

vb.net

M developing windows aplication in vb.net.

Howcheck the selected file existed or not in the local system?

rajithanamoju  Friday, May 02, 2008 9:18 AM

Try following code

Code Snippet

If My.Computer.FileSystem.FileExists("PATH OF FILE") = True Then

'File Exists

Else

'File doesn't Exists

End If

Khanna Gaurav  Friday, May 02, 2008 2:07 PM
Suprotim Agarwal  Friday, May 02, 2008 11:29 AM

Hi,

Please elaborate on your requirement. Are you trying to move a file from one location to another using VB.NET?

HTH,
Suprotim Agarwal

Suprotim Agarwal  Friday, May 02, 2008 12:14 PM

Try following code

Code Snippet

If My.Computer.FileSystem.FileExists("PATH OF FILE") = True Then

'File Exists

Else

'File doesn't Exists

End If

Khanna Gaurav  Friday, May 02, 2008 2:07 PM

You can use google to search for other answers

Custom Search

More Threads

• Drawing on image with respecting alpha channel
• formatting numbers in DataGridview
• When I set NemericUpDown to read only the user can change its value !!
• how to do a code editor, use richtextbox?
• Regarding GroupBox expansion and collapse
• Using Propertygrid Collection Editor for editing Hashtables
• Future .NET framework features
• How do I reference project sound files when distributing?
• Why won't ErrorProvider work with a ToolStripComboBox?
• How to print the total number of pages on each page?