Jump to content

Welcome to Geeks to Go - Register now for FREE

Geeks To Go is a helpful hub, where thousands of volunteer geeks quickly serve friendly answers and support. Check out the forums and get free advice from the experts. Register now to gain access to all of our features, it's FREE and only takes one minute. Once registered and logged in, you will be able to create topics, post replies to existing threads, give reputation to your fellow members, get your own private messenger, post status updates, manage your profile and so much more.

Create Account How it Works
Photo

How to run another program automaticaly when


  • Please log in to reply

#16
dsenette

dsenette

    Je suis Napoléon!

  • Administrator
  • 26,019 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!

  • Administrator
  • 26,019 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!

  • Administrator
  • 26,019 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