-2
Hello, I’m trying to create a bat that copies a file from a folder and creates a folder with the name of that file, and plays that file inside it but it’s not working very well and I need help
@echo on
:: Script de cópia do arquivo principal para a pasta no destino, com o mesmo nome do arquivo.
set dir_orig=C:\teste\
set dir_arq=C:\teste\%1
arquivo="BCB _20200115.zip"
:: Verifica se o diretorio não existe
IF NOT EXIST %dir_arq%\ md %dir_arq%
robocopy %dir_orig%\ %dir_arq% %arquivo%
pause
exit /B