Creating batch file and Run

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • nagmvs
    New Member
    • Aug 2008
    • 49

    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.
  • vdraceil
    New Member
    • Jul 2007
    • 236

    #2
    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.

    Comment

    • nagmvs
      New Member
      • Aug 2008
      • 49

      #3
      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.

      Comment

      • QVeen72
        Recognized Expert Top Contributor
        • Oct 2006
        • 1445

        #4
        Hi,

        To Run batch file from VB6:

        AppActivate Shell("C:\MyBat File.bat")

        Regards
        Veena

        Comment

        Working...