Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

 
 
Thread Tools Display Modes
Prev Previous Post in Thread   Next Post in Thread Next
Old Oct 8th, 2006, 1:56 AM   #1
Darkicon
Newbie
 
Join Date: Oct 2006
Posts: 2
Rep Power: 0 Darkicon is on a distinguished road
Need Batch Help

I am writing simple batch files for installing my mods for Star Wars Battlefront 2, but I am having a problem with it. Here is my script so far:

@echo off
cls
echo Hello, welcome to Darkicon's Star Wars Battlefront II mod installer!
pause
echo Would you like to install Civil War Elimination on Geonosis?
echo Y Yes
echo N No
CHOICE /C:yn Choose an option.
IF errorlevel 2 GOTO No
IF errorlevel 1 GOTO Yes
:Yes
echo Deleting original "mission.lvl".
del C:\Program Files\LucasArts\Star Wars Battlefront II\GameData\data\_lvl_pc\mission.lvl
echo Moving Civil War Elimination on Geonosis "mission.lvl".
copy C:\XL Civil War Geo\mission.lvl C:\Program Files\LucasArts\Star Wars Battlefront II\GameData\data\_lvl_pc\
pause
echo All done! Have fun!
:No
GOTO End
:End
echo Goodbye!
pause
exit

When I execute it, it just closes.

Thank you.
Darkicon is offline   Reply With Quote
 

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Batch Question NightShade01 Other Programming Languages 3 Jun 20th, 2006 6:39 PM
Embedding a batch file into a C++ app vynkz C++ 22 May 18th, 2005 9:59 PM
Batch Files Skinner Other Programming Languages 4 Apr 28th, 2005 9:03 AM
MSDOS Batch Desktop arrange dingbat Other Web Development Languages 3 Apr 13th, 2005 6:33 AM
Update registry key value via batch file dpasswat Other Scripting Languages 1 Mar 17th, 2005 11:45 AM




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 8:51 AM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC