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 :thumb:
Re: Umm could anyone write or lead me to spec application
Other than advice to read How To Work With Files tutorials I'd like to ask "What are you talking about?".
Re: Umm could anyone write or lead me to spec application
Quote:
Originally Posted by
RhinoBull
let say i copy the code
@ECHO OFF
ECHO LOL
Pause
into this "application" wich is non-existent not made it yet :D
it renders it like this:
fl.writeLine("@ECHO OFF")>>CF_444.vbs
fl.writeLine("ECHO LOL")>>CF_444.vbs
fl.writeLine("Pause")>>CF_444.vbs
So really all i have to do is mark the rendered code hit ctrl + c and past and wolla done
So i dont have to manually type fl.writeLine("Text")>>CF_444.vbs as my code is huge doing it manually will take a while :afrog: :thumb:
Re: Umm could anyone write or lead me to spec application
I wonder why the moderators of this forum have not yet found your username unacceptable. If you want help be polite.
Re: Umm could anyone write or lead me to spec application
Quote:
Originally Posted by
Magic Ink
I wonder why the moderators of this forum have not yet found your username unacceptable. If you want help be polite.
Im sry i just typed somthing.. its not meant to be offensive towards anyone....:sick:
Re: Umm could anyone write or lead me to spec application
It is.
Username change to 'ucantcode' acknowledged.
Re: Umm could anyone write or lead me to spec application
Quote:
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 :duck: , 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.... :cry:, isent it obvius that Myusername applies to me? as i need help?
Re: Umm could anyone write or lead me to spec application
Those lines aren't valid in a .VBS file, maybe you meant to have this thing write them to a .BAT/.CMD file?
What do you have done so far?
And... this may sound silly but the application already exists: Notepad. Open Notepad, paste the lines in, then Save as... whatever.
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...
1 Attachment(s)
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.
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.