run two processes in Command Prompt window

Microsoft OFFICE

    Sponsored Links


  • 1. How to access word files from excel
    How can I open word file from excel? I have a lot of word files to open and paste in different directory. (I don't have modification to do inside the files) I think that it is impossible to open word file from excel. But I would like to know if there is a possibily to access the files and duplicate it in a chosen directory. Alex
  • 2. Access: Form default properties changed during execution
    Hi All I have been developing an application which depending on certain logical "if ,then, end if" statements either opens datasheets as read only or edit. However, from time to time, the default settings for the data sheet forms get set to "no edits", "no additions" and the statement " acEdit" , which I decided to use after a few incidents docmd.openform acForm,formname,,,acEdit does not appear to resolve the issue for those times the form should allow editing. I am totally bewildered, any help would be most welcome Cheers Dotun .
  • 3. Referring to an object using a string
    Not sure of the technical term for this but an example of what's stumping me is this: Say I have three constants: const CONV_DWEEZIL = 1 const CONV_MOONBUCKET = 2 const CONV_FRANK = 3 and I have write a function that will have an argument passed with just the name and a value: I want to be able to reference the correct constant (or variable etc) by concatanating the strings. I know I've done it with other packages but can't find the correct syntax in VBA. e.g. function TimesName(ac_Value as currency, as_Name as string) as currency TimesName = ac_Value * _ "CONV_" & as_Name end function

run two processes in Command Prompt window

Postby R1BEeW5hbWljcw » Tue, 31 May 2005 13:07:21 GMT


Does anyone know how I can do two things with the Command Prompt windows 
using the Shell command in VBA?

I would first like to add a title to the window programmatically and then 
run a process.  The title would tell me which process it is on in a large 

Thanks for you assistance in this regard.


Similar Threads:

1.Two outlook.exe processes running...

Hello all.  I have this new annoying thing happening on my PC (Win XP Pro,
Office XP Pro) in that two sessions of Outlook seem to be running all the
time.  Things that are happening are:
1) Send/Recieve button doesn't work, I always get an error back even though
the auto send and receive gets my mail every 5 minutes
2) Whenever new mail comes in I have two envelopes on the bottom right of my
screen indicating new e-mail
3) Whenever I shut down the PC, even though no programs are open, I get the
message to "shut down all applications first"

Does anyone know what I can do to stop this?  It has been happening for
about 3 days (and several re-boots) and is growing quite tiresome.

Thanks in advance,

Ian Francis

2.Unable to run command from prompt


I'm trying to run the command vssadmin list shadowstorage  but I'm unable 
to.  I'm asked to run the utility from a command window with elevated 
administrator privileges I'm the only user on the PC and I'm an 
administrator. Using Vista Ultimate 32bit. Does anyone know what I need to 
do to get elevated privileges?



Red meat isn't bad for you....Blue, Green fuzzy meat is bad for you. 

3."Opening this document will run the following SQL command" prompt problem

we have a mail merge template setup that when opened will show the prompt 
"Opening this document will run the following SQL command:", and then when 
"Yes" is clicked will import the data source for the merge.

We now need to change the name of the data source that it imports, so I've 
tried opening the template, changing the data source and then saving as a 
template again.  But whenever I do this the SQL prompt that should come up 
when it's opened no longer appears, and the data source is no longer 
imported automatically.

Can someone suggest how I can change the data source correctly without 
losing the SQL prompt when the template is opened?


4.How to use VB Express to run a program through command prompt inte

Process takes a file to execute in the call you are using.  You are passing 
the entire command line, which is why it did not work.

If I were youI would do it as follows:

Dim p As New Process
p.StartInfo.FileName = "cmd"
p.StartInfo.Arguments = "/k madymo601 TheInputFile"

"Sooraj" wrote:

> Hi,
> I'm a mechanical engineer new to programming. I was trying to write a
> program in Visual Basic Express Edition 2005. I want to run a file
> using an application called madymo601 in command prompt.
> Normally what I do is to go to Start> Run> and type cmd /k madymo601 c:
> \filename.xml . I have put the /k there as i need the cmd window open
> after execution to view the results. I tried to make a small VB
> program to avoid typing in the commands since the .xml files I need to
> run could be in various locations. I wrote a code as given below. But
> seems to have something wrong with the diagnostics.process.start line.
>    Private Sub Button1_Click(ByVal sender As Object, ByVal e As
> System.EventArgs) Handles Button1.Click
>         OpenFileDialog1.Title = "Please select .xml file"
>         OpenFileDialog1.Filter = "xml files|*.xml"
>         OpenFileDialog1.ShowDialog()
>         If OpenFileDialog1.FileName <> "" Then
>             TextBox1.Text = (OpenFileDialog1.FileName)
>         End If
>     End Sub
>     Private Sub Button2_Click(ByVal sender As Object, ByVal e As
> System.EventArgs) Handles Button2.Click
>         Dim filepath As String = (TextBox1.Text)
>         Diagnostics.Process.Start("cmd /k madymo601", filepath)
>     End Sub
> Hope someone could help me out with the right way to do this.
> Thanx.

5.Cannot run VBC.EXE from command prompt


Just wondering if anyone had come across the following situation.

I currently have VS2003 installed on my machine and it's been working perfectly since day one.

Whilst waiting for our VS2005 to turn up I installed the .Net v2 framework SDK on my machine. After 
doing this, my VS2003 VBC.EXE just will not run from the DOS prompt at all. When you call it it just 
sits there doing nothing.

I've uninstalled the VS2005 SDK, removed and reinstalled VS2003, installed the v1 SDK etc., etc., 
etc., and nothing has fixed the issue. Dependency Walker doesn't show any missing files and I'll 
completely stumped. I'd really rather not have to format my drive just to get the bloody thing back ;-)

Anyway, all suggestions would be welcome


6. Determine if script was run from command prompt

7. FTP using VBS script failed to copy files but succeed when run manually at command prompt

8. how to output message in command prompt window from VB.NET Applica

Return to Microsoft OFFICE


Who is online

Users browsing this forum: No registered users and 30 guest