IN VB6 DOING A SHELL TO DOS LIKE SHELL"XCOPY DTA.DAT DTA.BAK" AUTOCLOSE DOSBOX

I use a shell "xcopy test.lnk c:\windows\desktop " if user misses a shortcut
Because I don't want him to see this I also don't want him to do the work to close the
dosbox after the copy command
How to set in VB after any dos-call-shell the used box to auto-close
BIAPROAsked:
Who is Participating?
 
vinnyd79Connect With a Mentor Commented:
Private Sub Command1_Click()
Shell Environ("ComSpec") & " /c xcopy test.lnk c:\windows\desktop", vbHide
End Sub
0
 
BIAPROAuthor Commented:
Perfect!, this way I can do a lot off housekeeping (still in dos) while users is unaware,
Thanks Jack Biapro
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.