Solved

Simple File Operations

Posted on 1998-06-02
6
202 Views
Last Modified: 2010-05-03
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
Comment
Question by:unknowing
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
6 Comments
 
LVL 1

Accepted Solution

by:
tstrob earned 50 total points
ID: 1462304
Just use this simple DOS-Command within the shellcommand of VisualBasic:

shell("copy file1....")

0
 

Author Comment

by:unknowing
ID: 1462305
If you use the vbHide option, you won't see the DOS box.

shell("copy file1....", vbHide)
0
 
LVL 6

Expert Comment

by:clifABB
ID: 1462306
shell("copy file1+file2+file3 filedest", vbHide)

Would append file2 and file3 to file1 and copy into filedest.
0
Revamp Your Training Process

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action.

 
LVL 6

Expert Comment

by:clifABB
ID: 1462307
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
 

Author Comment

by:unknowing
ID: 1462308
Thanks alot clifABB!  
0
 

Author Comment

by:unknowing
ID: 1462309
With shell-command you can start any action, that is available from DOS-prompt
0

Featured Post

On Demand Webinar: Networking for the Cloud Era

Ready to improve network connectivity? Watch this webinar to learn how SD-WANs and a one-click instant connect tool can boost provisions, deployment, and management of your cloud connection.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

There are many ways to remove duplicate entries in an SQL or Access database. Most make you temporarily insert an ID field, make a temp table and copy data back and forth, and/or are slow. Here is an easy way in VB6 using ADO to remove duplicate row…
I’ve seen a number of people looking for examples of how to access web services from VB6.  I’ve been using a test harness I built in VB6 (using many resources I found online) that I use for small projects to work out how to communicate with web serv…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…

690 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question