Hello, I want to know how to copy a folder named with space in the CMD, but the command is inside double quotation marks and it does not accept another double quote inside, for example, I tried the following ways and none of them worked, Can someone help me? Thanks
@echo off
SET var=C:\Users\MIKAEL\Downloads\'programs teste'\cpu-z_1.80-en.zip
runas /user:%usuario% "CMD /C title NETProxy & copy %var% C:\Users\Public\Desktop\ /y & start c:\Users\Public\Desktop\cpu-z_1.80-en.zip" > null
@echo off
SET var=C:\Users\MIKAEL\Downloads\"programs teste"\cpu-z_1.80-en.zip
runas /user:%usuario% "CMD /C title NETProxy & copy %var% C:\Users\Public\Desktop\ /y & start c:\Users\Public\Desktop\cpu-z_1.80-en.zip" > null
@echo off
SET var="C:\Users\MIKAEL\Downloads\programs teste\cpu-z_1.80-en.zip"
runas /user:%usuario% "CMD /C title NETProxy & copy %var% C:\Users\Public\Desktop\ /y & start c:\Users\Public\Desktop\cpu-z_1.80-en.zip" > null
@echo off
runas /user:%usuario% "CMD /C title NETProxy & copy "C:\Users\MIKAEL\Downloads\'programs teste'\cpu-z_1.80-en.zip" C:\Users\Public\Desktop\ /y & start c:\Users\Public\Desktop\cpu-z_1.80-en.zip" > null
@echo off
runas /user:%usuario% "CMD /C title NETProxy & copy "C:\Users\MIKAEL\Downloads\"programs teste"\cpu-z_1.80-en.zip" C:\Users\Public\Desktop\ /y & start c:\Users\Public\Desktop\cpu-z_1.80-en.zip" > null
@echo off
runas /user:%usuario% "CMD /C title NETProxy & copy "C:\Users\MIKAEL\Downloads\programs teste\cpu-z_1.80-en.zip" C:\Users\Public\Desktop\ /y & start c:\Users\Public\Desktop\cpu-z_1.80-en.zip" > null