S
Sash
I have hundreds of CDs where I need to copy images from a directory on the CD
to a drive on my computer. The structure on the CD is always as listed below
where SNum is an internal number that changes. I currently have a form where
the person would key in the SNum and I'm trying to copy all TIF files from
that directory to D: and rename with the file name and SNum. Any suggestions
would be greatly appreciated. The following is returning nothing for the
strFileName.
Dim strPath, strFileName, strFullPath, strFile As String
strPath = "E:\" & Me!SNum & "\DATAGRP\" & Me!SNum & "\IMG1\"
strFileName = Dir(strPath & "*.tif")
strFile = Left(strFileName, 8)
Do While Len(strFileName) > 0
strFullPath = strPath & strFileName
FileCopy strFullPath, "D:\HIM\Images\" & strFile & Me!SNum &
".tif"
Loop
to a drive on my computer. The structure on the CD is always as listed below
where SNum is an internal number that changes. I currently have a form where
the person would key in the SNum and I'm trying to copy all TIF files from
that directory to D: and rename with the file name and SNum. Any suggestions
would be greatly appreciated. The following is returning nothing for the
strFileName.
Dim strPath, strFileName, strFullPath, strFile As String
strPath = "E:\" & Me!SNum & "\DATAGRP\" & Me!SNum & "\IMG1\"
strFileName = Dir(strPath & "*.tif")
strFile = Left(strFileName, 8)
Do While Len(strFileName) > 0
strFullPath = strPath & strFileName
FileCopy strFullPath, "D:\HIM\Images\" & strFile & Me!SNum &
".tif"
Loop