Score:0

xcopy nfs share fails from bat file, but works in terminal

cn flag

I have a short script xcopy_recursive.bat which is literally:

xcopy /E /Y '%1' '%2'

an attempt to run it as follows:

xcopy_recursive.bat '\\nfs\dir' 'C:\destination'

results in

xcopy '\\nfs\dir' 'C:\destination'
File not found - dir

While if I copy echoed command xcopy '\\nfs\dir' 'C:\destination' and execute it directly from cmd it works just fine.

Any ideas what happens here?

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.