Advertisement

01.15.2007 at 11:44AM PST, ID: 22123323
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

VBA Shell command to Call batch File

Tags: vba, shell, excel, file, batch
I have an Excel VBA macro which I am trying to get to run a batch file.

My code so far appears to open the dos window and immediately close it.  The batch file does not appear to run.

As you can see below I have tried several different methods with little success.  Here's my code:

Option Explicit

Public ceta_environment As String
'
Sub Run_CETA()

'Dim RetVal As Variant
'Dim intReturn As Long

    Sheets("jar list").Select
    ceta_environment = Range("C2").Value & "\launchCeta.bat"
    Sheets("Control Panel").Select
    'Call Shell(Environ$("COMSPEC") & "p:", 1)
    'Call Shell(Environ$("COMSPEC") & "ceta_environment", vbNormalFocus) '" /c  ceta_environment", vbNormalFocus)
        'RetVal = Shell(pathname:="P:\icat-pm-dev(1-10-07a)" & "\launchCeta.bat", windowstyle:=vbMaximizedFocus)
       
    'Call Shell(Environ$("P:\icat-pm-qa(1-10-07a)\launchCeta.bat") & "P:\icat-pm(1-10-07a)\launchCeta.bat", vbHide)
   
    'Call Shell "cmd p:" & " P:\icatpm-070110\launchCeta.bat"
    'Shell "cmd ""run P:\icatpm-070110\launchCeta.bat"""
    Shell "P:\icatpm-070110\launchCeta.bat", vbMinimizedNoFocus

   
End Sub

your help is greatly appreciated!
Start your free trial to view this solution
Question Stats
Zone: Software
Question Asked By: owntor
Solution Provided By: JonMny
Participating Experts: 3
Solution Grade: A
Views: 537
Translate:
Loading Advertisement...
01.15.2007 at 11:45AM PST, ID: 18318532

Rank: Master

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
01.15.2007 at 11:51AM PST, ID: 18318588

Rank: Genius

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
01.15.2007 at 12:58PM PST, ID: 18319219

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
01.15.2007 at 01:00PM PST, ID: 18319233

Rank: Master

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
01.15.2007 at 01:39PM PST, ID: 18319561

Rank: Genius

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
01.16.2007 at 08:00AM PST, ID: 18324874

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
01.16.2007 at 08:38AM PST, ID: 18325243

Rank: Master

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
01.16.2007 at 09:52AM PST, ID: 18325941

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
01.16.2007 at 09:53AM PST, ID: 18325952

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
01.16.2007 at 10:00AM PST, ID: 18326010

Rank: Master

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
01.17.2007 at 07:07AM PST, ID: 18332619

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
01.17.2007 at 07:08AM PST, ID: 18332637

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
01.17.2007 at 09:30AM PST, ID: 18334082

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
01.18.2007 at 06:49PM PST, ID: 18346656

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
01.18.2007 at 07:13PM PST, ID: 18346710

Rank: Master

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
01.19.2007 at 06:14AM PST, ID: 18349100

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
01.19.2007 at 02:41PM PST, ID: 18353137

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
01.19.2007 at 02:44PM PST, ID: 18353156

Rank: Master

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
01.19.2007 at 02:46PM PST, ID: 18353170

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
01.19.2007 at 08:25PM PST, ID: 18354491

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
 
Loading Advertisement...
20080236-EE-VQP-29