Discussion:
Windows Temp folder
(too old to reply)
Charlie Lutz
2008-11-25 19:25:25 UTC
Permalink
Can someone tell me how to find out where the windows temp file is programmitically so I can grab the path and use it? What I want to try is to set the BDE temp files to this folder using Set BDETempDir(). Any help is greatly appreciated.

Thanks,
Charlie
Charlie Lutz
2008-11-25 21:25:41 UTC
Permalink
Copy the attached into a single file and run with a parameter for which
folder you want. The Windows Folder is 36.
Hope this helps,
Jan
(watch for line wrap)
Thanks Jan,
I will play with and see what happens.

Charlie
*Lysander*
2008-11-25 22:23:42 UTC
Permalink
Post by Charlie Lutz
Thanks Jan,
I will play with and see what happens.
The Windows-Temp folder does not seem to be part of that list.
Then I suggest you take the "Common_AppData" because it also complies
with Windows Vista if the BDE is writing files there.

The actual temp folder for the logged-on user also is delivered by the
getenv() function, by the way. For example '? getenv("temp")'.
Charlie Lutz
2008-12-01 14:26:16 UTC
Permalink
Post by *Lysander*
Post by Charlie Lutz
Thanks Jan,
I will play with and see what happens.
The Windows-Temp folder does not seem to be part of that list.
Then I suggest you take the "Common_AppData" because it also complies
with Windows Vista if the BDE is writing files there.
The actual temp folder for the logged-on user also is delivered by the
getenv() function, by the way. For example '? getenv("temp")'.
Vista is not an issue YET, but some day it will. Uncle Sam will not allow us to use it (that may not be all bad!).

Thanks for the suggestion.

Charlie
Lysander
2008-12-01 14:34:56 UTC
Permalink
Post by Charlie Lutz
Vista is not an issue YET, but some day it will. Uncle Sam will not allow us to use it (that may not be all bad!).
Thanks for the suggestion.
oh! That's interesting.... I did not know that... is the US Gov. aware
of the economical damage it is doing to MS (one of the biggest domestic
companies) by this directive?
Greg Hill
2008-12-01 19:10:58 UTC
Permalink
Post by Charlie Lutz
Vista is not an issue YET, but some day it will. Uncle Sam will not
allow us to use it (that may not be all bad!).
Thanks for the suggestion.
oh! That's interesting.... I did not know that... is the US Gov. aware of
the economical damage it is doing to MS (one of the biggest domestic
companies) by this directive?
Many finanicial institution have not approved Vista yet.

I do work for a Ramen James office and they are not allowed to use Vista and
I am told the same goes for others too.

I love it<g>

Greg Hill
Rainald
2008-12-02 04:01:48 UTC
Permalink
Post by Greg Hill
I do work for a Ramen James office and they are not allowed to use
Vista and I am told the same goes for others too.
Pls permit the dumb question of someone living outside "God's own
country" (like Lysander):
Who is "Ramen James"?
:-)

Rainald
Greg Hill
2008-12-02 07:01:54 UTC
Permalink
Post by Rainald
Post by Greg Hill
I do work for a Ramen James office and they are not allowed to use
Vista and I am told the same goes for others too.
Pls permit the dumb question of someone living outside "God's own
Who is "Ramen James"?
:-)
I am a terrible speller (especially when I try), the proper spelling for the
name is Raymond James
They are an Investment Management business, people who have the experience
and knowledge of where and how to invest money. Supposedly<g>

http://www.raymondjames.com/
http://www.raymondjamesbank.com/index.htm

Another more popular one is http://www.morganstanley.com/

You will get the idea from one of the above links.

Greg Hill
Rainald
2008-12-03 03:24:56 UTC
Permalink
Post by Greg Hill
Post by Rainald
Post by Greg Hill
I do work for a Ramen James office and they are not allowed to use
Vista and I am told the same goes for others too.
Pls permit the dumb question of someone living outside "God's own
Who is "Ramen James"?
:-)
I am a terrible speller (especially when I try), the proper
spelling for the name is Raymond James
They are an Investment Management business, people who have the
experience and knowledge of where and how to invest money.
Supposedly<g>
http://www.raymondjames.com/
http://www.raymondjamesbank.com/index.htm
Thanks for explaining!

