Fork me on GitHub

Launching a DOS application from Dynamenu  Bottom

  • I would like to link a DOS application in my Intranet but, how to specifie a directory for the process to start in... the application is a (.exe file) that needs this path to load seconday files.

    Ideas??
  • Making a .bat,
    with a cd to your directory and then launching the exe (in the same .bat),
    the exe is going to take the changed directory path as worked directory.
  • Could work but, my application is on the client side... I'll try.
    Thanks.
  • well... I've created a .bat file on the server and the link works putting it direcly on the IE client
    file:\\servername\share\PN\applications\xxx.bat

    but adding this line on dynamenu doesn't work 'cus is being changed automatically to
    file:\\\\servername\\share\\PN\\applications\\xxx.bat

    Why "postnuke or dynamenu" is adding this slashes ???

  • I've managed to call a .bat file using dynamenu using instead file:\\
    just put applications/XXX.bat at Dynamenu and the result was
    http://servername/pn/applications/XXX.bat

    but I got the message The page cannot be found on IE
    the correct result should be a DOS window calling my application

    How can I fix that? Any suggestions?
  • This not the way to launch server files, you have to do from server side, (e.g. through a PHP script)

    you can use some as this: exec("c:\utils\some.bat");

    but as is running on server the output is on the server,...
  • the .bat file is on the server but, the application called is on the client

    anyway the problem that is happening is: the application doesn't start

    Do I need to change some settings on IIS??
  • is more easier link as: file://c:/util/file.bat

  • Yes, and that works but not thru the dynamenu, maybe it's a syntax problem there, check my previous notes about it.
    Thanks for your help I hope we can find a solution...
  • I found a solution! Instead put the DOS batch file on the Server side keep it on a shared network drive.

    Set the dynamenu link to: file:///P:/Public/XXX.bat



    edited by: lzucco, Sep 12, 2006 - 09:27 AM

This list is based on users active over the last 60 minutes.