use bat file to open application then file

Discussion forum for all Windows batch related topics.

Moderator: DosItHelp

Post Reply
Message
Author
hendrikbez
Posts: 20
Joined: 11 Sep 2008 22:36

use bat file to open application then file

#1 Post by hendrikbez » 07 Apr 2017 00:25

I want to know if this is possible.

I am opening a application ,then I open a file form there, then I open the application again and open a new file, so there are now two files open with it.
can this be done with a bat file at all.

penpen
Expert
Posts: 2009
Joined: 23 Jun 2013 06:15
Location: Germany

Re: use bat file to open application then file

#2 Post by penpen » 07 Apr 2017 02:57

It heavily depends on the application you are using - but to be honest:
It sounds more like a job for AutoIt to me.
(Although you probably may also use hybrid jscript/bat or C#/bat scripts .)


penpen

hendrikbez
Posts: 20
Joined: 11 Sep 2008 22:36

Re: use bat file to open application then file

#3 Post by hendrikbez » 07 Apr 2017 03:35

penpen wrote:It heavily depends on the application you are using - but to be honest:
It sounds more like a job for AutoIt to me.
(Although you probably may also use hybrid jscript/bat or C#/bat scripts .)

Did look at Autoit, but at the moment does not understand it.
Will try to look hybird jscript
penpen

Samir
Posts: 384
Joined: 16 Jul 2013 12:00
Location: HSV
Contact:

Re: use bat file to open application then file

#4 Post by Samir » 09 Apr 2017 11:43

penpen wrote:It heavily depends on the application you are using - but to be honest:
It sounds more like a job for AutoIt to me.
(Although you probably may also use hybrid jscript/bat or C#/bat scripts .)


penpen
Not only this, but it also depends on the system you are running it on as well. Some systems may have the files you want to open associated with the application which would make certain things easier. Other systems may not and you'd have to use a different method.

Post Reply