Solved

vb12 cannot find file that is there!!

Posted on 2013-12-02
2
283 Views
Last Modified: 2013-12-08
Hi Experts,

The following code

       If My.Computer.FileSystem.FileExists("c:\windows\system32\drivers\agp447.sys") Then
            MsgBox("File found.")
        Else
            MsgBox("File not found.")
        End If
        End

always messages " FILE NOT FOUND "....but the file is there! I put it!

How can I make it detect it there? in that particular path?
It used to work properly for many years until yesterday that I installed AVG PC TUNEUP and already uninstalled it but even then..

Also used attrib "c:\Windows\system32\drivers\agp447.sys"
and it says it has only atribute 'a'

using it in several win7 stations.... that are still working good...
only this pc is giving me the problema but  I am afraid it may start appearing in the rest.
Regards,
0
Comment
Question by:rguillermo
2 Comments
 
LVL 19

Accepted Solution

by:
Peter Hutchison earned 500 total points
ID: 39691296
Try changing the condition to File.Exists(c:\Windows\system32\drivers\agp447.sys") which should work in .NET code
0
 

Author Closing Comment

by:rguillermo
ID: 39704371
Thank you!!
0

Featured Post

How Do You Stack Up Against Your Peers?

With today’s modern enterprise so dependent on digital infrastructures, the impact of major incidents has increased dramatically. Grab the report now to gain insight into how your organization ranks against your peers and learn best-in-class strategies to resolve incidents.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Creating an analog clock UserControl seems fairly straight forward.  It is, after all, essentially just a circle with several lines in it!  Two common approaches for rendering an analog clock typically involve either manually calculating points with…
For most people, the WrapPanel seems like a magic when they switch from WinForms to WPF. Most of us will think that the code that is used to write a control like that would be difficult. However, most of the work is done by the WPF engine, and the W…
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…
This video shows how to use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.

820 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question