locked
Basic task is showing error when a simple file transfer batch file is run RRS feed

  • Question

  • Hi, 

    Request help in resolving a basic task in HPC job scheduler,

    We have created a batch file to transfer files from a shared location to another shared location with all access and permission required for the user.

    When HPC executes the job it is showing following error "The filename, directory name, or volume label syntax is incorrect"

    Manually we are able to execute the same batch file.

    Please help.

    BR,

    Ashwin

    Monday, March 9, 2020 10:14 AM

All replies

  • Hi Ashmrao,

    Could you double check if the task to run the batch file has correct environment variables?

    Which line of the script throws this error?

    Regards,

    Yutong Sun

    Monday, March 9, 2020 2:19 PM
  • Hi Yutong,

    In HPC pack, I have not assigned any environmental variables. Can you pls help what needs to be assigned?

    The script is a simple script to transfer file from one location to another.

    for /f %%a IN ('dir "\\server1\Test1\Job346\"  dir /b /a-d ^| findstr /vile ".k .config .bat .key .rad .fem .inp .log .outmain"') do move \\server1\Test1\Job346\\%%a  \\server2\jobtest1

    This shows the error  "The filename, directory name, or volume label syntax is incorrect". It runs manually when double clicked.

    Tuesday, March 10, 2020 6:35 AM
  • Hi Yutong,

    Any workaround we can try for this.

    BR,

    Ashwin

    Wednesday, March 11, 2020 5:11 AM