1 2 Previous Next 21 Replies Latest reply on May 4, 2012 9:37 AM by Bill Robinson

    Bladelogic Nexec for Windows Scripting Issue

      Hi Guys,

       

      i have created a nsh script that invoke from Bladelogic to the target VM the following command:

       

      C:/Program Files/test/test dir install/test.bat -s <parameter>

       

      i put all into the nexec so i have:

       

      nexec <target_server> cmd /C C:/Program Files/test/test dir install/test.bat -s <parameter>

       

      i test the script, but it fails because the spaces character present into the path.

      I've used also the " and the ':

       

      nexec <target_server> cmd /C 'C:/Program Files/test/test dir install/test.bat -s <parameter>'

      nexec <target_server> cmd /C "C:/Program Files/test/test dir install/test.bat -s <parameter>"

      nexec <target_server> cmd /C C:/"Program Files"/test/"test dir install"/test.bat -s <parameter>

       

      but it is still not working...could u please help me???

        1 2 Previous Next