MD is a command not a function and therefore does not use ().

This code works for me.
Code:
 $ = Open(1,"C:\data\scripts\workstations.txt")
? $
$Machine = ReadLine (1)
While @Error = 0
?$Machine
MD "\\" + $Machine + "\c$$\test"
? @serror
$Machine = ReadLine (1)
Loop



The remote direcotry was verified.

1st execution:
Quote:

c:\data\scripts>..\kix\kix.450\kix32 shit.kix

0
bullockha2
The operation completed successfully.





2nd execution:
Quote:

c:\data\scripts>..\kix\kix.450\kix32 shit.kix

0
bullockha2
Cannot create a file when that file already exists.






Edited by Howard Bullock (2006-05-25 08:21 PM)
_________________________
Home page: http://www.kixhelp.com/hb/