Jump to content

newbie question on batch file!


Recommended Posts

Posted

ok i know this is a newbie question but i searched windows help but couldnt find the answer.

i wanna make a batch file that open an specified file in command prompt i mean first open the cmd and open the file in it. whats the commands?

thanks.


Posted

Well, what kinda file are you looking to open up? I think I see where you are going, but I can't see the reason to open a file IN the command window. Am I missing something?

The 'call' command is used to access/open a file from within a batch file...you can use it to open another batch file, or open a file. But, if you were to call an xls (Excel) file, it won't open in the command window it will open in the default program...Excel in this case.

Posted

no you see,there is this .exe file that only can be run in cmd.

i donr want that everytime open the cmd and then type the file path and then run it,so thought maybe i can make a batch file that run the file in cmd for me(ex:run the cmd first and then run the file in it).

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...