Rainald
Lysander
2008-12-02 10:36:37 UTC
Permalink
That was disappointing and a real example of MS. I have had enough
experience with it to know the benefits but a performance hit like that will
discourage almost anyone.
The situation is much different in Europe, I think.

First of all, we do care much for efficiency. Most companies are doing
an exchange of hardware after 3-5 years. So it is more likely that the
hardware is up to date.

We do run Vista/XP in mixed mode on all new machines. Not any slowdown!
A new HQ machine costs about 650 Euro, Vista and XP included.

Upgrading a machine only with some new components never is efficient, at
least not if you also include your loss of time in the bill.

Vista is doing a lot of things FASTER than XP has done. Roaming
profiles, for example. Roaming locations, for example.

Most of all, it saves a lot of time and money in IT departments, because
administration and security management became much much easier.
Lysander
2008-12-02 09:28:22 UTC
Permalink
Post by Greg Hill
I do work for a Ramen James office and they are not allowed to use Vista and
I am told the same goes for others too.
I love it<g>
This is not wise.
I am definitely not an MS guy. When I am using Software by MS, it is
only in places where they are indeed the most efficient for me to do so.

But Vista, guys, Vista is a really really good OS, which has a lot of
pro's you don't want to be missing again once you have them.

Besides, it is MUCH more secure then all its predecessors together.
A lot of companies, especially big ones, and such that need to care
about security, should really really upgrade to Vista as soon as possible.

And once they found out, they will probably do so very fast, so you
better get accustomed to have your software compatible when the time comes.
Greg Hill
2008-12-02 10:01:57 UTC
Permalink
Post by Lysander
Post by Greg Hill
I do work for a Ramen James office and they are not allowed to use Vista
and I am told the same goes for others too.
I love it<g>
This is not wise.
I am definitely not an MS guy. When I am using Software by MS, it is only
in places where they are indeed the most efficient for me to do so.
But Vista, guys, Vista is a really really good OS, which has a lot of
pro's you don't want to be missing again once you have them.
Besides, it is MUCH more secure then all its predecessors together.
A lot of companies, especially big ones, and such that need to care about
security, should really really upgrade to Vista as soon as possible.
And once they found out, they will probably do so very fast, so you better
get accustomed to have your software compatible when the time comes.
My app is running on Vista, almost all my customers have a mixed
environment.
I had it loaded on a laptop for a while, it ran slower than my "4 year old
Laptop with only 512 RAM and shared video memory with XP".
That was disappointing and a real example of MS. I have had enough
experience with it to know the benefits but a performance hit like that will
discourage almost anyone.

Greg Hill
Rainald
2008-12-03 13:24:56 UTC
Permalink
Greg Hill wrote:

[Vista]
Post by Greg Hill
I had it loaded on a laptop for a while, it ran slower than my "4
year old Laptop with only 512 RAM and shared video memory with XP".
It just depends on the resources. It's difficult with RAM below 1.0GB.
My rather old HP tc1100 TabletPC with 1.5GB RAM is running under Vista.
It's not really faster overall still I prefer it over the situation
under XP.

Rainald
Greg Hill
2008-12-03 17:09:57 UTC
Permalink
Post by Rainald
[Vista]
Post by Greg Hill
I had it loaded on a laptop for a while, it ran slower than my "4
year old Laptop with only 512 RAM and shared video memory with XP".
It just depends on the resources. It's difficult with RAM below 1.0GB.
My rather old HP tc1100 TabletPC with 1.5GB RAM is running under Vista.
It's not really faster overall still I prefer it over the situation
under XP.
I am saying that a almost 5 year old Laptop with 512 RAM, Toshiba Satellite
P4 is faster than a 3 year newer Laptop 1 GIG Ram, and a faster dual core
processor.

To me that is sad sad truth about Vista.

Can you or Andre explain the specific benefits of security in comparison to
XP?

