The system cannot find the specified drive in Jenkins

后端 未结 9 2398
半阙折子戏
半阙折子戏 2021-02-15 15:17

I want to copy some files from a network shared drive (mounted at my local machine as drive Z). I have written a Batch file to copy the contents of Z drive into my local drive.

9条回答
  •  陌清茗
    陌清茗 (楼主)
    2021-02-15 15:34

    In order to access your remote drive

    just use the command in cmd prompt


    • pushd "\sharedDrive\Folder1\DestinationFolder"

    • mkdir FolderName

    • popd


    pushd >> It navigates to the shared drive by creating a virtual drive.. popd >> Gets you back to the local directory

提交回复
热议问题