×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Contact US

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Issuing Novell netware commands from within a C++ program.

Issuing Novell netware commands from within a C++ program.

Issuing Novell netware commands from within a C++ program.

(OP)


Hello,

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.

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.

Any advice would be greatly appreciated.

If it helps, below is the batch file equivalent of what I'd like this program to do...

attach s:=[server name]/sys:comm\from_hq /[user name] <[password]

s:

dir >> c:\listing.txt

RE: Issuing Novell netware commands from within a C++ program.

Look up the shell command and see if that helps. Note that excecution carries on without waiting for it to terminate.

Good Luck

D

RE: Issuing Novell netware commands from within a C++ program.

You have to do socket programming to access remote machines. Like FTP server. There are some functions in MFC which can do the same . Then you can get the directory structure of a remote machine.


Thanx
Siddhartha Singh
ssingh@aztecsoft.com

RE: Issuing Novell netware commands from within a C++ program.

Look up the WNet functions in the Windows API.  Connect to the drives using UNC paths and the WNet functions.  This will allow your program to work regardless of the type of server (Netware/NT) you need to access, and does not require and Novell specific libraries to be linked in to your code.

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close