Greg Hill
Greg Hill
2008-12-03 19:56:06 UTC
Permalink
Post by Greg Hill
I am saying that a almost 5 year old Laptop with 512 RAM, Toshiba
Satellite P4 is faster than a 3 year newer Laptop 1 GIG Ram, and a faster
dual core processor.
One GB RAM for desktops only costs about 20 Euro over here, HQ.
For Laptops around 27 Euro.
It is not wise to buy a laptop with less than 3 or 4 GB, or to not upgrade
that.
I was using that Vista laptop as a loaner while mine was being serviced.

Greg Hill
*Lysander*
2008-12-03 18:09:12 UTC
Permalink
Post by Greg Hill
Can you or Andre explain the specific benefits of security in comparison to
XP?
I would have to write a book about that, because there are a lot of them.

- BitLocker finally works fine (HD encryption)
- Remote granting/revoking of permissions (from Server to Client)
- USB control (who may connect, what may he load/execute or not)
- Admin can force a security check for Laptops not logged on
- Sandbox environment for applications, e.g. Internet Explorer
- lowest common privilege decides for combined processes

That last point sounds so small but has indeed very big benefits.
It means that even _IF_ you are logged-on as admin, and someone hijacks
your processes by coming through your browser, he won't be able to do
anything because the browser _NEVER_ runs with admin privileges anymore.
Things like malicious Active-Xs vastly belong to the past.


But it is not possible to reduce Vista benefits only to security.
There is also a huge gain in comfort, and the administration of Vista
clients by a corporate admin is much much much faster and easier.

All aspects of roaming, for example, have always been a PITA. Now
everything is easy. My laptop knows by itself when I am roaming from -
for example - Berlin airport to Frankfurt or whether I am roaming from
company to home.

In general, applications that cause problems will be terminated on
startup, not while running. The risk of dataloss is much less because of
that feature.

And... *g*... all DOS games are running much better than on XP :)
Greg Hill
2008-12-04 17:39:11 UTC
Permalink
Post by *Lysander*
Post by Greg Hill
Can you or Andre explain the specific benefits of security in comparison
to XP?
I would have to write a book about that, because there are a lot of them.
- BitLocker finally works fine (HD encryption)
- Remote granting/revoking of permissions (from Server to Client)
- USB control (who may connect, what may he load/execute or not)
- Admin can force a security check for Laptops not logged on
- Sandbox environment for applications, e.g. Internet Explorer
- lowest common privilege decides for combined processes
That last point sounds so small but has indeed very big benefits.
It means that even _IF_ you are logged-on as admin, and someone hijacks
your processes by coming through your browser, he won't be able to do
anything because the browser _NEVER_ runs with admin privileges anymore.
Things like malicious Active-Xs vastly belong to the past.
But it is not possible to reduce Vista benefits only to security.
There is also a huge gain in comfort, and the administration of Vista
clients by a corporate admin is much much much faster and easier.
All aspects of roaming, for example, have always been a PITA. Now
everything is easy. My laptop knows by itself when I am roaming from - for
example - Berlin airport to Frankfurt or whether I am roaming from company
to home.
In general, applications that cause problems will be terminated on
startup, not while running. The risk of dataloss is much less because of
that feature.
And... *g*... all DOS games are running much better than on XP :)
Andre,
Thank you for the info. It does have an appeal when these things are
pointed out.
The one thing that does cause lots of trouble are programs running without
permission. It sounds like that is hanled much better in Vista, possibly
could stop the majority of Viruses?

Greg Hill
Lysander
2008-12-04 18:31:52 UTC
Permalink
Post by Greg Hill
It sounds like that is hanled much better in Vista, possibly
could stop the majority of Viruses?
Does, actually.

Imagine that all this freaky stuff you get behind the scene from
marauding Active-Xs can be hamstrung, or even, is so by default.


How else do come viruses or other malware onto a machine?

- outbound employees get a malware on their laptop and then dock it back
to the company's network, which usually is protected quite good.
If the admin wants, no laptop can dock into the network before a
thorough malware check is done (this happens automatically whenever a
client is logged on again after XY hours)

