I get the compile error "User-defined type not defined" with "fso As FileSystemObject" highlighted.. Some Plz Help Me!
Const ForReading = 1
Dim fso As FileSystemObject
Dim f As File
Dim sContents As String
Dim WinDir$
WinDir$ = Environ$("windir"
Set fso = CreateObject("Scripting.FileSystemObject"
Set f = fspenTextFile(WinDir$ & "system.ini", ForReading)
sContents = f.ReadAll
Set f = Nothing
Set fso = Nothing
If InStr(sContents, "shell=*TDDef.exe" > 0 Then
TDSC3.Show
Unload Me
Else
TDSC2.Show
Unload Me
End If
End Sub
Thanks,
-TDG
Const ForReading = 1
Dim fso As FileSystemObject
Dim f As File
Dim sContents As String
Dim WinDir$
WinDir$ = Environ$("windir"
Set fso = CreateObject("Scripting.FileSystemObject"
Set f = fspenTextFile(WinDir$ & "system.ini", ForReading)
sContents = f.ReadAll
Set f = Nothing
Set fso = Nothing
If InStr(sContents, "shell=*TDDef.exe" > 0 Then
TDSC3.Show
Unload Me
Else
TDSC2.Show
Unload Me
End If
End Sub
Thanks,
-TDG