A friend of mine is running xp pro, and I made the mistake of telling him that I click on an icon in my windows 7 ultimate, that will then copy certain folders from my C drive to my mirror D drive, and then it shuts windows 7 off.
Now he has asked me if I can do that for his XP machine.
Is it possible to do that with windows XP pro?
The XCOPY command you posted is the same supported by XP. The following batch works under XP, assumed your friend has to backup his data from the Data folder.
@echo off
xcopy C:\Data\*.* D:\Data\*.* /d /e /v /y
shutdown -s
To generate the icon on the desktop select the batch file in Explorer, right click Copy, then on the desktop right click and select Paste Link. Now right click the icon generated select Properties, rename as Shutdown and change the picture choosing the red button for power off. You are done.