Help | Site Map
Connecting Tech Pros Worldwide
Reply
 
LinkBack Thread Tools
  #1  
Old September 5th, 2008, 07:34 AM
Member
 
Join Date: Aug 2008
Posts: 39
Default Creating batch file and Run

I want to create a batch file in Visual basic 6.0 and execute it thru ASP ,also I would like to get the output of the batch file to store in a variable and that is to be written in the web page.How can this be done? Pls reply.

Thanks in advance.
Reply
  #2  
Old September 5th, 2008, 05:06 PM
vdraceil's Avatar
Familiar Sight
 
Join Date: Jul 2007
Location: tamil nadu, INDIA
Age: 20
Posts: 187
Default

You can save the batch file coding in a text file and then rename it to .bat extension,thus creating a batch file-this can be made by vb6 easily.-i dunno the exact solution but this is my guess..i think this would work.
Reply
  #3  
Old September 6th, 2008, 05:46 AM
Member
 
Join Date: Aug 2008
Posts: 39
Default

Quote:
Originally Posted by vdraceil
You can save the batch file coding in a text file and then rename it to .bat extension,thus creating a batch file-this can be made by vb6 easily.-i dunno the exact solution but this is my guess..i think this would work.
Oh Thats fine.After creating the batch file how can we run that file.And also tell me how we attach the batch files to our project ?

Thanks,
Nagesh.
Reply
  #4  
Old September 6th, 2008, 08:12 AM
QVeen72's Avatar
Moderator
 
Join Date: Oct 2006
Location: Bangalore
Posts: 1,292
Default

Hi,

To Run batch file from VB6:

AppActivate Shell("C:\MyBatFile.bat")

Regards
Veena
Reply
Reply

Bookmarks

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over network members.
Post your question now . . .
It's fast and it's free

Popular Articles