well my problem is more related to dos script
i want to capture the o/p of the following batch file into variable so as to pass them into another batch file which can insert it into a table which can keep details of free space available on drives.
can some1 guide me how to capture them into variables
@ECHO OFF
c:
dir > dir.txt
echo on Drive C
findstr "free" dir.txt
del dir.txt
D:
dir > dir.txt
echo on Drive D
findstr "free" dir.txt
db2cmd -i aaa.bat
regards
Rahul singh