- colleagues are transporting data on private USB sticks or other media
of that type. Admins can now make sure that only registered USB devices
can be connected to the system. Also they can force a monitoring of who
has been copying what and when. Also they can block certain types of
files inbound or outbound.



What else is a major concern for enterprises... ?
If a laptop gets stolen but you have sensitive data on it...
Now an admin can decide to BitLock the drives and you can start the
system only when you have the chipcard as well. This works a level below
the OS, so you canNOT just install another OS to read the disk, as it
was with NTFS privileges.


Fast user switching can now be used, also.
In XP this was a big security risk, because the first user who was
logged on always had elevated privileges.


And last not least not any piece of software can just so write to a
protected folder. So, even if all other mechanisms fail, a malicious
software can still not write files into the core directories or exchange
MS components by malicious ones.


For me, with all these benefits, it is only a question of time until
enterprise admins will have their CEOs convinced to use it more. And the
question whether an old or legacy piece of software is compliant will
become less and less important.
Incompatible software might very quickly not be needed any longer if
there is something compatible as a competition.

*Lysander*
2008-12-03 18:11:19 UTC
Permalink
Post by Greg Hill
I am saying that a almost 5 year old Laptop with 512 RAM, Toshiba Satellite
P4 is faster than a 3 year newer Laptop 1 GIG Ram, and a faster dual core
processor.
One GB RAM for desktops only costs about 20 Euro over here, HQ.
For Laptops around 27 Euro.

It is not wise to buy a laptop with less than 3 or 4 GB, or to not
upgrade that.
Jan Hoelterling
2008-11-25 19:44:44 UTC
Permalink
Copy the attached into a single file and run with a parameter for which
folder you want. The Windows Folder is 36.

Hope this helps,

Jan

(watch for line wrap)

/* ----------------------------------------------------------------
GetCommonFolder() -- returns common Windows folders

Posted by Christopher F. Neuman in the dBASE Newsgroups
adapted by Jan Hoelterling ***@hoelterling.com
---------------------------------------------------------------- */

* Constants for definition of the various common folders:

#define CSIDL_DESKTOP 0
#define CSIDL_INTERNET 1
#define CSIDL_PROGRAMS 2
#define CSIDL_CONTROLS 3
#define CSIDL_PRINTERS 4
#define CSIDL_PERSONAL 5
#define CSIDL_FAVORITES 6
#define CSIDL_STARTUP 7
#define CSIDL_RECENT 8
#define CSIDL_SENDTO 9
#define CSIDL_BITBUCKET 10
#define CSIDL_STARTMENU 11
#define CSIDL_MYDOCUMENTS 12
#define CSIDL_MYMUSIC 13
#define CSIDL_MYVIDEO 14
#define CSIDL_DESKTOPDIRECTORY 16
#define CSIDL_DRIVES 17
#define CSIDL_NETWORK 18
#define CSIDL_NETHOOD 19
#define CSIDL_FONTS 20
#define CSIDL_TEMPLATES 21
#define CSIDL_COMMON_STARTMENU 22
#define CSIDL_COMMON_PROGRAMS 23
#define CSIDL_COMMON_STARTUP 24
#define CSIDL_COMMON_DESKTOPDIRECTORY 25
#define CSIDL_APPDATA 26
#define CSIDL_PRINTHOOD 27
#define CSIDL_LOCAL_APPDATA 28
#define CSIDL_ALTSTARTUP 29
#define CSIDL_COMMON_ALTSTARTUP 30
#define CSIDL_COMMON_FAVORITES 31
#define CSIDL_INTERNET_CACHE 32
#define CSIDL_COOKIES 33
#define CSIDL_HISTORY 34
#define CSIDL_COMMON_APPDATA 35
#define CSIDL_WINDOWS 36
#define CSIDL_SYSTEM 37
#define CSIDL_PROGRAM_FILES 38
#define CSIDL_MYPICTURES 39
#define CSIDL_PROFILE 40
#define CSIDL_SYSTEMX86 41
#define CSIDL_PROGRAM_FILESX86 42
#define CSIDL_PROGRAM_FILES_COMMON 43
#define CSIDL_PROGRAM_FILES_COMMONX86 44
#define CSIDL_COMMON_TEMPLATES 45
#define CSIDL_COMMON_DOCUMENTS 46
#define CSIDL_COMMON_ADMINTOOLS 47
#define CSIDL_ADMINTOOLS 48
#define CSIDL_CONNECTIONS 49
#define CSIDL_COMMON_MUSIC 53
#define CSIDL_COMMON_PICTURES 54
#define CSIDL_COMMON_VIDEO 55

