windows - Access denied if Call used along with MOVE in batch script -


here batch script

call jekyll build move _site e:\ md temp set src_folder=e:\_site set tar_folder=.\temp  /f %%a in ('dir "%src_folder%" /b') move %src_folder%\%%a %tar_folder%  pause 

in script if jekyll build command not used,all move , make directory commands working if call added,the output shown

configuration file: e:/workspace/github/rrevanth.github.io/_config.yml             source: e:/workspace/github/rrevanth.github.io        destination: e:/workspace/github/rrevanth.github.io/_site       generating... c:/ruby22-x64/lib/ruby/gems/2.2.0/gems/posix-spawn-0.3.10/lib/posix/spawn.rb:164: warning: cannot close fd before spawn 'which' not recognized internal or external command, operable program or batch file.                     done.  auto-regeneration: disabled. use --watch enable. access denied. subdirectory or file temp exists. 

here,it showing access denied.is there workaround or doing wrong here.

thanks in advance!

apparently attempting use move move directory different drive fails "access denied." i'm able recreate on end, believe or not.

c:\users\rojo\desktop>md test  c:\users\rojo\desktop>md d:\test  c:\users\rojo\desktop>rd d:\test  c:\users\rojo\desktop>move test d:\ access denied.

looks you'll have xcopy srcdir dest rd /q /s srcdir move instead. might need add switches xcopy command, depending on situation -- example, /y overwrite existing; or /h include hidden , system files. see xcopy /? details.


Comments

Popular posts from this blog

c++ - Delete matches in OpenCV (Keypoints and descriptors) -

java - Could not locate OpenAL library -

sorting - opencl Bitonic sort with 64 bits keys -