How to set path . bat

Asked

Viewed 513 times

1

Well my problem is the following I want to run a file. bat it goes:

  • create a folder locally
  • copy images from my server to the created folder
  • hide the created folder

But he ends up displaying this message :

C:\Wallpaper especifica um nome de arquivo
ou de diretório no destino 
(F = arquivo, D = diretório)?

How Do I Set C: Wallpaper as Directory

My code is this:

XCOPY /E "[caminho do servidor]" "C:\Wallpaper"
attrib +h "C:\Wallpaper"

1 answer

1


I ended up entering in "File Explorer" and looking at how it defines folders and noticed that it puts a " at the end when it is a folder ...

So I just had to put one backslash in the first line:

XCOPY /EY "[caminho do servidor]" "C:\Wallpaper\"
attrib +h "C:\Wallpaper" 

Browser other questions tagged

You are not signed in. Login or sign up in order to post.