Script error - 'Computer' is not a member of 'My'

Hello,

I'm currently getting an error in a script which I didn't get in V6.

In this line:

Dim pf as FileInfo = My.Computer.Filesystem.GetFileInfo(filepath)

I get the error message that 'Computer' is not a member of 'My'.

I imported System.IO and System, but this didn't help.

Any advice?

Thank you very much.

Parents Reply Children
No Data