23
6
I use below code in Run dialog of Windows XP.
cmd /c "C://Program Files/Adobe/Adobe Photoshop CS4/Photoshop.exe"
You may replace the program path any program installed on your system. The problem is Photoshop launches up but cmd.exe window still keeps. I do not want to cmd.exe file pop up. Is it possible to launch up a program via cmd without opening a cmd.exe window? I need cmd work silently. BTW, I need this code for a program. So I need to start the program via cmd but without cmd.exe window popping up.
Further Comments
Because I will use that code in a program. Program can initiate the cmd exe. But the problem is we do not know which version of Photoshop installed. So it can be Photoshop CS4 or Photoshop CS5. Normally when you type below code in Run you get the Photoshop no matter which is installed.
photoshop
So I want to initiate the Photoshop with this method. Program will initiate cmd as Run above but something like below:
cmd /c photoshop
But it does not work. And even the cmd window appears up. I want to make the process run silently. Also we should not install any other tool. I want a solution that will work on a default Windows.
6Why use cmd.exe instead of just starting Photoshop directly, if you don't want CMD in the first place? – CarlF – 2010-09-21T16:02:30.837
perhaps valentina miswrote .. and wants to start it with a command, and she considers start..run..blah<ENTER> to be a command.. so could do start..run...[pathtophotopshop]<ENTER> Then skip the cmd /c, and it just starts, with no command prompt – barlop – 2010-09-21T19:08:46.177
I agree...this makes no sense. Could you clarify why you want to do it this way? – Shinrai – 2010-09-21T22:22:01.363
FYI, OP has posted a response as an answer since she doesn't have comment privileges yet – Pops – 2010-09-22T20:37:25.207
@Lord: You can always post a comment on your own question/answer. – Hello71 – 2010-09-22T22:17:27.857
@Hello, normally you'd be right, but there seems to be an account association problem going on in this case. – Pops – 2010-09-23T01:02:12.740
1CMDOW supposedly does this. – CGA – 2010-09-21T18:51:28.530
Try cmd.exe /q /c [command] – qroberts – 2010-09-21T16:06:16.913
No that won't work. You try it! Also, it'd be /q /c command if anything cmd /q /c "c:\program files\microsoft office\office11\winword.exe" Notice that the command window pops up. He doesn't want that. If you would've tried it, you would've known that!! – barlop – 2010-09-21T16:29:40.790
3No need to get upset over it. Also, the questioner is a female, not male. – qroberts – 2010-09-21T17:35:08.327
Sorry, I don't really understand what you want. You give a cmd.exe call but you say you want to use that code (which code?) in a program. What do you mean with "program can intitiate the cmd exe"? What do you mean with you want to initiate the Photoshop? As you write just typing "photoshop" does what you want. So why don't you just do this? If you write your own program, how do you run the command line you wrote? – Werner Henze – 2013-11-12T08:39:40.037