[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

VB call execute file

Posted on 2006-05-01
6
Medium Priority
?
197 Views
Last Modified: 2010-05-01
HI,
  I have an execute file which was written in C++;  When I run the program in command line, I type

c:\enc abc.txt enc_abc.txt          'encoding processin

c:\dec enc_abc.txt abc.txt         'decoding process

but I got a lots of text file to be encoded and decoded.

Is it possible to use VB to create an interface and let user select all the file and call the external exe file to do the process in batch?
0
Comment
Question by:goretti
  • 3
  • 3
6 Comments
 
LVL 9

Expert Comment

by:pradapkumar
ID: 16583148
Yes.
You need keep all the files which are all encoded in to a single directory.
Then, Using VB & directory list box control let the user to select the directory.
Using that direcotry you can browse all the files in it by using File List box control.
using a loop you can call ur executable and encode/decode your files.

calling executable using shell command will be look like

Shell "c:\enc " & strSourceFileName & " " & strTargetFileName

Using the above snippet and a loop you can encode more than one file at a time (asynchronously).

0
 
LVL 9

Accepted Solution

by:
pradapkumar earned 120 total points
ID: 16583160
0
 

Author Comment

by:goretti
ID: 16583302
Yes finally I did it myself
0
Technology Partners: 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!

 

Author Comment

by:goretti
ID: 16583305
0
 

Author Comment

by:goretti
ID: 16583552
hi
but seems got a problem
i can run it propoerly in DOS but fail to call out

anything wrong?
0
 
LVL 9

Expert Comment

by:pradapkumar
ID: 16584725
for which question u r asking? 4 current one or 4 linked question???
0

Featured Post

Industry Leaders: 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!

Question has a verified solution.

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

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…
This article describes some techniques which will make your VBA or Visual Basic Classic code easier to understand and maintain, whether by you, your replacement, or another Experts-Exchange expert.
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…
Suggested Courses
Course of the Month19 days, 21 hours left to enroll

872 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