vbs noob

Associate
Joined
16 May 2004
Posts
1,902
Location
Near Chester
im just trying to create a vbs script for my version of pro evo, basically i have 2 diffferent patches, and i have created 2 scripts to rename the folders and option files to enable the different patches, but wanted to create a script that "if" the folder is "unic" then launch the championship script which i already have created, but "if" the folder is "unin" then launch the normal script that i have created. hope this us understandable, lol, and cheers for any help!
 
I have never used vbscript, i always use good 'ol DOS.

could you not do something like

@Echo off
cd c:(enter directory here)
if errorlevel 0 c:(enter champion script location here)

Or similar?
 
i have used this....

@Echo off
cd "C:\Program Files\KONAMI\Pro Evolution Soccer 6\kitserver\GDB\facesc"
if not errorlevel 0 goto success

"C:\Program Files\KONAMI\Pro Evolution Soccer 6\Play Championship.vbs"

:success
"C:\Program Files\KONAMI\Pro Evolution Soccer 6\pes6c.exe"

:end

but it executes both whatever!? and reports "afs error", but if i launch the executable independanly it dosn't report an error! excuse my awful programming skills! lol
 
poosemon said:
i have used this....

@echo off
cd "C:\Program Files\KONAMI\Pro Evolution Soccer 6\kitserver\GDB\facesc"
if not errorlevel 0 goto success

"C:\Program Files\KONAMI\Pro Evolution Soccer 6\Play Championship.vbs"

:success
"C:\Program Files\KONAMI\Pro Evolution Soccer 6\pes6c.exe"

:end

but it executes both whatever!? and reports "afs error", but if i launch the executable independanly it dosn't report an error! excuse my awful programming skills! lol
Do this:
Code:
@echo off
cd "C:\Program Files\KONAMI\Pro Evolution Soccer 6\kitserver\GDB\facesc"
if not errorlevel 0 goto success

"C:\Program Files\KONAMI\Pro Evolution Soccer 6\Play Championship.vbs"
exit
:success
"C:\Program Files\KONAMI\Pro Evolution Soccer 6\pes6c.exe"

:end
TrUz
 
Back
Top Bottom