SimpleSi Posted May 10, 2012 Posted May 10, 2012 Bored??? How about writing a .bat file to take a iterate over a list of Scratch files held inside filelist.txt john.sb amy.sb ... and use this and replace Humpty.sb with john.sb amy.sb etc and give me one file with them all in so I can just upload the code onto a website. 'nixers welcome to join in just to show how easy it is (and how clever they are ) Si
Ric_ Posted May 10, 2012 Posted May 10, 2012 Powershell for you Si! $myFile = Get-Content c:\temp\myFile.txt $out = "" foreach ($line in $myFile){ $out = $out + ' ' } $out | out-file c:\temp\myNewFile.txt 1
SYNACK Posted May 10, 2012 Posted May 10, 2012 strstart = " " Const ForAppending = 8 Set objFSO = CreateObject("Scripting.FileSystemObject") Set objTextFile = objFSO.OpenTextFile("c:\output.txt", ForAppending, True) Set fso = CreateObject("Scripting.FileSystemObject") Set listFile = fso.OpenTextFile("filelist.txt") do while not listFile.AtEndOfStream fName = listFile.ReadLine() objTextFile.WriteLine(fName + ".txt") loop objTextFile.Close This as a vbs should work, I'd test it first though as I just chucked it together in notepad and have not tested it at all. 1
SYNACK Posted May 10, 2012 Posted May 10, 2012 @SYNACK I beat you and mine is less lines! :-P Conceeded Is powershell avalible on Windows 98 though 1
Ric_ Posted May 10, 2012 Posted May 10, 2012 Conceeded Is powershell avalible on Windows 98 though No... but Si has gone all modern and uses XP nowadays so he should be good 1
andy_b Posted May 10, 2012 Posted May 10, 2012 This should work on Windows 98 for /F "tokens=*" %%A in (myfile.txt) do @echo ^ ^^^^ >>myNewfile.txt 1
SimpleSi Posted May 10, 2012 Author Posted May 10, 2012 Thanks for the replies I'm trialling the Win98 dos bat one And does powershell come/run in XP SP1? Si
Arthur Posted May 10, 2012 Posted May 10, 2012 @SimpleSi. Your HTML code is obsolete too. Your browser needs Java to view projects. Source: Embed a Scratch applet in HTML5 1
soveryapt Posted May 10, 2012 Posted May 10, 2012 well damn... This entire thread makes me feel stupid. I'm glad it's not just me! lol ..
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now