Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Changing VFP Temp File Location to a shared network folder

Status
Not open for further replies.

njpilot172

Programmer
Aug 9, 2005
10
US
How can I force VFP to use a shared network drive for its TEMP folder?

Background:
My client has decided to use M$ Terminal Services to solve its networking woes. ALL users now log in to Terminal Services to access their apps. NO users have any rights to anything on the C: drives of the terminal servers.

VFP attempts to create a C:\[indexname].idx file each time the application indexes a (temporary) cursor. This causes an error as the users do not have sufficient rights to create C:\[Indexname].Idx.

I have created a simple form for the users to display the value of SYS(2023). SYS(2023) states that the temp directory is C:\Documents and Settings\Username\Local Settings\Temp. This does not work, however, as the systems administrators will not allow any files to be saved on the Terminal Servers.

How can I specify the temp file from within my application. I would prefer NOT to have to re-code all Index On commands to include a filename.

TIA
 

According the VFP help:

You can specify a different location for temporary files using the Visual FoxPro interface or by using the TMPFILES, EDITWORK, PROGWORK, and SORTWORK settings in a Visual FoxPro configuration file.

The reference to the VFP interface refers to the File Locations tab on the Tools / Options form.

But, as Geoff says, it might not work with TS.

Mike


__________________________________
Mike Lewis (Edinburgh, Scotland)

My sites:
Visual FoxPro (www.ml-consult.demon.co.uk)
Crystal Reports (www.ml-crystal.com)
 
Thank's Geoff & Mike.
I'll give it a try and see what happens.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top