2

I mapped a drive and tried to generate a text file through progress 4gl in that mapped drive. But file was not generated in that mapped drive. When I tried to generate the same file in a local drive then it was generated successfully. Can someone help me with this problem?

I have attached the Progress 4gl code to generate text file

this code has the location of local drive

procedure p-text-generation:
  
  output to value ("//10.0.0.29/myfolder/abhinit.txt").
  put unformatted
  space(1) "hello from p-text-generation" skip.
  output close.
  
END PROCEDURE. /* p-text-generation */ 


this code has the location of mapped drive

procedure p-text-generation:
  output to value ("T:/abhinit.txt").
  put unformatted
  space(1) "hello from p-text-generation" skip.
  output close.
  
END PROCEDURE. /* p-text-generation */

Both the logics are running in Appserver. Without Appserver the mapped path is working fine

The folder myfolder is mapped as T drive in my system

2 Answers2

0

Try setting your path as this:
(I'm currently using this way on Windows Server)

OUTPUT TO VALUE("t:\abhinit.txt").
Raphael Frei
  • 361
  • 1
  • 10
0

Mapped Drives only work if you are running directly from prowin.exe or prowin32.exe. When running on an appserver, drives aren't mapped and the UNC permission is taken from the user running the progress service in windows

KevinR
  • 1
  • 1