Follow by Email

Wednesday, 30 May 2012

How to copy file to Desktop for Windows XP or Windows 7

Below are the useful Script can help you to copy file to XP , Vista or Windows 7 All Users Desktop
@echo off
IF "%PUBLIC%"=="" GOTO NO_PUBLIC
GOTO PUBLIC_FOUND
:NO_PUBLIC
Rem PUBLIC env var not here, assuming XP
copy "Your File" "%ALLUSERSPROFILE%\Desktop"
:PUBLIC_FOUND
Rem Public Variable found
copy " Your File" %PUBLIC%\Desktop
Open your notepad ,Copy and paste to notepad and save it to *.bat file.

No comments:

Post a Comment