Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 712579
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T04:51:50+00:00 2026-05-14T04:51:50+00:00

dim shell,x,y x=D:\d y=c.bat & x set shell=createobject(wscript.shell) shell.run y shell.run a.bat set shell=nothing

  • 0
dim shell,x,y  
x="D:\d"  
y="c.bat " & x  
set shell=createobject("wscript.shell")  
shell.run y  
shell.run "a.bat"  

set shell=nothing  

When I run this script it runs both batch files simultaneously. What I need is that it run the first batch file(c.bat) and after it is completely executed, it should execute the other batch file(a.bat).
What I need works fine if I make another batch file and use:

call c.bat  
call a.bat
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-14T04:51:50+00:00Added an answer on May 14, 2026 at 4:51 am

    Try this:

    
    shell.run y, 1, true
    shell.run "a.bat", 1, true
    
    

    for details:
    http://msdn.microsoft.com/en-us/library/d5fk67ky(VS.85).aspx

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Hey i want to run this part: Dim objShell Set objShell = WScript.CreateObject (WScript.shell)
x=D:\d y=ehgfh button onclick=zips (x,y) id=button1 name=button1>clickme</button> function zips(x,y) alert(y) dim shell,z z=c.bat &
I am using the following code to call a batch file: dim shell set
I'm trying to write a VBScript (.vbs) script that uses the WScript.Shell Run() method,
This script is supposed to open both Windows shell Status and Properties dialogs of
Lets say i have this in a shell chdir * && whoami.exe >> $$$
I am trying to execute the shell script in vb.net. Shell(C:\Program Files\NCBI\blast-2.2.25+\bin\similarity\blastn -query test.fasta
Dim MyQuery = From c In xdoc.Descendants() _ Where c.Attribute(OriginY) IsNot Nothing _ Order
I am try to run the go.bat from VB but when I run the
I am trying to run a shell function to open a file using Notepad.exe

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.