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

  • Pertanyaan

  • 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

    Senin, 09 Maret 2020 10.14

Semua Balasan

  • 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

    Senin, 09 Maret 2020 14.19
  • 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.

    Selasa, 10 Maret 2020 06.35
  • Hi Yutong,

    Any workaround we can try for this.

    BR,

    Ashwin

    Rabu, 11 Maret 2020 05.11