Quantcast
Channel: VBForums - Visual Basic .NET
Viewing all articles
Browse latest Browse all 27350

Help with backing up a folder

$
0
0
I am trying to move a directory to another directory, here is the code:
My.Computer.FileSystem.CopyDirectory("C:\Users\User\Desktop\sections\login\login", "C:\Users\User\Desktop\back up\" + DateString + TimeString,
FileIO.UIOption.AllDialogs, FileIO.UICancelOption.ThrowException)

I have tried it without datestring + timestring and it works but once I inputted this into the program I got the error "The given path's format is not supported."

How do I work around this so that it saves in this directory with the file name being the date and time?

Viewing all articles
Browse latest Browse all 27350

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>