It seems to work fine
Code:
Option Strict On
Option Infer Off
Imports System.IO
Imports System.Collections.Generic
Imports System.Linq
Public Class Form1
Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
Dim counter1 As Integer = My.Computer.FileSystem.SpecialDirectories.Temp.Count
MsgBox("Number of files is : " & counter1)
End Sub
Private Sub Form1_Load(sender As Object, e As EventArgs) Handles MyBase.Load
End Sub
End Class
But why isn't UserProfile and Windows Property Not Working?