Map drive "on-the-Fly"

J

Justin

I need a way that when a file is created that it will be sent to a directory
that is on a dialer. Problem is that if user is using db and doesn't register
before hand the path, then error will occur, was wondering if there is a way
that I have like an on the fly mapping of the drive and after completion have
that drive delete from user pc. thanks
 
J

John Nurick

I've never done this, but it appears to be possible if you use the
Windows API functions WNetAddConnection() and WNetCancelConnection() (or
maybe WNetAddConnection2() and WNetCancelConnection2()).

A web search on these names should find examples of usage.
 
D

david epsom dot com dot au

To map a drive, you need to have a url.

If you have a url, you can send the file directly to the url,
without using a mapping.

(david)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top