'cannot use a dir path to run a command in robot framework

In my robot code , I want to cd to a directory different to the current execution directory my execution directory is C:\script\testcase and I want to run a batch file in c:\script. My sample code is below but it does not work.

*** Settings ***
Library    OperatingSystem
Library    String

*** Variables ***
${DIR}           "C:\\script"
 
*** Test Cases ***
Test Add Patient
      Log     [${DIR}]
    Run ${DIR}\\mybatchfile.bat XX yy  ==> XX yy are the parameters to my batch file


Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source