i want to change the icon of a nameless folder using the .bat file :
@echo off
set /p "fld=Folder: "
set /p "ico=Icon file: "
md "%fld%\icons" 2>nul
if exist %ico% copy "%ico%" "%fld%\icons\icon.ico" /y 1>nul
attrib -h -s "%fld%\desktop.ini" 2>nul
(
echo/[.ShellClassInfo]
echo/IconResource=icons\icon.ico,0
) > "%fld%\Desktop.ini"
attrib +h +s -a "%fld%\Desktop.ini"
attrib +r "%fld%"
attrib +h "%fld%\icons"
taskkill -im explorer.exe /f >nul&start explorer
pause
but i cannot refer to the nameless file that only contains a blank space (created by pressing Alt + 255 while renaming) ! when i use blank space instead of %fld% and run bat file! i want to change the .bat and remove %fld% with the reference to my nameless folder !
i get output :
The system cannot find the path specified.
Path not found - C:\Users\Sand\Desktop\if
The system cannot find the path specified.
Path not found - C:\Users\Sand\Desktop\if
Path not found - C:\Users\Sand\Desktop\if