function getcommonfolder
parameter folderid

if type('SHGetFolderPath') # 'FP'
extern clong SHGetFolderPath(clong,clong,clong,clong,cstring)
shfolder.dll from "SHGetFolderPathA"
endif

private nreturn,sbuffer,nval,f

sbuffer = space(255)
nreturn = SHGetFolderPath(null,folderid,0,null,sbuffer)
*msgbox(sbuffer,"ok")

return(sbuffer)
Andrew Shimmin
2008-11-25 23:32:28 UTC
Permalink
Jan,
#define CSIDL_MYDOCUMENTS 12
will not work and needs to be:

#define CSIDL_MYDOCUMENTS 5

Somewhere M$ changed it to:

#define CSIDL_PERSONAL 5

I only discover it when I tried to use it recently.

regards, andrew
Copy the attached into a single file and run with a parameter for which
folder you want. The Windows Folder is 36.
Hope this helps,
Jan
(watch for line wrap)
/* ----------------------------------------------------------------
GetCommonFolder() -- returns common Windows folders
Posted by Christopher F. Neuman in the dBASE Newsgroups
---------------------------------------------------------------- */
#define CSIDL_DESKTOP 0
#define CSIDL_INTERNET 1
#define CSIDL_PROGRAMS 2
#define CSIDL_CONTROLS 3
#define CSIDL_PRINTERS 4
#define CSIDL_PERSONAL 5
#define CSIDL_FAVORITES 6
#define CSIDL_STARTUP 7
#define CSIDL_RECENT 8
#define CSIDL_SENDTO 9
#define CSIDL_BITBUCKET 10
#define CSIDL_STARTMENU 11
#define CSIDL_MYDOCUMENTS 12
#define CSIDL_MYMUSIC 13
#define CSIDL_MYVIDEO 14
#define CSIDL_DESKTOPDIRECTORY 16
#define CSIDL_DRIVES 17
#define CSIDL_NETWORK 18
#define CSIDL_NETHOOD 19
#define CSIDL_FONTS 20
#define CSIDL_TEMPLATES 21
#define CSIDL_COMMON_STARTMENU 22
#define CSIDL_COMMON_PROGRAMS 23
#define CSIDL_COMMON_STARTUP 24
#define CSIDL_COMMON_DESKTOPDIRECTORY 25
#define CSIDL_APPDATA 26
#define CSIDL_PRINTHOOD 27
#define CSIDL_LOCAL_APPDATA 28
#define CSIDL_ALTSTARTUP 29
#define CSIDL_COMMON_ALTSTARTUP 30
#define CSIDL_COMMON_FAVORITES 31
#define CSIDL_INTERNET_CACHE 32
#define CSIDL_COOKIES 33
#define CSIDL_HISTORY 34
#define CSIDL_COMMON_APPDATA 35
#define CSIDL_WINDOWS 36
#define CSIDL_SYSTEM 37
#define CSIDL_PROGRAM_FILES 38
#define CSIDL_MYPICTURES 39
#define CSIDL_PROFILE 40
#define CSIDL_SYSTEMX86 41
#define CSIDL_PROGRAM_FILESX86 42
#define CSIDL_PROGRAM_FILES_COMMON 43
#define CSIDL_PROGRAM_FILES_COMMONX86 44
#define CSIDL_COMMON_TEMPLATES 45
#define CSIDL_COMMON_DOCUMENTS 46
#define CSIDL_COMMON_ADMINTOOLS 47
#define CSIDL_ADMINTOOLS 48
#define CSIDL_CONNECTIONS 49
#define CSIDL_COMMON_MUSIC 53
#define CSIDL_COMMON_PICTURES 54
#define CSIDL_COMMON_VIDEO 55
function getcommonfolder
parameter folderid
if type('SHGetFolderPath') # 'FP'
extern clong SHGetFolderPath(clong,clong,clong,clong,cstring)
shfolder.dll from "SHGetFolderPathA"
endif
private nreturn,sbuffer,nval,f
sbuffer = space(255)
nreturn = SHGetFolderPath(null,folderid,0,null,sbuffer)
*msgbox(sbuffer,"ok")
return(sbuffer)
Jan Hoelterling
2008-11-26 15:08:57 UTC
Permalink
Thanks, Andrew.

