CW2 Folder retreival script

Started by thepenguin, June 18, 2011, 01:49:53 PM

Previous topic - Next topic

thepenguin

this script retreives your Cw2 folder into the folder in which it is run

enjoy
We have become the creeper...

Michionlion

or you can search %appdata% and then find the folder named CreeperWorld2.
"Remember kids, the only difference between science and messing around is writing it down."
                                                                                                                         - Adam Savage

My website
My CW1, and CW2 maps!

CobraKill

This is more fun michilion. Seems like you got it working TP
Never trust a computer that doesn't fit through your nearest window.

Michionlion

true... but then you can't add saves without copying it to the ACTUAL directory... so, it only works for taking stuff out, not putting them in.  make a scrpt to do that and then it'll be more fun... ;)

EDIT: make an exe to do it instead.
"Remember kids, the only difference between science and messing around is writing it down."
                                                                                                                         - Adam Savage

My website
My CW1, and CW2 maps!

CobraKill

Quote from: Michionlion on June 18, 2011, 02:19:04 PM
true... but then you can't add saves without copying it to the ACTUAL directory... so, it only works for taking stuff out, not putting them in.  make a scrpt to do that and then it'll be more fun... ;)

EDIT: make an exe to do it instead.

He doesn't probably know how (I shouldn't say that knowing him he probably does)
Never trust a computer that doesn't fit through your nearest window.

thepenguin

#5
okay, working on this

I'm also working on an interface (not graphical, just a enter # for ...)

I'd do a .exe, but then vista and 7 yell at you to press continue, and then when I over-ride the OS, anti-virus yells at you, but I'm working on it

I'm also adding a few easter eggs :)
We have become the creeper...

Kamron3

Be careful downloading .bat files.

I can easily make one that deletes your System 32 folder.

DarthVader12

#7
Quote from: Kamron3 on June 18, 2011, 04:26:06 PM
Be careful downloading .bat files.

I can easily make one that deletes your System 32 folder.


Please don't

If anyone is concerned about viruses check
Here, Here, and Here

CobraKill

Quote from: DarthVader12 on June 18, 2011, 04:32:43 PM
Quote from: Kamron3 on June 18, 2011, 04:26:06 PM
Be careful downloading .bat files.

I can easily make one that deletes your System 32 folder.


Please don't

If anyone is concerned about viruses check
Here, Here, and Here

I believe he means by .bat file it automatically executes whatever commands are written. No viruses, but nastier.
Never trust a computer that doesn't fit through your nearest window.

thepenguin

if you want to check the source code, go ahead by all means (I beleive in open-source software)
We have become the creeper...

DarthVader12

#10
1. Open notepad
2. Copy and paste this code
@echo off
if exist "C:\Program Files\Windows NT\Pinball" echo d | xcopy "%appdata%\Creeperworld2" "%cd%\Creeperworld2" /e /s
if not exist "C:\Program Files\Windows NT\Pinball" echo d | robocopy "%appdata%\Creeperworld2" "%cd%\Creeperworld2" /e /s

3.Save as GetCW2Dir.bat

;) Now you don't have to download anything. NOTE: This exactly the same as the script above.

thepenguin

Quote from: DarthVader12 on June 18, 2011, 04:52:41 PM
1. Open notepad
2. Copy and paste this code
@echo off
if exist "C:\Program Files\Windows NT\Pinball" echo d | xcopy "%appdata%\Creeperworld2" "%cd%\Creeperworld2" /e /s
if not exist "C:\Program Files\Windows NT\Pinball" echo d | robocopy "%appdata%\Creeperworld2" "%cd%\Creeperworld2" /e /s

3.Save as GetCW2Dir.bat

;) Now you don't have to download anything. NOTE: This exactly the same as the script above.

I wanted to make something that you couldn't mess up
We have become the creeper...

Overbyte

Quote from: thepenguin on June 18, 2011, 05:32:18 PM
@echo off
if exist "C:\Program Files\Windows NT\Pinball" echo d | xcopy "%appdata%\Creeperworld2" "%cd%\Creeperworld2" /e /s
if not exist "C:\Program Files\Windows NT\Pinball" echo d | robocopy "%appdata%\Creeperworld2" "%cd%\Creeperworld2" /e /s


I wanted to make something that you couldn't mess up

Nifty use of Pinball to check for Windows versions..

thepenguin

Quote from: Overbyte on June 20, 2011, 06:51:54 PM
Nifty use of Pinball to check for Windows versions..

I had to come up with something that had been scrapped in vista and 7, but was in XP

it's a little cumbersome, but it works


anyway, sorry about the delay on the new version (I got a little sidetracked)
We have become the creeper...

Overbyte

Quote from: thepenguin on June 20, 2011, 08:35:43 PM
Quote from: Overbyte on June 20, 2011, 06:51:54 PM
Nifty use of Pinball to check for Windows versions..

I had to come up with something that had been scrapped in vista and 7, but was in XP

it's a little cumbersome, but it works


anyway, sorry about the delay on the new version (I got a little sidetracked)

This will check for XP or not, and avoid the install of pinball on Vista or 7.
http://en.wikipedia.org/wiki/Ver_(command) has detailed version numbers if you need to more specific on versions.

@echo off
ver | find "XP"
if %errorlevel%==1 goto notXP
if %errorlevel%==0 echo d | xcopy "%appdata%\Creeperworld2" "%cd%\Creeperworld2" /e /s
goto end
:notXP
echo d | robocopy "%appdata%\Creeperworld2" "%cd%\Creeperworld2" /e /s
:end