MSFN Forum: How to execute .exe INDIRECTLY trough another .exe, .bat etc... - MSFN Forum

Jump to content


  • 2 Pages +
  • 1
  • 2
  • You cannot start a new topic
  • This topic is locked

How to execute .exe INDIRECTLY trough another .exe, .bat etc... An example... I'm telling Josh to tell Joe I'm going to be lat Rate Topic: -----

#21 User is offline   cplusdummy 

  • Newbie
  • Group: Members
  • Posts: 10
  • Joined: 10-February 13
  • OS:XP Pro x86
  • Country: Country Flag

Posted 12 February 2013 - 10:58 PM

View Postjaclaz, on 12 February 2013 - 06:13 PM, said:

View Postcplusdummy, on 12 February 2013 - 04:32 PM, said:

Yes, it opens the command prompt window but once the file opens it disappears.

With the /WAIT parameter? :unsure:

Even if it does, let me rephrase previous post as "a black box will either open (and remain open until you terminate the "target" program) or flash briefly on the screen, to avoid that use nircmd, INSTEAD" :whistle:

jaclaz

I'm really not familiar with windows scripting/programming but I have PHP knowledge so I added the /MAX parameter after /WAIT using some logic.

Now when I double click on .ai or .eps file the black box opens and remains open until the program completely processes/opens the file. After few seconds, once the file is opened and editable the box DISAPPEARS AUTOMATICALLY.

I don't know if this is how it's supposed to function but it's serving the purpose perfectly! :thumbup


#22 User is offline   DataCracker7899 

  • Newbie
  • Group: Members
  • Posts: 15
  • Joined: 02-January 13
  • OS:Windows 7 x86
  • Country: Country Flag

Posted 17 February 2013 - 10:25 AM

make batch file start C:\Windows\System32\Notepad.exe

then save as .bat and all files.
when you run it it'll open notepad

#23 User is offline   submix8c 

  • Inconceivable!
  • Group: Patrons
  • Posts: 3,271
  • Joined: 14-September 05
  • OS:none specified
  • Country: Country Flag

Posted 17 February 2013 - 10:38 AM

View PostDataCracker7899, on 17 February 2013 - 10:25 AM, said:

make batch file start C:\Windows\System32\Notepad.exe