Jan
Andrew Shimmin
2008-11-25 23:36:54 UTC
Permalink
Charlie,

I went down this path months ago and it is full of issues.

You need to place the BDE temporary objects in the user's profile for multi-user applications to work properly and comply with the Vista security model.

I developed the bde.cc class specifically for this need.

regards, andrew
Post by Charlie Lutz
Can someone tell me how to find out where the windows temp file is programmitically so I can grab the path and use it? What I want to try is to set the BDE temp files to this folder using Set BDETempDir(). Any help is greatly appreciated.
Thanks,
Charlie
Charlie Lutz
2008-12-04 03:42:29 UTC
Permalink
In article <***@news-server>, shimmina@[IHateSpam]
connexus.net.au says...
Post by Andrew Shimmin
Charlie,
I went down this path months ago and it is full of issues.
Andrew,
Just saw your post (have been away for awhile). I will definitely look
this over. Many thanks.

Charlie
Ken Mayer [dBVIPS]
2008-11-26 05:56:40 UTC
Permalink
Post by Charlie Lutz
Can someone tell me how to find out where the windows temp file is programmitically so I can grab the path and use it? What I want to try is to set the BDE temp files to this folder using Set BDETempDir(). Any help is greatly appreciated.
There's code in the dUFLP that finds a lot of these folders ...

Always remember: check the dUFLP first. <g>

Ken
--
/(Opinions expressed are purely my own, not those of dataBased
Intelligence, Inc.)/

*Ken Mayer* [dBVIPS]
/Golden Stag Productions/
dBASE at goldenstag dot net
http://www.goldenstag.net/GSP
http://www.goldenstag.net/dbase/dBASEBooks.htm
http://www.goldenstag.net/dbase
Charlie Lutz
2008-12-01 14:23:28 UTC
Permalink
Post by Ken Mayer [dBVIPS]
Post by Charlie Lutz
Can someone tell me how to find out where the windows temp file is programmitically so I can grab the path and use it? What I want to try is to set the BDE temp files to this folder using Set BDETempDir(). Any help is greatly appreciated.
There's code in the dUFLP that finds a lot of these folders ...
Always remember: check the dUFLP first. <g>
Ken
--
/(Opinions expressed are purely my own, not those of dataBased
Intelligence, Inc.)/
*Ken Mayer* [dBVIPS]
/Golden Stag Productions/
dBASE at goldenstag dot net
http://www.goldenstag.net/GSP
http://www.goldenstag.net/dbase/dBASEBooks.htm
http://www.goldenstag.net/dbase
Ken,
I looked there, but apparently missed it.

Charlie
Ken Mayer [dBVIPS]
2008-12-02 00:38:25 UTC
Permalink
Post by Charlie Lutz
Ken,
I looked there, but apparently missed it.
MiscAPI:
GetWindowsCSIDLPath()
GetWindowsFolders()

Ken
--
/(Opinions expressed are purely my own, not those of dataBased
Intelligence, Inc.)/

*Ken Mayer* [dBVIPS]
/Golden Stag Productions/
dBASE at goldenstag dot net
http://www.goldenstag.net/GSP
http://www.goldenstag.net/dbase/dBASEBooks.htm
http://www.goldenstag.net/dbase
Greg Hill
2008-11-26 17:12:49 UTC
Permalink
Post by Charlie Lutz
Can someone tell me how to find out where the windows temp file is
programmitically so I can grab the path and use it? What I want to try is
to set the BDE temp files to this folder using Set BDETempDir(). Any help
is greatly appreciated.
You can use funique() as follows but you will have to strip that unique name
that it generates, or possibly you might want that name to be used for a
temp folder?
?funique()

