Question:
How to change installation path using MS-DOS?
Sindy
2011-04-14 02:04:46 UTC
rem Author: Synapse
rem Date: Mar 17th 2009
rem Installer version: 1.0
@echo off
cls
color a
title Company of Heroes Installation
set DR=%CD%\Install Files
set ID=%USERPROFILE%\Games\Company of Heroes
set TD=%HOMEDRIVE%\COH-TMP
set RP=%HOMEPATH%
IF "%PUBLIC%"=="%HOMEDRIVE%\Users\Public" (
set RP=%HOMEDRIVE%\%RP:~0,6%\\%USERNAME%\\Games\\Company of Heroes\\
) else (
set RP=%HOMEDRIVE%\%RP:~0,23%\\%USERNAME%\\Games\\Company of Heroes\\
)
echo %RP%
pause
md "%ID%"
cd "%ID%"
del/f/q/s %TD%\>nul
cls
echo.
echo Removing temporary files (please wait)...
del/f/q/s "%ID%\">nul
cls

So this is some parts of the Setup.bat of the game i downloaded in a torrent site. And one problem is that its default installation path is in C:\\Users\\USERNAME\\Games\\Company of Heroes\\

sooo how do i change the installation path to D:\\Gamez\\Company of Heroes\\??

your help would greatly help me. thanks!
Four answers:
anonymous
2011-04-14 08:19:25 UTC
Microsoft DOS and command prompt: http://www.computerhope.com/msdos.htm



List of DOS commands: http://www.computerhope.com/msdos.htm



Change directory: http://en.wikipedia.org/wiki/List_of_DOS_commands#cd_or_chdir



Ron
anonymous
2016-04-30 16:29:41 UTC
Try to check if your Command Compiler is in windows environment path - Open Contol Panel - System - On Advanced tab, click environment Variables - In system variables, check if your c:\Borland\Bcc55 or c:\Borland\Bcc55\bin it's include in the path parameter, if not, edit and add the path. Remember to check your command compiler wheter in c:\Borland\Bcc55 or c:\borland\Bcc55\Bin. Hope this Help
Danial Anwar
2011-04-22 01:51:43 UTC
You need to understand system variables e.g. %USERNAME% etc. Open Command prompt window type SET and press Enter. All existing values will be listed.These values are being used by your bat file.



Change value of %ID% in your bat file to indicate installation path.



Hope it works.
anonymous
2016-03-13 18:13:47 UTC
In front insert these lines:

set USERPROFILE = F: \ Company Of Heroes

set HOMEDRIVE = F:

set HOMEPATH = \ Company Of Heroes


This content was originally posted on Y! Answers, a Q&A website that shut down in 2021.
Loading...