• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 158
  • Last Modified:

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?
  • 2
1 Solution
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"
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.
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.

Featured Post

The new generation of project management tools

With monday.com’s project management tool, you can see what everyone on your team is working in a single glance. Its intuitive dashboards are customizable, so you can create systems that work for you.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now