Solved

vb12 cannot find file that is there!!

Posted on 2013-12-02
2
278 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 18

Accepted Solution

by:
Peter Hutchison earned 500 total points
Comment Utility
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
Comment Utility
Thank you!!
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Wouldn’t it be nice if you could test whether an element is contained in an array by using a Contains method just like the one available on List objects? Wouldn’t it be good if you could write code like this? (CODE) In .NET 3.5, this is possible…
A theme is a collection of property settings that allow you to define the look of pages and controls, and then apply the look consistently across pages in an application. Themes can be made up of a set of elements: skins, style sheets, images, and o…
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…
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.

762 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now