#209733 - 2014-12-09 10:15 PM
Re: DIR() Function - What am I doing wrong?
[Re: Allen]
|
JNK
Fresh Scripter
Registered: 2006-04-11
Posts: 33
Loc: USA
|
Sorry for the delay in replying; busy week.
adding dir(,1) ... dir("",1)
worked!!
I will probably settle on the UDF option above (or Powershell), but another option I figured out was pipe the output from the DOS dir command to a text file and then use open() to read the contents of the file. Add in some instr() logic and a call to deltree and ! It is a long way around but is functional.
... appreciate the tip for the syntax for using the 1 index. Proper use of that isn't documented very well. Now I know!
Thanks!
|
|
Top
|
|
|
|
Moderator: Jochen, Allen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Arend_, Mart
|
1 registered
(Henriques)
and 2516 anonymous users online.
|
|
|