Hi Todd,
Try this:
LOCAL lcWork
lcWork = "dir c:\data\perfmeas\" + MvTmp + "dbf\*.*"
RUN &lcWork. > tmp.txt
If that doesn't work, you may have a conflict in DOS with a directory name that begins with a numeric character rather than with an alpha character -- I'd try a value of MvTmp that started with an alpha and see if that didn't make a difference.
HTH.
>I am having problems passing a variable through the run command to DOS. I am listing small example of what I am trying to do. The following statement works without any problems
>
>MvTmp = "0531"
>!"dir c:\data\perfmeas\dbf" + MvTmp + "\*.* > tmp.txt"
>
>The problem is when the memory variable is before the dbf. So this works ...\dbf" + MvTmp..., but I cannot figure out how to get this to work ...MvTmp + "dbf\*.*...
>
>Thanks
>Todd
Evan Pauley, MCP
Positronic Technology Systems LLC
Knoxville, TN
If a vegetarian eats vegetables, what does a humanitarian eat?