batch file commands

  I would like to perform some old dos batch file type commands like MAKE DIRECTORY and COPY FILES. How can this be done using VB4 16 bit?
ralphyAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

deightonprogCommented:
In these two cases use VB ie

MkDir and FileCopy

Also You could make a .bat on the file with

open "temp.bat" for output as #1
print #1,"mkdir MYDIR"
close 1

shell "temp.bat"
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
ralphyAuthor Commented:
I don't quite understand your answer. How do I use VB and Mkdir & Filecopy. Are those functions? Are they part of the Common Dialog? I would rather stay within VB rather than shelling to a Batch file.
0
deightonprogCommented:
They are functions you can use within the VB 16 bit language.  Here's a quick example

MkDir "a:\test"
FileCopy "c:\autoexec.bat", "a:\test\example.txt"


Have you got the VB help files?  They should be in your help/manuals.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Visual Basic Classic

From novice to tech pro — start learning today.