Xcopy help (advance)
Posted: 02 Aug 2012 10:39
Hi, im making an easy folder copy tool byt it dosent work, i can copy and paste the files.
but im stuck here:if %OP%==64 set dist2=%programfiles(x86)%\Minecraft else set dist2=%programfiles%\Minecraft
@echo off
cls
color 0A
title Minecraft 1.3.1 USB installer made by skillsa2
echo ===================================
echo = Please Select your USB drive =
echo ===================================
echo.
echo.
echo Please wrigt down your USB drive (only the letter)
echo.
echo Example: F, H, G, etc...
echo.
set /P "D=>>"
echo ===================================
echo = Do you have 32 or 64 bit OP? =
echo ===================================
echo.
echo.
echo 23 = 32bit OperativSystem
echo.
echo 64 = 64bit OperativSystem
echo.
set /P "OP=>>"
::==============
cd C:\Users\%username%\AppData\Roaming
md .minecraft
Set source=%D%E:\.minecraft
set dist=C:\Users\%username%\AppData\Roaming\.minecraft
::==============
cd %programfiles(x86)%
md Minecraft
Set source2=%D%:\Minecraft
if %OP%==64 set dist2=%programfiles(x86)%\Minecraft else set dist2=%programfiles%\Minecraft
::==============
cd %UserProfile%\Desktop\
if %OP%==64 set dist3=%programfiles(x86)%\Minecraft else set dist2=%programfiles%\Minecraft
set dist3=%UserProfile%\Desktop\
::==============
Xcopy "%source%" "%dist%" /E /I /H /R /Y
echo.
echo Done installing .minecraft folder to appdata!
echo.
echo.
Xcopy "%source2%" "%dist2%" /E /I /H /R /Y
echo.
echo Done installing Minecraft folder to programfiles!
echo.
echo.
Xcopy "%source2%" "%dist2%" /E /I /H /R /Y
echo.
echo Done installing Minecraft shortcut to the desktop
echo.
Xcopy "%source3%" "%dist3%" /E /I /H /R /Y
echo.
echo The installation of Minecaraft 1.3.1 is now DONE you can now play!
echo.
echo Press any key to exit the installation.
echo.
pause
i just want to copy and paste the files on an 64 and 32 bit operativsystem plz help
but im stuck here:if %OP%==64 set dist2=%programfiles(x86)%\Minecraft else set dist2=%programfiles%\Minecraft
@echo off
cls
color 0A
title Minecraft 1.3.1 USB installer made by skillsa2
echo ===================================
echo = Please Select your USB drive =
echo ===================================
echo.
echo.
echo Please wrigt down your USB drive (only the letter)
echo.
echo Example: F, H, G, etc...
echo.
set /P "D=>>"
echo ===================================
echo = Do you have 32 or 64 bit OP? =
echo ===================================
echo.
echo.
echo 23 = 32bit OperativSystem
echo.
echo 64 = 64bit OperativSystem
echo.
set /P "OP=>>"
::==============
cd C:\Users\%username%\AppData\Roaming
md .minecraft
Set source=%D%E:\.minecraft
set dist=C:\Users\%username%\AppData\Roaming\.minecraft
::==============
cd %programfiles(x86)%
md Minecraft
Set source2=%D%:\Minecraft
if %OP%==64 set dist2=%programfiles(x86)%\Minecraft else set dist2=%programfiles%\Minecraft
::==============
cd %UserProfile%\Desktop\
if %OP%==64 set dist3=%programfiles(x86)%\Minecraft else set dist2=%programfiles%\Minecraft
set dist3=%UserProfile%\Desktop\
::==============
Xcopy "%source%" "%dist%" /E /I /H /R /Y
echo.
echo Done installing .minecraft folder to appdata!
echo.
echo.
Xcopy "%source2%" "%dist2%" /E /I /H /R /Y
echo.
echo Done installing Minecraft folder to programfiles!
echo.
echo.
Xcopy "%source2%" "%dist2%" /E /I /H /R /Y
echo.
echo Done installing Minecraft shortcut to the desktop
echo.
Xcopy "%source3%" "%dist3%" /E /I /H /R /Y
echo.
echo The installation of Minecaraft 1.3.1 is now DONE you can now play!
echo.
echo Press any key to exit the installation.
echo.
pause
i just want to copy and paste the files on an 64 and 32 bit operativsystem plz help