EdwardMartinIII
Technical User
I have a form. The form has one button, labeled "Include a file...".
I would like to be able to have the User click that button. A "Browse for file" window pops open and lets 'em select some file from their hard drive. When they click "Accept", the browse window closes and my code copies the file they selected to a completely different location somewhere on the network (a special location that never changes), changing the name of the file by appending some fabricated suffix to the front of it.
For example, you browse to the file "ErrorTracking.psd" on your desktop. After you press "Accept", your file still exists, but a COPY of it also exists in a network drive called "Arc20030117a_ErrorTracking.psd". And I'll pop up a little notice window after the copy is complete, reading "File copied!"
I'm thinking
but I have no idea how I'd browse to populate SourceFile...
Advice?
Thanks!
Edward "Do not read this sentence."
I would like to be able to have the User click that button. A "Browse for file" window pops open and lets 'em select some file from their hard drive. When they click "Accept", the browse window closes and my code copies the file they selected to a completely different location somewhere on the network (a special location that never changes), changing the name of the file by appending some fabricated suffix to the front of it.
For example, you browse to the file "ErrorTracking.psd" on your desktop. After you press "Accept", your file still exists, but a COPY of it also exists in a network drive called "Arc20030117a_ErrorTracking.psd". And I'll pop up a little notice window after the copy is complete, reading "File copied!"
I'm thinking
Code:
Dim SourceFile, DestinationFile
SourceFile = "SRCFILE" ' Define source file name.
DestinationFile = "SampleCopy" ' Define target file name.
FileCopy SourceFile, DestinationFile ' Copy source to target.
but I have no idea how I'd browse to populate SourceFile...
Advice?
Thanks!
Edward "Do not read this sentence."