2
Óla would like to know how to copy a folder named with space in the CMD, but the command is in double quotes and it does not accept other double quotes inside, for example, I tried the following ways and none of them worked, can anyone help me? Thank you
@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
our face worked, very much THANK YOU :)
– mikael