1

Making an Installer using CMD

-[C4]-'s Avatar -[C4]-2/25/15 3:24 pm
1 emeralds 251 2
2/25/2015 4:56 pm
supernotch893's Avatar supernotch893
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 reveal
COPY 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
Posted by -[C4]-'s Avatar
-[C4]-
Level 16 : Journeyman Architect
14

Create an account or sign in to comment.

2

1
02/25/2015 4:56 pm
Level 9 : Apprentice Explorer
supernotch893
supernotch893's Avatar
-[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 reveal
COPY 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
02/25/2015 4:47 pm
Level 23 : Expert Modder
SirBlobman
SirBlobman's Avatar
If you are trying to copy a file then you need to put quotes around the file directory. Here is a better code:

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
Planet Minecraft

Website

© 2010 - 2024
www.planetminecraft.com

Welcome