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

Simple File Operations

Simple question.  I remember back in the days of DOS when you could simple type "file1+file2+...+file(n) = FILE(1 to n)" to copy a bunch of files into one combined file.  Being new to Visual Basic I was wondering if a similar funtion or command exits.  Thanks.
0
unknowing
Asked:
unknowing
  • 3
  • 2
1 Solution
 
tstrobCommented:
Just use this simple DOS-Command within the shellcommand of VisualBasic:

shell("copy file1....")

0
 
unknowingAuthor Commented:
If you use the vbHide option, you won't see the DOS box.

shell("copy file1....", vbHide)
0
 
clifABBCommented:
shell("copy file1+file2+file3 filedest", vbHide)

Would append file2 and file3 to file1 and copy into filedest.
0
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 
clifABBCommented:
Excuse my ignorance, but if I have 3 files then all I have to do to combine them is to type:

shell("file1+file2+file3 FILE(1 to 4)", vbHide)

Is that it?  Can you recommend any good material on this 'shell'?
Thanks.
0
 
unknowingAuthor Commented:
Thanks alot clifABB!  
0
 
unknowingAuthor Commented:
With shell-command you can start any action, that is available from DOS-prompt
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

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