Problem Moving .tiff Images - VS 2008

freyguy33

New member
Joined
Jan 21, 2009
Messages
1
Programming Experience
1-3
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:

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
...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? =)
 
It doesnt give an error messages at all?


Try just calling File.Move Method (System.IO) method with hard coded paths.. Does the file really not move, but no errors are thrown?

Note; if you've got this code somewhere:

VB.NET:
Try

  'routine to move tiff files

Catch ex As Exception

End Try

I *will* hit you with a big stick :)


ps; Regards tedious work of moving files, I found windows explorer does it pretty well. So does an app called xxcopy from pixelab, and also for renaming I use Renamer 6.0 by albert bertilsson
 
Back
Top