This is just a heads up in case no has looked into this Yet.
I came across a situation today with a Win2000 pro machine
that had been set up for multiple users so the temp dir on the
machine as far as Windows was concerned with was:
C:\Documents and Settings\username.servername\Local Settings\Temp
This is what the SET VAR vm_temp = (ENVVAL('TEMP')) command returned.
Well the problem is the spaces in path...
Here is a snippet I used to test for and remedy the situation..
My goal here is to set the TEMP environment for RBase to whatever the
machine is using and upon startup if it detects .$$$ files to get rid
of them.
SET VAR vm_temp TEXT = NULL
SET VAR vm_temp = (ENVVAL('TEMP'))
IF vm_temp IS NOT NULL THEN
--This will store temp files in Windows/Temp directory on a Win98 machine
--On NT or 2000 it will be in the WINNT/TEMP dir or depending on how
--security is set up it could be defined like:
--C:\Documents and Settings\jlimburg.TCORPNT1\Local Settings\Temp
--This presents a problem because it has a space in the line so it
--needs to be put between single quotes to work.
SET VAR vm_locatespace = (SLOC(.vm_temp,' '))
IF vm_locatespace > 0 THEN
SET VAR vm_temp1 = ((CHAR(39)) + .vm_temp)
SET VAR delfiles TEXT = ('ERASE ' + .vm_temp1 + '\' + '*.$$$'+ (CHAR(39)))
ELSE
SET VAR vm_temp1 = .vm_temp
SET VAR delfiles TEXT = ('ERASE ' + .vm_temp + '\' + '*.$$$')
ENDIF
SET SCRATCH &vm_temp1
SET ERROR MESSAGES 2926 OFF
SET ERROR MESSAGES 2077 OFF
&delfiles
SET ERROR MESSAGES 2077 ON
SET ERROR MESSAGES 2926 ON
ELSE
SET SCRATCH ON --This will store temp files in the current directory
SET VAR vm_temp = (CVAL('CURRDIR'))
SET VAR vm_locatespace = (SLOC(.vm_temp,' '))
IF vm_locatespace > 0 THEN
SET VAR delfiles TEXT = ('ERASE ' + (CHAR(39)) + .vm_temp + '\' + +
'*.$$$' + (CHAR(39)))
ELSE
SET VAR delfiles TEXT = ('ERASE ' + .vm_temp + '\' + '*.$$$')
ENDIF
SET ERROR MESSAGES 2926 OFF
SET ERROR MESSAGES 2077 OFF
&delfiles
SET ERROR MESSAGES 2077 ON
SET ERROR MESSAGES 2926 ON
ENDIF
CLEAR VAR vm_%, delfiles
SET FILES 60
RETURN
__________________________________________________
Do You Yahoo!?
Got something to say? Say it better with Yahoo! Video Mail
http://mail.yahoo.com
================================================
TO SEE MESSAGE POSTING GUIDELINES:
Send a plain text email to [EMAIL PROTECTED]
In the message body, put just two words: INTRO rbase-l
================================================
TO UNSUBSCRIBE: send a plain text email to [EMAIL PROTECTED]
In the message body, put just two words: UNSUBSCRIBE rbase-l
================================================
TO SEARCH ARCHIVES:
http://www.mail-archive.com/rbase-l%40sonetmail.com/