I wrote a fairly simple program (so I thought) at work to, among other things, move tiffs from one folder to another. Here is the part of the code where the actual moving is done:
...where dir is a valid location of a tiff image and dir2 is a valid, existing destination for the image to be moved to.
I know this operation works because it moves as many .jpg and .gif images as I want, but for some insanely odd reason does not move tiff images. I have even tried numerous extensions such as .tif, .tiff, .TIF, .TIFF
I am using VS 2008 in version 3.5 of the .NET Framework
Any suggestions so that I can make my tedious work easier? =)
VB.NET:
For x = 0 To arrText.Count() - 1
dir = imgLocBox.Text + "\" + arrText(x) + imgExtBox.Text
Dim fFile1 As New IO.FileInfo(dir)
dir2 = imgDestBox.Text + "\" + arrText2(x) + "\" + arrText(x) + imgExtBox.Text
fFile1.MoveTo(dir2)
Next
I know this operation works because it moves as many .jpg and .gif images as I want, but for some insanely odd reason does not move tiff images. I have even tried numerous extensions such as .tif, .tiff, .TIF, .TIFF
I am using VS 2008 in version 3.5 of the .NET Framework
Any suggestions so that I can make my tedious work easier? =)