Getting started in VB

Jun 29, 2016 at 4:04 AM
Edited Jun 29, 2016 at 4:34 AM
I'm trying to resurrect a program I wrote to backup some relative's files that worked pretty well until some of them learned you could use an essay for a path name.

I'm having a little trouble getting the date/time stamp from files in VB2015. I used to grab the LastWriteTime to a string, and add it to a log, along with the filename.

Everything else seems pretty straightforward. I don't know why I'm having this problem. Probably something stupid.

Any help or even pity is appreciated.
Jun 29, 2016 at 4:13 AM
Do you have an example code that used to work and now seems to be quacked?
Jun 29, 2016 at 4:31 AM
Sorry, I don't. I didn't have much hope that I would even be able to get as far as I have, so I didn't back it up, and now I'm all screwed up.
Jun 29, 2016 at 6:00 AM
I just remembered what I used before I screwed it up. I used:

Dim var As System.IO.FileInfo
var=my.computer.FileSystem.GetFileInfo(filevar)
return var.LastWriteTime

I figured that wasn't going to work with long paths, so I tried to go with a fileinfo and failed badly, I'm all confused now. lol
Jun 29, 2016 at 6:12 AM
Edited Jun 29, 2016 at 6:26 AM
Never mind, I walked away for a bit, and came back with a clear head. I fixed it. I'm amazed how simple it was to switch code to Alphafs. Great product.