WinBatch Tech Support Home

Database Search

If you can't find the information using the categories below, post a question over in our WinBatch Tech Support Forum.

TechHome

Functions

Can't find the information you are looking for here? Then leave a message over on our WinBatch Tech Support Forum.

IniReadPvt returns default using Citrix WinFrame.

Keywords: 	  IniReadPvt Citrix WinFrame.

Question:

I am using the function IniReadPvt and getting strange results.

Problem:
I am attempting to READ a private ini file located at d:\winframe\crgroups.ini. However it seems to be reading the file at h:\user\windows\crgroups.ini. I am specifying the path in the function as follows:

   inireadpvt("stuff","password","default","d:\winframe\crgroups.ini")

The section [stuff] does exist in the ini file at:

   d:\winframe\crgroups.ini. 

And doesn't exist in the ini file at:

   h:\user\windows\crgroups.ini
The return value I get when executing:
   inireadpvt("stuff","password","default","d:\winframe\crgroups.ini")

is the value:'default', even though, the section [stuff] and the keyword password=n exists in the file "d:\winframe\crgroups.ini".

How could this be?

Answer:

Well after much ado and communication with Citrix, it seems that the directory d:\winframe, is special to Citrix WinFrame. What seems to happen is that when the winframe directory is referenced, it automatically points to (refers you to) the users\windows directory, because of the multi-user platform.

In other words:
The read of the ini, is being redirected by Citrix to the users/windows directory....

Therefore, if you want to access the ini file directly, I would suggest creating a new directory such as c:\Globalini and placing the private ini-file "crgroups.ini" in this directory and have your script point to the NON-WinFrame directory:

   inireadpvt("stuff","password","default","d:\Globalini\crgroups.ini")


Article ID:   W14115
Filename:   IniReadPvt returns default using Citrix WinFrame.txt
File Created: 1999:05:03:14:23:30
Last Updated: 1999:05:03:14:23:30