Jump to content

Recommended Posts

Posted

I am trying - unsuccessfully - to copy something over to all users desktop.

Why doesn't this work?

echo Desktop Stuff
copy %systemdrive%\install\desktop\*.* %ALLUSERSPROFILE%\Desktop\
echo.


Posted
Wrap the string with enviroment variable is quotes.
echo Desktop Stuff
copy "%systemdrive%\install\desktop\*.*" "%ALLUSERSPROFILE%\Desktop\"
echo.

oh yeah, I should have thought of that! thank you!

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...