You could create a form and use the directory tree and file listbox
controls.
 
I am not sure on how to check to see if the file is read-only or write
protected.
 
Dan Goldberg

  _____  

From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of christian
hjortmar
Sent: Wednesday, October 29, 2008 1:38 PM
To: RBASE-L Mailing List
Subject: [RBASE-L] - Directory tree programming


Hi, list!
Is it possible to programatically create a directory tree in an eep or rmd
file?
In an application I am creating a file, I want to copy to a place of my
choice.
It can be either somewhere on C:, a diskett or a memory stick.
 
Also I would like to know how to programatically react to for ex a write
protected diskette?
 
This is a piece of code where I want to place your ideas.
 
LABEL diskett
-- Find out if a: exists
SET VAR vdsk = (CVAL('DRIVES'))
SET VAR vdrv= (SLOC(.vdsk,'a'))
IF vdrv = 0 THEN
  --Tell if A: is there or not and abort
  PAUSE 2 USING 'No diskette' CAPTION 'Bekräftelse'
  GOTO end
   ELSE
  --Capture write protection and errorhandle it
  --Copy file to diskette
  PAUSE 2 USING 'Files are copied to diskett.' CAPTION 'Bekräftelse'
  COPY vtotmon a:\vtotmon
ENDIF
 
GOTO end
 
Regards
Christian Hjortmar

Reply via email to