Is it possible to provide a login and password in order to save a file to a UNC path such as a windows shared folder on a server? If not is there a way to do this another way within the fex file itself?
Such as: FILEDEF DATA DISK \\server\folder\\filename...-U username -P passwdThis message has been edited. Last edited by: Kerry,
Currenly working @ Learning Circle Education Services Previously worked @ Nationwide Insurance Prod: WebFOCUS 7.6.11
Test: WebFOCUS 7.6.11
Dev: WebFOCUS 7.6.11
October 25, 2012, 05:44 PM
Waz
Have you thought about using NET USE, then filedef the drive.
e.g.
! NET USE {driveletter}: \\server\share {password} /USER:{username}
-RUN
FILEDEF DATA DISK {driveletter}:\location...
Here is the help on the NET USE command
NET USE
[devicename | *] [\\computername\sharename[\volume] [password | *]]
[/USER:[domainname\]username]
[/USER:[dotted domain name\]username]
[/USER:[username@dotted domain name]
[/SMARTCARD]
[/SAVECRED]
[[/DELETE] | [/PERSISTENT:{YES | NO}]]
NET USE {devicename | *} [password | *] /HOME
NET USE [/PERSISTENT:{YES | NO}]
Waz...
Prod:
WebFOCUS 7.6.10/8.1.04
Upgrade:
WebFOCUS 8.2.07
OS:
Linux
Outputs:
HTML, PDF, Excel, PPT
In Focus since 1984
Pity the lost knowledge of an old programmer!
October 30, 2012, 03:09 PM
neuro
I think this might work if the WebFocus Server were a Windows Server. Our WebFocus server is installed on ZLinux and not Windows Server.
0 ERROR AT OR NEAR LINE 184 IN PROCEDURE ADHOCRQ FOCEXEC *
(FOC340) DIALOGUE MANAGER -WRITE FILE NOT ALLOCATED OR FILEDEF'ED: -WRITE
Currenly working @ Learning Circle Education Services Previously worked @ Nationwide Insurance Prod: WebFOCUS 7.6.11
Test: WebFOCUS 7.6.11
Dev: WebFOCUS 7.6.11
October 30, 2012, 04:41 PM
Waz
I guess you will have to use a linux command instead.
Can you get the share mounted to the file system ?