Jump to content

Welcome to Geeks to Go - Register now for FREE

Need help with your computer or device? Want to learn new tech skills? You're in the right place!
Geeks to Go is a friendly community of tech experts who can solve any problem you have. Just create a free account and post your question. Our volunteers will reply quickly and guide you through the steps. Don't let tech troubles stop you. Join Geeks to Go now and get the support you need!

How it Works Create Account
Photo

How to run another program automaticaly when


  • Please log in to reply

#16
dsenette

dsenette

    Je suis Napoléon!

  • Community Leader
  • 26,047 posts
  • MVP
one above the other...

also...sorry but i didn't mention it...you have to put the path's in quotes

like "c:\program files\microsoft office\office11\outlook.exe"

you have to do this because of the spaces in the path

also...at the end of the batch file put the word pause by itself...this will keep it from dissapearing
  • 0

Advertisements


#17
Tim'A

Tim'A

    Member

  • Topic Starter
  • Member
  • PipPip
  • 93 posts
lol kinda worked. . .

well it WILL open both programs so thats a good sign.

however it will only open outlook, then right when I close outlook, ypops opens!!!

It also opens c prompt and it shows the outlook path.
when i close outlook then it shows the ypops path and ypops opens.
I checked my running processes (to see if ypops is running as a background process) but ypops wasn't open.(while outlook was open)
  • 0

#18
stettybet0

stettybet0

    Trusted Tech

  • Technician
  • 2,579 posts
are you sure you put pause at the end and not in between the 2 addresses?
  • 0

#19
dsenette

dsenette

    Je suis Napoléon!

  • Community Leader
  • 26,047 posts
  • MVP
should have worked...but i can see why it might not....give me some time today to rework
  • 0

#20
dsenette

dsenette

    Je suis Napoléon!

  • Community Leader
  • 26,047 posts
  • MVP
ok the batch is waiting for the first process to dispose of itself...before starting the next one...SO...let's just go around that
go here and download PSTools (link is at the bottom of the page and it comes in a zip file)...extract PSexec.exe to the C:\drive (the root of C:\)

now to construct a batch using psexec you would put something like the following code (i'm going to open outlook and filezilla...just as an example...replace my paths with the paths to your programs)

c:\psexec.exe -d -i "C:\Program Files\Microsoft Office\OFFICE11\OUTLOOK.EXE" 
c:\psexec.exe -d -i "C:\Program Files\FileZilla\FileZilla.exe"
pause
i put the pause in there for testing...once you verify that the batch works...you can remove it so that the cmd window closes once it's done

i love psexecute...it's wonderfull stuff
  • 0






Similar Topics

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

As Featured On:

Microsoft Yahoo BBC MSN PC Magazine Washington Post HP