WeeDMoNKeY
Jul 11 2004, 04:09 AM
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
Jul 11 2004, 04:49 AM
maybe u could do it with a vbs file? ill read up on string functions in vbs.
WeeDMoNKeY
Jul 11 2004, 06:43 PM
.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_
Jul 11 2004, 08:39 PM
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
Jul 12 2004, 10:09 PM
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.