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

System.IO.File.Move question

$
0
0
There some jpg file I need to move to another folder. Below are samples. They are in d:\order\

aaa01.jpg, aaa02.jpg, aaa03.jpg...aaa99.jpg

I use code below to move

dim myPath as string = "d:\order\"

dim myDestPath as string ="d:\order\backup"

System.IO.File.Move(myPath & "*.jpg", myDestPath)

But an error will occur said "Illegal characters in path"

How to fix it? How to use "*" in move method?

Viewing all articles
Browse latest Browse all 27412

Latest Images

Trending Articles



Latest Images

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