If this is the case then you could use CVAL to get the current drive and 
current directory prior to using the print command and then use code with 
those variables to get back to the original directory afterwards.

The CVAL commands are CURRDRV and CURRDIR.

Best regards,
Mike Young

On Thu, 27 Sep 2001 07:58:21 -0700, Dan Goldberg wrote:

>I think what he means is when you use prnsetup you select "pdf writer" as
>the printer.
>
>Then when you print something, the pdf writer will give a save as pop up
>box. You select the directory and what name you want to save the pdf file
>as.
>
>If you change the directory in the pop up box it will not go back to the
>database directory.
>
>pdf writer is printer driver that comes with adobe acrobat to convert any
>printed document to pdf format.
>
>I think this is what he is talking about.
>
>Dan
>
>-----Original Message-----
>From: [EMAIL PROTECTED] 
[mailto:[EMAIL PROTECTED]]On
>Behalf Of MikeB
>Sent: Wednesday, September 26, 2001 5:11 PM
>To: [EMAIL PROTECTED]
>Subject: Re: Change Directories
>
>
>Phil,
>  I have the same version RB.  I put the following in a file and RUN it.  I
>did not experience your problem with either version of change directory.....
>
>dir
>pause
>cd ..
>dir
>pause
>chdir bar
>dir
>pause
>ret
>
>
>
>----- Original Message -----
>From: "Phil Nolette (NCS Group, Inc.)" <[EMAIL PROTECTED]>
>To: "Rbase-L" <[EMAIL PROTECTED]>
>Sent: Wednesday, September 26, 2001 6:37 PM
>Subject: Change Directories
>
>
>> I am using RBase 2000 v6.5 Build 1.831XRT03 at my customer site.  I 
have
>> tried to get them to upgrade but they are putting it off the budget.  The
>> problem that I have is when I write to a PDF file using PRNSETUP and
>OUTPUT
>> PRINTER then select the directory that I want to store the report (this is
>> all in a rmd file), I can not get it to go back to my working directory.
>> I can use the command CHDSK and CHDIR from the R> but when I put 
the same
>> code into a RMD file and use RUN or TRACE, it will not change the 
drive
>nor
>> the directory.  The only way to change it is by exiting RBase and then
>> coming back into it.
>> Can anyone provide any advice?
>>
>> Thanks,
>> Phil Nolette
>> [EMAIL PROTECTED]
>>
>
>
>



Reply via email to