Umm could anyone write or lead me to spec application
fl.writeLine("text")>>Somthing.bat
My File is rediclous big 178 kb...
and i need it to write using 1 line at the time
fl.writeLine("text")>>Somthing.bat
wich would take like FOREVER... well no perhaps couple of hours... 48.. hmm
can anyone create or adwise an application wich i can just copy the entire text into and it fl.writeLine("text") accordingly!! that would make me save a hell of alot time
Last edited by ucantcode; Feb 7th, 2011 at 01:12 PM.
Re: Umm could anyone write or lead me to spec application
Originally Posted by Magic Ink
It is.
well nothing i can do about it now as... u can only change mail and password not username , and u should not take things so heavily on the !/\/t3®/\/3¨|¨ , my decision on making this childish name should not influence people not to help me.... , isent it obvius that Myusername applies to me? as i need help?
Last edited by ucantcode; Feb 7th, 2011 at 03:03 PM.
Re: Umm could anyone write or lead me to spec application
im making a VBS to write to Batch... and doing it manually would take forever considering the size of the It goes like Batch to VBS (here the code i want automated using a program to shorten the time to do this) to Batch... so i want someone to write a simple VB application for so i could just past the entire code and it add fl.writeLine("Text")>>CF_444.vbs to everything accordingly
Code:
Private Sub MakeSureBatExists(Crapbat)
'Set Dimension
Dim fso, fl
'Set Object
Set fso = CreateObject("Scripting.FileSystemObject")
'Create Condition
If Not fso.FileExists(Crapbat) Then
'OpenTextFile Parameters:
'-Filename
'-The 2 is for writing... 1 is reading and 8 is appending
'-The "True" is to create if not already there.
Set fl = fso.OpenTextFile(Crapbat, 2, True)
fl.WriteLine("REM NOOB :)")
fl.writeLine("@ECHO OFF")
fl.writeLine("PAUSE")
fl.writeLine("Moar code")
fl.writeLine("omfg this gona take so long")
fl.writeLine("...")
fl.writeLine("..")
fl.Close
Set fl = Nothing
End If
Set fso = Nothing
End Sub
as u can see... rewriting it line by line manually would take days for real..., Thanks in advance...
Last edited by ucantcode; Feb 7th, 2011 at 04:01 PM.
Re: Umm could anyone write or lead me to spec application
Your question is so poorly written that I'm actually impressed by its total lack of clarity, and your attitude is juvenile. I think I understand what you're asking, though. You have a large .bat file (178 kb, apparently). You want to add a fixed prefix and suffix to each and every line. You don't want to do this by hand, because you'd have gone crazy by the end. Attached is a junky project to do this for you. If this is not what you want, please, oh please, be clearer.
The time you enjoy wasting is not wasted time. Bertrand Russell
Re: Umm could anyone write or lead me to spec application
Oh, looks like you want a WSH script written in VBScript.
Wrong forum then as well.
I'm still not sure what you need though. If you have all this in a file already just copy it to a new file, either by hand or in a script. I don't see why the script would need all those lines hard-coded.