1
Making an Installer using CMD
1: Is there a better way to make an installer for windows?
2: Why doesn't this work when in a text file, yet it works when directly put into command prompt.
Pause is only there for me to see the error message.
It says the system cannot find the path specified.
Yet:
It works everytime when I type it into CMD
Help anyone?
-C4
2: Why doesn't this work when in a text file, yet it works when directly put into command prompt.
Click to reveal
COPY Downloads\Map.zip AppData\Roaming\.minecraft\saves
PAUSE
PAUSE
Pause is only there for me to see the error message.
It says the system cannot find the path specified.
Yet:
It works everytime when I type it into CMD
Help anyone?
-C4
Create an account or sign in to comment.
2
1
-[C4]-1: Is there a better way to make an installer for windows?
2: Why doesn't this work when in a text file, yet it works when directly put into command prompt.Click to revealCOPY Downloads\Map.zip AppData\Roaming\.minecraft\saves
PAUSE
Pause is only there for me to see the error message.
It says the system cannot find the path specified.
Yet:
It works everytime when I type it into CMD
Help anyone?
-C4
The problem is that you have to have the zip extracted already (I don't think you can do so from command prompt), and then you gotta do "xcopy /e %userprofile%\Downloads\INSERT_MAP_DIRECTORY_HERE %appdata%\.minecraft\saves\
1
If you are trying to copy a file then you need to put quotes around the file directory. Here is a better code:
When you put in into a .bat or a .cmd it uses the file directory that its currently in. so when you tell it to copy from the downloads folder it will think that there is a downloads folder in the exact place that it is in. IF you need more help, or you want me to simplify then you can PM me
COPY "%userprofile%\Downloads\Map.zip" "%appdata%\.minecraft\saves"
PAUSE
When you put in into a .bat or a .cmd it uses the file directory that its currently in. so when you tell it to copy from the downloads folder it will think that there is a downloads folder in the exact place that it is in. IF you need more help, or you want me to simplify then you can PM me