S
-Steve-
I have a macro that runs fine on local workstations, but fails if run in
terminal services. Here is the code:
Sub test()
With Application.FileSearch
.LookIn = "s:\cms\"
.Filename = "*.*"
MsgBox "There were " & .FoundFiles.Count & _
" file(s) found."
For i = 1 To .FoundFiles.Count
MsgBox .FoundFiles(i)
Next i
End With
End Sub
When run on the workstation it returns a list of files in the directory.
When run in Terminal Services it always says there's zero files.
terminal services. Here is the code:
Sub test()
With Application.FileSearch
.LookIn = "s:\cms\"
.Filename = "*.*"
MsgBox "There were " & .FoundFiles.Count & _
" file(s) found."
For i = 1 To .FoundFiles.Count
MsgBox .FoundFiles(i)
Next i
End With
End Sub
When run on the workstation it returns a list of files in the directory.
When run in Terminal Services it always says there's zero files.