Jump to content

perennialidentity

Member
  • Posts

    2
  • Joined

  • Last visited

  • Donations

    0.00 USD 
  • Country

    United States

Everything posted by perennialidentity

  1. ok this moves all the shortcuts: @echo off cd "%UserProfile%\.." for /d %%a in ("%UserProfile%\..\*") do if "%%~na" neq "All Users" call :doit "%%~a" goto :dup :doit pushd %1 robocopy "Start Menu\." "%AllUsersProfile%\Start Menu" /E /Z /MOVE /R:5 /W:2 /XF ?esktop.ini>nul popd goto :eof :dup robocopy "%userprofile%\..\default user\Start Menu\." "%AllUsersProfile%\Start Menu" /E /Z /MOVE /R:5 /W:2 /XF ?esktop.ini>nulBut I am still wondering what "%%~na" and "%%~a" mean. I can't get any search engines to find % or ~ symbols.
  2. I got it to work like this: @echo off cd "%UserProfile%\.." for /d %%a in ("%UserProfile%\..\*") do if "%%~na" neq "All Users" call :doit "%%~a" goto :eof :doit pushd %1 robocopy "Start Menu\." "%AllUsersProfile%\Start Menu" /E /Z /MOVE /R:5 /W:2 /XF ?esktop.ini>nul popd goto :eofHow do you do the "Default User" folder too? What does "%%~na" and "%%~a" do?
×
×
  • Create New...