<br>
<br>
Hello,<br>
<br>
I'm hoping someone out there can offer some advice on a problem I'm having. I need to write a program that can map to a LAN, get a directory listing from various parts of that network, and then make some assesments of the files found based on the time/date stamps.<br>
<br>
The assesment portion of the program should be pretty straight forward, but I have no idea how to get the program to map the drives, or even generate the directory listings for that matter. Granted, I could use a series of batch files to map the drives and send the directory listings to text files for later use by the program, but that seems a rather inellegant way to do things. Besides, I'm not sure how I'd even call one of the batch files from within the C++ program.<br>
<br>
Any advice would be greatly appreciated.<br>
<br>
If it helps, below is the batch file equivalent of what I'd like this program to do...<br>
<br>
attach s:=[server name]/sys:comm\from_hq /[user name] <[password]<br>
<br>
s:<br>
<br>
dir >> c:\listing.txt<br>
<br>
<br>
Hello,<br>
<br>
I'm hoping someone out there can offer some advice on a problem I'm having. I need to write a program that can map to a LAN, get a directory listing from various parts of that network, and then make some assesments of the files found based on the time/date stamps.<br>
<br>
The assesment portion of the program should be pretty straight forward, but I have no idea how to get the program to map the drives, or even generate the directory listings for that matter. Granted, I could use a series of batch files to map the drives and send the directory listings to text files for later use by the program, but that seems a rather inellegant way to do things. Besides, I'm not sure how I'd even call one of the batch files from within the C++ program.<br>
<br>
Any advice would be greatly appreciated.<br>
<br>
If it helps, below is the batch file equivalent of what I'd like this program to do...<br>
<br>
attach s:=[server name]/sys:comm\from_hq /[user name] <[password]<br>
<br>
s:<br>
<br>
dir >> c:\listing.txt<br>
<br>