K
kev100 via AccessMonster.com
I've got a button on a form that, when clicked, needs to copy all the files
from a certian directory on the network to the local drive.
There is a text box on that form that contains the Name of the Network
Directory in which those files are stored.
The below code is the EVENT in the button's OnClick:
Dim CopyCmd As String
CopyCmd = "xcopy F:\NameData\" & [Forms]![MyForm]![DirTxtBox] & "\*.* /y
C:\LocalNameData\"
Shell Environ$("COMSPEC") & " /k " & CopyCmd
This works fine.....all files are copied (there are usually about 3) from the
network to the local drive.
However, while the CMD window does remain open (with the /k switch) it is
Minimized at the bottom.
It needs to not only remain open....but to be On TOP. The user needs to see
which files copied (if any). Sometimes there is a problem copying the files..
.and the user needs that visual feedback.
If there is some other way (like in a regular Windows GUI pop-up window)....
to provide this visual feedback of the files copied.....that would be fine
too.
Any advice appreciated.
THANKS
from a certian directory on the network to the local drive.
There is a text box on that form that contains the Name of the Network
Directory in which those files are stored.
The below code is the EVENT in the button's OnClick:
Dim CopyCmd As String
CopyCmd = "xcopy F:\NameData\" & [Forms]![MyForm]![DirTxtBox] & "\*.* /y
C:\LocalNameData\"
Shell Environ$("COMSPEC") & " /k " & CopyCmd
This works fine.....all files are copied (there are usually about 3) from the
network to the local drive.
However, while the CMD window does remain open (with the /k switch) it is
Minimized at the bottom.
It needs to not only remain open....but to be On TOP. The user needs to see
which files copied (if any). Sometimes there is a problem copying the files..
.and the user needs that visual feedback.
If there is some other way (like in a regular Windows GUI pop-up window)....
to provide this visual feedback of the files copied.....that would be fine
too.
Any advice appreciated.
THANKS