AkelPad Forum Index AkelPad
Support forum
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Request: FTP Access Plug-in
Goto page Previous  1, 2
 
Post new topic   Reply to topic    AkelPad Forum Index -> Plugins
View previous topic :: View next topic  
Author Message
KDJ



Joined: 06 Mar 2010
Posts: 1337
Location: Poland

PostPosted: Thu Aug 25, 2011 3:08 pm    Post subject: Reply with quote

FeyFre wrote:
There is special technology re-invented by MicroSoft for such task - Network Providers.

What is Network Providers? It's probably something new.
Do you use it, you can mapping FTP to the local device?
How to use it in script?
Back to top
View user's profile Send private message
FeyFre



Joined: 07 Aug 2007
Posts: 2038
Location: Vinnitsa, Ukraine

PostPosted: Thu Aug 25, 2011 3:56 pm    Post subject: Reply with quote

KDJ, "Network Providers"... it is something old, very old.
Run "control ncpa.cpl"
In menu "Advanced" select "Advanced Settings"
Tab "Adapters and Bindings"
In upper list you have all your network connections
In lower - bindings "Network Provider"=>"Protocol" for selected in upper list connection.
As you see there - "Microsoft Windows Network" is "Network Provider" which allows to see "shared folder" and allows to share own folder among PCs.
The same is "Web Client Network" (WebDAV - working with file structure of http servers). The same is "Microsoft Terminal Services". If you ever installed Windows on VirtualBox, and configure "Shared Folders" feature(i.e. file system on host machine see in guest OS too), you should notice that this sharing in guest implemented as separate item in Network Neighbourhood similarly as "Microsoft Windows Network" i.e. it is another "Network Provider".
This is way it should be done for FTP. Mapping drive letter is done by OS itself, not by third party. No extra processes.
How to locate installed network provider you can read here
Back to top
View user's profile Send private message AIM Address Yahoo Messenger MSN Messenger
KDJ



Joined: 06 Mar 2010
Posts: 1337
Location: Poland

PostPosted: Thu Aug 25, 2011 5:26 pm    Post subject: Reply with quote

FeyFre
Thank you for the extensive clarification.
But still I don't know how to map drive Z: to FTP.
Managed to do this for http WebDAV ( http://akelpad.sourceforge.net/forum/viewtopic.php?p=14182&highlight=#14182 ).
Can I use WNetAddConnection2() function for this?
Back to top
View user's profile Send private message
FeyFre



Joined: 07 Aug 2007
Posts: 2038
Location: Vinnitsa, Ukraine

PostPosted: Thu Aug 25, 2011 5:35 pm    Post subject: Reply with quote

KDJ
No, you cann't until you install proper Network Provider. I did not found such provider yet
Back to top
View user's profile Send private message AIM Address Yahoo Messenger MSN Messenger
KDJ



Joined: 06 Mar 2010
Posts: 1337
Location: Poland

PostPosted: Fri Aug 26, 2011 4:25 pm    Post subject: Reply with quote

FeyFre
With Novell NetDride is the following problem.
Using NetDrive, I mapped drive Z: to [Yustas.NeO] ftp.
From AkelPad run MapNetDrive.js script.
Close window MapNetDrive.js.
MapNetDrive.js run again.
At this point AkelPad crashes.



After removing the mapping everything works fine.
Crash occurs probably when calling functions WNetGetConnection() and WNetGetUser() in lines 425 and 431.
FeyFre, I have a request, can you check it out?
Back to top
View user's profile Send private message
FeyFre



Joined: 07 Aug 2007
Posts: 2038
Location: Vinnitsa, Ukraine

PostPosted: Fri Aug 26, 2011 5:42 pm    Post subject: Reply with quote

KDJ
ManNetDrive.js is one in Script Collection?
NetDrive - which version? Give me a link to it.
Back to top
View user's profile Send private message AIM Address Yahoo Messenger MSN Messenger
KDJ



Joined: 06 Mar 2010
Posts: 1337
Location: Poland

PostPosted: Fri Aug 26, 2011 5:47 pm    Post subject: Reply with quote

FeyFre
Yes, MapNetDrive.js is in collection:
http://akelpad.sourceforge.net/forum/viewtopic.php?p=13784#13784
Novell NetDrive 4.1:
http://7pl.info/down1oad/%5B7pl.info%5Dnetdrive.7z
Back to top
View user's profile Send private message
FeyFre



Joined: 07 Aug 2007
Posts: 2038
Location: Vinnitsa, Ukraine

PostPosted: Fri Aug 26, 2011 6:47 pm    Post subject: Reply with quote

KDJ, it seem you somewhere corrupted memory(i.e you have allocated buffer but wrote into wrong location - behind it).
Back to top
View user's profile Send private message AIM Address Yahoo Messenger MSN Messenger
KDJ



Joined: 06 Mar 2010
Posts: 1337
Location: Poland

PostPosted: Fri Aug 26, 2011 8:17 pm    Post subject: Reply with quote

FeyFre
In the script do not see errors.
It looks like this in a conflict between NetDrive and WNetGetConnection().
Each time the appeal is to the same address 0x71acb8e6.
In program settings (Novell NetDrive), on Advanced tab I turned off the option "Enable Network Provider".
Now the script works.
Back to top
View user's profile Send private message
se7h



Joined: 28 Sep 2009
Posts: 767
Location: Minsk, Belarus

PostPosted: Sat Aug 27, 2011 5:31 am    Post subject: Reply with quote

KDJ wrote:
Now the script works.


and where script?
Back to top
View user's profile Send private message
KDJ



Joined: 06 Mar 2010
Posts: 1337
Location: Poland

PostPosted: Sat Aug 27, 2011 9:23 am    Post subject: Reply with quote

se7h
It is the script MapNetDrive.js.
See what I wrote above.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    AkelPad Forum Index -> Plugins All times are GMT
Goto page Previous  1, 2
Page 2 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


SourceForge.net Logo Powered by phpBB © 2001, 2005 phpBB Group