i'm trying to figure out how to do the following
i want to product a dir of a folder
eg
code:
F:\>dir /ad
Volume in drive F is Home
Volume Serial Number is E85A-16B8
Directory of F:\
24/07/2002 15:40 <DIR> .
24/07/2002 15:40 <DIR> ..
25/07/2002 11:34 <DIR> home
22/07/2002 16:07 <DIR> kixtart
19/07/2002 15:12 <DIR> NTReskit
15/07/2002 10:29 <DIR> Personal
22/07/2002 16:26 <DIR> repl
23/07/2002 10:58 <DIR> WINDOWS
24/07/2002 17:45 <DIR> WIP
0 File(s) 0 bytes
9 Dir(s) 98,351,325,184 bytes free
using the dir /ad switch
i want to then read in the names of the directoires into a loop which does (dir name is the same as the share but with a $ after it)
net share $dirname$ /cache:no
i just am unsure how to do the reading the file bit etc any help would be great
Pete
[ 25 July 2002, 14:37: Message edited by: Peter Fry ]