Using UNC paths

VA Smalltalk is a "100% VisualAge compatible" IDE that includes the original VisualAge technology and the popular VA Assist and WidgetKit add-ons.

Moderators: Eric Clayberg, wembley, tc, Diane Engles, solveig

Using UNC paths

Postby jackiezachman » Mon Mar 10, 2008 3:18 pm

I have created a windows service which reads/writes data to files. I have no problems when the files are local to the computer on which the service is running. However, I would like to be able to access files on another computer on the network. Using a mapped network drive does not work because the windows service does not have access to the mapped drive.

Can I use UNC file paths instead of mapped network drives? I use a lot of objects in the CommonFileSystem application. Do they support UNC file paths? For example, how would I test for the existence of a folder or file? I currently use CfsStat stat: 'localfilepath'.

Is there support for reading directories, searching for filenames, opening files, etc. using UNC paths and will it work running as an NT service?

I am running IBM Smalltalk 7.0.
jackiezachman
 
Posts: 11
Joined: Tue Nov 06, 2007 6:53 am

Re: Using UNC paths

Postby marten » Tue Mar 11, 2008 2:33 am

jackiezachman wrote:I have created a windows service which reads/writes data to files. I have no problems when the files are local to the computer on which the service is running. However, I would like to be able to access files on another computer on the network. Using a mapped network drive does not work because the windows service does not have access to the mapped drive.

Can I use UNC file paths instead of mapped network drives? I use a lot of objects in the CommonFileSystem application. Do they support UNC file paths? For example, how would I test for the existence of a folder or file? I currently use CfsStat stat: 'localfilepath'.

Is there support for reading directories, searching for filenames, opening files, etc. using UNC paths and will it work running as an NT service?

I am running IBM Smalltalk 7.0.


They should work, but running as NT service may leads to access right problems - the service perhaps runs under a different account - but this is
a different problem and yes, even a windows service should be able to have access to mapped drives - if the services does itselfs the mapping.

Marten
Marten Feldtmann, Principal Smalltalk User, Private
SkypeMe callto://marten.feldtmann
marten
[|]
 
Posts: 641
Joined: Sat Oct 14, 2006 7:10 am
Location: Hamburg - Germany


Return to VA Smalltalk 7.0, 7.5 & 8.0

Who is online

Users browsing this forum: Yahoo [Bot] and 1 guest