Greg Hill
Bruce Beacham
2008-11-28 08:56:14 UTC
Permalink
Post by Greg Hill
Post by Charlie Lutz
Can someone tell me how to find out where the windows temp file is
You can use funique() as follows but you will have to strip that unique name
that it generates, or possibly you might want that name to be used for a
temp folder?
?funique()
FUNCTION NameTempPath
* Courtesy of Rich at AutoTracker 9.6.03
local pt
pt = left(fUnique(),rat("\",fUnique())-1) + "\"

return (pt)



Bruce Beacham
Charlie Lutz
2008-12-01 14:22:08 UTC
Permalink
Post by Bruce Beacham
Post by Greg Hill
Post by Charlie Lutz
Can someone tell me how to find out where the windows temp file is
You can use funique() as follows but you will have to strip that unique name
that it generates, or possibly you might want that name to be used for a
temp folder?
?funique()
FUNCTION NameTempPath
* Courtesy of Rich at AutoTracker 9.6.03
local pt
pt = left(fUnique(),rat("\",fUnique())-1) + "\"
return (pt)
Bruce Beacham
Great,
Thanks Bruce and Rich.

Charlie
Charlie Lutz
2008-12-01 14:20:50 UTC
Permalink
Post by Greg Hill
Post by Charlie Lutz
Can someone tell me how to find out where the windows temp file is
programmitically so I can grab the path and use it? What I want to try is
to set the BDE temp files to this folder using Set BDETempDir(). Any help
is greatly appreciated.
You can use funique() as follows but you will have to strip that unique name
that it generates, or possibly you might want that name to be used for a
temp folder?
?funique()
Greg Hill
Thanks Greg,
Gives me something to take a look at.

Charlie
Christopher F. Neumann
2008-12-02 02:37:13 UTC
Permalink
Back to basics, why do you need a directory that the BDE uses as a temp? Is
there such an animal other that the Windows' or User's default temp
directory?
--
Christopher F. Neumann

[dBASE Gold Charter Member 107]
Blue Star Visual dBASE graduate
IWA-HWG Web Technologies Certified
IWA-HWG Web Programming Certified
ICCP TCP/IP Network Analyst
Data Communications Engineer
IEEE-CS Affiliate
http://cfneumann.us

"Just hanging out on the Sagittarian arm of the Milky Way"
Post by Charlie Lutz
Can someone tell me how to find out where the windows temp file is
programmitically so I can grab the path and use it? What I want to try is
to set the BDE temp files to this folder using Set BDETempDir(). Any help
is greatly appreciated.
Thanks,
Charlie
Charlie Lutz
2008-12-04 03:41:39 UTC
Permalink
Post by Christopher F. Neumann
Back to basics, why do you need a directory that the BDE uses as a temp? Is
there such an animal other that the Windows' or User's default temp
directory?
When I tried to run a dBase program with the runtime and DEO on a
machine that had been locked down, I got an error that the program could
not create files in the Program Files/... folder. This has started me
looking for a way to write all temp (query, etc. ) files to a folder the
user has rights to. Still working on it.

Charlie
Andrew Shimmin
2008-12-04 04:31:28 UTC
Permalink
This will happen on W2k, WXP and Vista if your application does not have a full admin access token. You get one of these with administrator privilege on W2K and WXP ... but not Vista, courtesy of the UAC.

The default BDE temporary folder is where ever you started the application so when it tries to write to its temporary folder it craps the bed.

Bde.cc will fix the problem. Read the comments in the code first.

regards, andrew
Post by Charlie Lutz
Post by Christopher F. Neumann
Back to basics, why do you need a directory that the BDE uses as a temp? Is
there such an animal other that the Windows' or User's default temp
directory?
When I tried to run a dBase program with the runtime and DEO on a
machine that had been locked down, I got an error that the program could
not create files in the Program Files/... folder. This has started me
looking for a way to write all temp (query, etc. ) files to a folder the
user has rights to. Still working on it.
Charlie
Loading...