Jump to content

Copy a .LNK file in Cleanup.cmd


Recommended Posts

COPY %programfiles%\MyIE2\MyIE.lnk %allusersstartmenu%

This file exists in the directory, but I keep getting "The system cannot find the file specified." Is there something wrong with my dos command? The environment variables are correct as far as I can tell.

Link to comment
Share on other sites


hi, few things your missing

xcopy "%programfiles%\MyIE2\MyIE2.lnk" "%allusersprofile%\Start Menu\Programs" /Y

%allusersstartmenu% isnt a windows variable

regards

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...