then save as .bat and all files.
when you run it it'll open notepad
You mean like was proposed by jaclaz in post#11??? :whistle:
You might want to read a thread to get the full gist first... ;)
( yeah, I've done the "repeat someone else" before... :blushing: )

#24 User is offline   Yzöwl 

  • Wise Owl
  • Group: Super Moderator
  • Posts: 4,369
  • Joined: 13-October 04
  • OS:Windows 7 x64

Posted 17 February 2013 - 04:23 PM

The only ways you can use a script is to associate a particular process with a specific file extension. (They are talking about double clicking on a .txt file)

If you want to have a script executed in this manner you'd need to re-associate .txt files on the end user's system with the scripting engine pertinent to the type of script you're invoking.


Your alternative is to create a script 'packaged/compiled' to an executable, name it notepad.exe in the location of your proper notepad.exe and use it to call that original notepad exe in its new location.

The problem with both those approaches is that that they are to be carried out on your end users PCs.

#25 User is offline   jaclaz 

  • The Finder
  • Group: Developers
  • Posts: 11,576
  • Joined: 23-July 04
  • OS:none specified
  • Country: Country Flag

Posted 18 February 2013 - 05:08 AM

Yzöwl , the OP already tested the proposed solution, modified it a little according to his needs and is using it successfully (for his needs):

View Postcplusdummy, on 12 February 2013 - 10:58 PM, said:

Now when I double click on .ai or .eps file the black box opens and remains open until the program completely processes/opens the file. After few seconds, once the file is opened and editable the box DISAPPEARS AUTOMATICALLY.

I don't know if this is how it's supposed to function but it's serving the purpose perfectly! :thumbup

This thread (actualy the issue that originated it) was "closed" until DataCracker7899 revived it by re-posting (incompletely) the SAME info already posted in it.

jaclaz

#26 User is offline   DataCracker7899 

  • Newbie
  • Group: Members
  • Posts: 15
  • Joined: 02-January 13
  • OS:Windows 7 x86
  • Country: Country Flag

Posted 18 February 2013 - 12:37 PM

so what? who cares. it isnt a big deal

#27 User is offline   jaclaz 

  • The Finder
  • Group: Developers
  • Posts: 11,576
  • Joined: 23-July 04
  • OS:none specified
  • Country: Country Flag

Posted 18 February 2013 - 01:55 PM

View PostDataCracker7899, on 18 February 2013 - 12:37 PM, said:

so what? who cares. it isnt a big deal

Actually it's NO deal at all.

jaclaz

#28 User is offline   Yzöwl 

  • Wise Owl
  • Group: Super Moderator
  • Posts: 4,369
  • Joined: 13-October 04
  • OS:Windows 7 x64

Posted 18 February 2013 - 02:59 PM

View Postjaclaz, on 18 February 2013 - 05:08 AM, said:

Yzöwl , the OP already tested the proposed solution, modified it a little according to his needs and is using it successfully (for his needs):

I cannot find anything posted which provides what was asked. That was the reason for my response, (I certainly had no interest in replying to the pointless ramblings of DataCracker7899).

Double clicking on a .txt file will not open a batch script with the 'clicked' file as a parameter. Double clicking on a .txt file will only open that .txt file in whatever program has been associated with .txt files.
Right clicking could provide workable options but, as I stated, double clicking will not unless you make changes on the end users system.

#29 User is offline   bphlpt 

  • MSFN Expert
  • PipPipPipPipPipPip
  • Group: Members
  • Posts: 1,117
  • Joined: 12-May 07

Posted 19 February 2013 - 02:16 AM

View PostDataCracker7899, on 18 February 2013 - 12:37 PM, said:

so what? who cares. it isnt a big deal


It just totally refutes your claim in your sig:

Quote

I am a professional programmer ... i'm master in many programming languages and i can make websites too.


The lack of capitalization and proper consistent sentence structure and punctuation in either your posts or your sig don't look very professional either.

By the way, I agree with jaclaz's guess that your age is 13 or 14 at most.

Look, no matter what you age is, you are perfectly welcome to be here and your participation is encouraged, but not your "pointless ramblings", as Yzöwl pointed out.

Cheers and Regards

#30 User is offline   DataCracker7899 

  • Newbie
  • Group: Members
  • Posts: 15
  • Joined: 02-January 13
  • OS:Windows 7 x86
  • Country: Country Flag

Posted 19 February 2013 - 03:58 AM

ok sorry

#31 User is offline   jaclaz 

  • The Finder
  • Group: Developers
  • Posts: 11,576
  • Joined: 23-July 04
  • OS:none specified
  • Country: Country Flag

Posted 20 February 2013 - 08:21 AM

View PostYzöwl, on 18 February 2013 - 02:59 PM, said:

I cannot find anything posted which provides what was asked.

What was asked "evolved" and on post #16 and later again on post #21 the OP declared his issue as "solved".

jaclaz

#32 User is offline   Yzöwl 

  • Wise Owl
  • Group: Super Moderator
  • Posts: 4,369
  • Joined: 13-October 04
  • OS:Windows 7 x64

Posted 20 February 2013 - 10:37 PM

View Postjaclaz, on 20 February 2013 - 08:21 AM, said:

View PostYzöwl, on 18 February 2013 - 02:59 PM, said:

I cannot find anything posted which provides what was asked.

What was asked "evolved" and on post #16 and later again on post #21 the OP declared his issue as "solved".

jaclaz

Sorry you are wrong, from post #21 they are still claiming to double click a file and having it run a batch file!

View Postcplusdummy, on 12 February 2013 - 10:58 PM, said:

Now when I double click on .ai or .eps file the black box opens and remains open until the program completely processes/opens the file.


Share this topic:


  • 2 Pages +
  • 1
  • 2
  • You cannot start a new topic
  • This topic is locked

2 User(s) are reading this topic
0 members, 2 guests, 0 anonymous users



All trademarks mentioned on this page are the property of their respective owners
Copyright © 2001 - 2013 msfn.org
Privacy Policy