Then why in the hell would I use Perl?FlamingGlory said:Uh no. Just vbscript and batch files.
vbScript btw:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/script56/html/vtoriVBScript.asp
Then why in the hell would I use Perl?FlamingGlory said:Uh no. Just vbscript and batch files.
vbScript btw:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/script56/html/vtoriVBScript.asp
fly said:Then why in the hell would I use Perl?
Standard on anything *nix. Practical Extraction and Report Language... Like for parsing. There is nothing you cant do in perl, even if it is incredibly slow.fly said:Then why in the hell would I use Perl?
Yeah, and its essentially useless on Windows.FlamingGlory said:Standard on anything *nix. Practical Extraction and Report Language... Like for parsing. There is nothing you cant do in perl, even if it is incredibly slow.
Well you werent specific on what you wanted done so:fly said:Yeah, and its essentially useless on Windows.
Function Haha(patrn, str)
Dim regEx, str1
str1 = "C:\Documents and Settings\Administrator\Desktop\driverscript\Drivers~\110\a\driver.inf"
Set regEx = New RegExp
regEx.Pattern = patrn
regEx.IgnoreCase = True
Haha = regEx.Replace(str1, str)
End Function
MsgBox(Haha("\\110\\a", ""))
set fso=CreateObject("Scripting.FileSystemObject")
'this is where you want to start looking from
listdir "C:\work\dev"
function listdir(folder)
set fold = fso.getfolder(folder)
set folcol = fold.subfolders
for each foo in folcol
set flist = foo.files
for each vfile in flist
if right(vfile, 3) = "inf" then
wscript.echo vfile
wscript.echo foo
a_foo = split(foo, "~")
wscript.echo a_foo(1)
end if
next
listdir (folder +"\"+foo.name)
next
end function