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

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?

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

Replies are listed 'Best First'.
Re^3: 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:58 UTC

    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.

Re^3: C:\ProgramData\Microsoft\Windows\Start Menu is not an internal or external command,operable program or batch file
by Anonymous Monk on Aug 29, 2016 at 10:58 UTC
    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