Full Version: Dos Problems.
WeeDMoNKeY
Hey im trying to insert smoe stuff into a config file, (between lines) is this possible?

In textfile:

im a coolguy
<<<<<<<<<<<<<<<< where i want my insert
i like cheese

when i run " echo test%random% >> testfile.txt "

it does

im a coolguy
i like cheese
test55

anyone know how to do this ( i need to use dos please, thx.)
SET_coo
maybe u could do it with a vbs file? ill read up on string functions in vbs.
WeeDMoNKeY
.vbs files? Arg, i know about 0 on that, i ushally try to stay away from it ( dunno why) i might take a look at it to, i just need it inserted between lines, and i need a %random% variable. ( which is why i went to dos) but i bet a vbs script could do it to, if you fin da decent link, past er here please.
Neo_
im a coolguy
<<<<<<<<<<<<<<<< where i want my insert
i like cheese
---------
You could put
- lines before in a file pre.txt
- lines after in a file aft.txt
then, for example

type pre.txt>SUB0T.ini

echo ServerComment = Welcome in %1 Bot. >>SUB0T.ini
echo JoinNotice = "8,11-8,12-8,2=13,9 Aide : !%1HELP 8,2=8,12-8,11-" >>SUB0T.ini
echo Nick = %1Bot >>SUB0T.ini
echo AltNick = %1Bot_ >>SUB0T.ini
echo CmdPre = !%1 >>SUB0T.ini

type aft.txt >>SUB0T.ini

Easy
WeeDMoNKeY
Actually that night work, thats pretty smart, props, thx.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.

 
Invision Power Board © 2001-2005 Invision Power Services, Inc.