Workstation directory when in ProIV
Posted 14 July 2004 - 02:29 PM
Does anyone know an easy way to change the active directory of the GUI workstation during ProIV start up?
I know that within Windows, the Start In directory can be specified, but this has be done on each workstation. A rather daunting task for some of our clients with hundreds of workstations.
Long boring background
The business need is that we are using CLIENT.SEND and CLIENT.RECEIVE so that certain files can be worked on locally. Although CLIENT.SEND does allow you to specify %TEMP%, CLIENT.EXECUTE does not. This would be the ideal solution.
Since there is no way to guarantee a specific directory on all versions of Windows, the next option is to send the file to the active directory and run an application against it. However, the active directory, depending on however the shortcut to the PIV is setup can be a network location, the desktop, or anywhere.
Although we can instruct our clients to then change the "Start In" directory for all the PIV's, it is not a good solution. Ideally, we would use the %TEMP% directory for all such transfers, but cannot do it unless there is a way to make ProIV aware of a workstation environment variable or to change the active directory of ProIV at startup.
Thanks in advance,
Posted 14 July 2004 - 02:47 PM
To retrieve a paid check file, I used the ActiveX File Open Box and the user indicated where to get the file. To place issued checks, I wrote a screen where the user indicated where they wanted the file, Ie: C:\Bank\Export.
Works pretty good.
Posted 14 July 2004 - 05:00 PM
say c:/temp/myappname/temp for example, use it and then
of the poster and do not represent those of any organisation.
Posted 14 July 2004 - 05:28 PM
You can find these in the Time Sheet Demo that comes with ProIV. I converted them from pro-isam to Oracle.
Posted 14 July 2004 - 05:35 PM
I was trying to avoid creating directories. Some of our clients lock down the C: drive pretty tightly. As such, I can't guarantee that I would be able to create a C:\temp directory.
The only guaranteed access directory would be %TEMP%, but that's different on each version of Windows. If, however, I could figure out what directory that is, then I think that I would be OK.
Of course, having the %TEMP% environment variable work in CLIENT.EXECUTE would be the other solution, but I don't expect that change to come down the pike soon.
Posted 14 July 2004 - 09:10 PM
The %TEMP% tag is just referencing the $TEMP variable from dos.
You can get the value of this in ProIV by using the &$@~TEMP in PrioIV logic. Then you can build up a string that you then use in CLIENT.EXECUTE...
Would that work for you??
Posted 14 July 2004 - 10:12 PM
How about creating an ActiveX control in VB (or what ever), then you can do what you like and pass the vaule back through a property to ProIV.
You could have a 'dummy' screen (or your main menu) as the logon function, that has the ActiveX control on and then store the result back in a file / table for use later on.
Posted 15 July 2004 - 12:57 AM
#RET = CLIENT.GETPATH(“%TEMP%”, $PATH)
The properties manual lists the following logical paths
GRAPHICS, GRAPHICS_CACHE, GRAPHICS_URL, TEMP, WINDOWS & HOME.
CLIENT also appears to work.
Posted 24 July 2004 - 09:02 PM
My basic problem is I am trying to launch an dos based application from PROiv(using SYSTEM) command. I want to close the dos window automatically once the application is closed. Right now I have to close the DOS window by clicking on 'x".
If I execute the batch file on its own, it works fine(closes the window automatically, if i have @cls statement). But the same does not work when called from PROIV. I do not want to run the application in Async mode.
Any suggestions is appreciated.
Reply to this topic
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users