PDA

View Full Version : File Checker - Help!


tamer1009
02-08-2009, 08:21 AM
Hello, i need a code to check of a file exist yes or no, like this:

if C:\Program Files\Test\testfile.dll exist then change text label1 to "ok"

if not then change test label1 to "error"


can some1 help me with this:)

ShadowUK
02-08-2009, 08:34 AM
if (File.DoesExist("C:\\Program Files\\Test\\testfile.dll")) then
Label.SetText("Label1", "OK");
else
Label.SetText("Label1", "Error");
end

Use the manual..