locked
unable to pass command line arguments to batch file running on windows server 2012R2 RRS feed

  • Question

  • I have created a batch file where i am passing command line arguments to java class. But some how my parameters are passed to class file. 

    Below is the syntax of my batch file.

    I even tried printing the arguments on console but the not able to display. Please help me if i am missing anything. This is very urgent.

    @echo off 

    echo *** WELCOME TO BULK UPLOAD UTILITY ***
    echo.

    echo TODAY'S DATE : %date%
    echo.

    echo ENTER FOLLOWING DETAILS TO START UPLOADING THE DOCUMENTS

    set /p user = ENTER USER : 
    echo.

    set /p user2 = ENTER PASSWORD : 
    echo.

    echo arguments %user% %user2%

    JAVA -jar bulkUploadScript.jar %user% %user2%

    echo.

    PAUSE 

    EXIT

    Thursday, December 29, 2016 4:47 AM

All replies