D
Darhl Thomason
I thought I was creating a simple little app, but it's kicking my butt right
now. I've searched the help and can't find enough to get me where I need to
be.
I'm creating a CD to distribute to my field personnel. The purpose of the
app is to copy some files from the CD to an obscure destination directory on
the machine. The destination directory can change on the target machine and
is identified as IcmPath. (IcmPath is populated elsewhere in the code).
The first problem is with the source. I have to explicitly name the files I
want to copy, but I would prefer to not so I don't have to recompile the app
everytime the source files change and a new CD is built.
So, as in my example below, when I specify the files to copy and run this,
it tells me that my destination directory already exists. But it will
always exist, it is put in place by the original software installation and
contains sub directories.
I guess I'm kind of confused about how to do this. Any help would be
appreciated!
Thanks,
Darhl
Private Sub cmdYes_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles cmdYes.Click
Source = "\files\pos.ico"
Dest = IcmPath & "\ICM\Package"
My.Computer.FileSystem.CopyFile(Source, Dest)
MsgBox("Files copied into " & IcmPath & "\ICM\Package")
End Sub
now. I've searched the help and can't find enough to get me where I need to
be.
I'm creating a CD to distribute to my field personnel. The purpose of the
app is to copy some files from the CD to an obscure destination directory on
the machine. The destination directory can change on the target machine and
is identified as IcmPath. (IcmPath is populated elsewhere in the code).
The first problem is with the source. I have to explicitly name the files I
want to copy, but I would prefer to not so I don't have to recompile the app
everytime the source files change and a new CD is built.
So, as in my example below, when I specify the files to copy and run this,
it tells me that my destination directory already exists. But it will
always exist, it is put in place by the original software installation and
contains sub directories.
I guess I'm kind of confused about how to do this. Any help would be
appreciated!
Thanks,
Darhl
Private Sub cmdYes_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles cmdYes.Click
Source = "\files\pos.ico"
Dest = IcmPath & "\ICM\Package"
My.Computer.FileSystem.CopyFile(Source, Dest)
MsgBox("Files copied into " & IcmPath & "\ICM\Package")
End Sub