Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re: C:\ProgramData\Microsoft\Windows\Start Menu is not an internal or external command,operable program or batch file

by marto (Cardinal)
on Aug 29, 2016 at 10:33 UTC ( [id://1170694]=note: print w/replies, xml ) Need Help??


in reply to C:\ProgramData\Microsoft\Windows\Start Menu is not an internal or external command,operable program or batch file

I'm not sure why you're building your path up like this, however here's an example based on running d:\program files\ffmpeg\bin\ffmpeg.exe:

$me = "d:\\program files"; $me .= '\\ffmpeg\\'; $me .= 'bin'; $me .= '\\ffmpeg.exe'; system('start "" "' . $me . '"');
  • Comment on Re: C:\ProgramData\Microsoft\Windows\Start Menu is not an internal or external command,operable program or batch file
  • Select or Download Code

Replies are listed 'Best First'.
Re^2: C:\ProgramData\Microsoft\Windows\Start Menu is not an internal or external command,operable program or batch file
by ankit.tayal560 (Beadle) on Aug 29, 2016 at 10:51 UTC

    if i want to run this "C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Microsoft Office 2013\Word 2013" what should I do?

    this can be started from its full file path but I want to start it from start menu file path for some required specific purpose.can you help me out in this?

      That's a path of a directory, not an executable. Are you trying to launch windows explorer opened at this path? If you want to actually launch Microsoft word provide the full path to the executable (like the example I gave you for ffmpeg.exe), in my case (it won't be the same for you):

      my $word = 'C:\\Program Files (x86)\\Microsoft Office\\Office12\\winwo +rd.exe'; system('start "" "' . $word . '"');

      Update: also, see http://learn.perl.org and the Tutorials section.

      There is no file named "Word 2013" , it doesn't exist

      "Word 2013.lnk" probably does exist

      Even if "Word 2013" really existed, you could never execute/start it as its not a program/executable or a link

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1170694]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others wandering the Monastery: (4)
As of 2024-04-25 05:29 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found