PDA

Click to See Complete Forum and Search --> : HELP ini FileName change


dead
Mar 18th, 2000, 02:21 PM
I have a game launcher the launches a custom level (an actuall file). It writes as follows...

Set fs = CreateObject("Scripting.FileSystemObject")
Set a = fs.CreateTextFile("d:\quake3\baseq3\doomanf.cfg")
a.WriteLine ("//This config file cycles through all the maps in the game. Free For All mode.")
a.WriteLine ("")
a.WriteLine ("set g_gametype 0")
a.WriteLine ("")
a.WriteLine ("set m1 ""fraglimit 10; map " & (Form2.File2.FileName) & (" ; set nextmap vstr m2"""))
a.WriteLine ("set m1 ""fraglimit 10; map " &(Form2.File2.FileName) & (" ; set nextmap vstr m2"""))
a.WriteLine ("")
a.WriteLine ("vstr m1")
a.Close

What I want to know, is how do you get rif of the file extention. (In this case .bsp) Because the game adds the .bsp to the command as well as the INI, it comes up smash3.bsp.bsp, so I need to get rig of one of them. CAn anybody help??????? ASAP

-Dead