View previous topic :: View next topic |
Author |
Message |
jjgermis
Joined: 21 Jun 2006 Posts: 404 Location: N�rnberg, Germany
|
Posted: Tue Nov 10, 2009 11:57 am Post subject: Does FTN95 support UNC? |
|
|
Does FTN95 support Uniform Naming Convention (UNC)? I tried something like:
1.) file:///C:/Temp/assem170.ini and
2.) \\derhfhlf01.ww004.siemens.net\homes$\ADGEJO1\MATLAB\AssEm
without success. Is this correct or is there perhaps some trick to get this to work.
Last edited by jjgermis on Tue Nov 10, 2009 12:54 pm; edited 1 time in total |
|
Back to top |
|
 |
PaulLaidler Site Admin
Joined: 21 Feb 2005 Posts: 8210 Location: Salford, UK
|
Posted: Tue Nov 10, 2009 12:09 pm Post subject: |
|
|
Where would you want to use this?
In standard Fortran input/output? |
|
Back to top |
|
 |
jjgermis
Joined: 21 Jun 2006 Posts: 404 Location: N�rnberg, Germany
|
Posted: Tue Nov 10, 2009 12:54 pm Post subject: |
|
|
Our Fortran program is called with parameters: prog.exe $path$. The path tells the Fortran program where to find the input data (which is some data file). The data is managed by the calling program.
It is not a must. The GUI-programmer only asked if he can use the UNC. The results of our program must be saved at some place where the GUI can pick it up. |
|
Back to top |
|
 |
PaulLaidler Site Admin
Joined: 21 Feb 2005 Posts: 8210 Location: Salford, UK
|
Posted: Tue Nov 10, 2009 12:59 pm Post subject: |
|
|
The string for $path$ will presumably be passed OK but the question is how is that string used within the program. For example, is it used in a standard Fortran OPEN statement? |
|
Back to top |
|
 |
jjgermis
Joined: 21 Jun 2006 Posts: 404 Location: N�rnberg, Germany
|
Posted: Tue Nov 10, 2009 1:06 pm Post subject: |
|
|
I will first inquire if the file exist with inquire(FILE = $path$, EXIST=EXISTS) and after that open it with open($path$). |
|
Back to top |
|
 |
PaulLaidler Site Admin
Joined: 21 Feb 2005 Posts: 8210 Location: Salford, UK
|
Posted: Wed Nov 11, 2009 9:16 am Post subject: |
|
|
I am only guessing but there is no reason to think that this will make an internet connection. If the \\file prefix does not work then you can always strip it off in the program. Equally you could progam a connection to the internet using read_url@ or download@. |
|
Back to top |
|
 |
jjgermis
Joined: 21 Jun 2006 Posts: 404 Location: N�rnberg, Germany
|
Posted: Wed Nov 11, 2009 10:01 am Post subject: |
|
|
I will try these options. My colleague explained to me the problem: The software (GUI) requires a local database and many users than save this in "My Documents". This folder is automatically mounted to the sever at login to something like: \\ww004......\user\. The user actually never get to see the actual path (at least thats how I understand it). Within the network we call this the homedrive. In explorer the alias is something like H:\. I will report our final solution. |
|
Back to top |
|
 |
|