Curt_C
Thu Jul 17 17:23:18 CDT 2003
I'll second ya....
.BAT files too, DOS commands still are quick and easy. I'm amazed at the
looks on the "younger" developers when you drop to DOS to do a quick command
and they look like they've never seen a command prompt before.....
scarry.....
--
----------------------------------------------------------
Curt Christianson (Software_AT_Darkfalz.Com)
Owner/Lead Designer, DF-Software
http://www.Darkfalz.com
---------------------------------------------------------
..Offering free scripts & code snippits for everyone...
---------------------------------------------------------
"Ray at <%=sLocation%>" <ask@me.forit> wrote in message
news:u9i7XwHTDHA.1688@TK2MSFTNGP11.phx.gbl...
> heh heh. cmd.exe rules. I find myself reverting back to that instead of
> using the FSO quite often. I mean, what's easier? A or B?
>
> A:
> Dim objFSO, objDir, objFiles
> Set objFSO = CreateObject("Scripting.FileSystemObject")
> Set objDir = objFSO.GetFolder("D:\Path")
> Set objFiles = objDir.Files
> For Each f in objFiles
> sOutput = sOutput & f.Name & vbCrLf
> Next
> Set objDir = Nothing
> Set objFiles = Nothing
>
>
> Set oOutputFile = objFSO.CreateTextFile("D:\Path\file.txt", True)
> oOutputFile.Write sOutput
> oOutputFile.Close
> Set oOutputFile = Nothing
> Set objFSO = Nothing
>
>
> B:
> dir D:\Path /B /A:-D>D:\PathFile.txt
>
>
> Ray at work cross posting off topic posts and will now stop.
>
>
> "Robert Cohen" <jerrygarcia@gratefuldead.com> wrote in message
> news:OM6CRTGTDHA.1324@TK2MSFTNGP11.phx.gbl...
> > echo Ray>>he cracks me up.log
> >
> > I actually had to clean soda off my monitor because I read that while
> > drinking some soda.
> >
> > but yeah, talk about bitting the hand that feeds you. Dan should have
> > learned from William Shatner.
> >
> > But the funny thing is I didn't know you could do that with a bat file
> like
> > that. So I learn things in the wierdest ways.
> >
>
>