Results 1 to 11 of 11

Thread: Umm could anyone write or lead me to spec application

  1. #1

    Thread Starter
    New Member
    Join Date
    Feb 2011
    Posts
    7

    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.

  2. #2

  3. #3

    Thread Starter
    New Member
    Join Date
    Feb 2011
    Posts
    7

    Re: Umm could anyone write or lead me to spec application

    Quote Originally Posted by RhinoBull View Post
    Other than advice to read How To Work With Files tutorials I'd like to ask "What are you talking about?".
    let say i copy the code

    @ECHO OFF
    ECHO LOL
    Pause

    into this "application" wich is non-existent not made it yet

    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
    This is my Signature

  4. #4
    Frenzied Member
    Join Date
    Mar 2008
    Posts
    1,210

    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.

  5. #5

    Thread Starter
    New Member
    Join Date
    Feb 2011
    Posts
    7

    Re: Umm could anyone write or lead me to spec application

    Quote Originally Posted by Magic Ink View Post
    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....
    This is my Signature

  6. #6
    Frenzied Member
    Join Date
    Mar 2008
    Posts
    1,210

    Re: Umm could anyone write or lead me to spec application

    It is.

    Username change to 'ucantcode' acknowledged.
    Last edited by Magic Ink; Feb 7th, 2011 at 04:27 PM.

  7. #7

    Thread Starter
    New Member
    Join Date
    Feb 2011
    Posts
    7

    Re: Umm could anyone write or lead me to spec application

    Quote Originally Posted by Magic Ink View Post
    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.
    This is my Signature

  8. #8
    PowerPoster dilettante's Avatar
    Join Date
    Feb 2006
    Posts
    24,487

    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.

  9. #9

    Thread Starter
    New Member
    Join Date
    Feb 2011
    Posts
    7

    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.
    This is my Signature

  10. #10
    Only Slightly Obsessive jemidiah's Avatar
    Join Date
    Apr 2002
    Posts
    2,431

    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.
    Attached Files Attached Files
    The time you enjoy wasting is not wasted time.
    Bertrand Russell

    <- Remember to rate posts you find helpful.

  11. #11
    PowerPoster dilettante's Avatar
    Join Date
    Feb 2006
    Posts
    24,487

    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.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width