third_party_content:community:commentary:forums_nonworks:4d363e171d235e5a852566fe00008cbd

Sign up on the Revelation Software website to have access to the most current content, and to be able to ask questions and get answers from the Revelation community

At 18 JAN 1999 07:06:00PM Tony Smisovsky wrote:

I have a collection of DOS files in one directory on Novell server.

I need to run a DOS routine with one of those files as input (parameter on DOS command line) from within Revelation.

Before I run this routine, I want to check that this DOS-file exists.

The file is about 200kb.

I was using the method of opening the file in Revelation as a check, but when I have several users to run this, it seems that the file is locked, so the later users are failing the test.

Is there any clever way to check for existing DOS-file.

Is there any way of closing the DOS file in Revelation efter the check.

P.S. I am now using the PCPERFORM "DIR /B FILENAME ]C:\TEMP\TEST" command redirecting output and checking the resulting outputfile, but I am having strange trouble. When you attached to Novell 3.11 from a Windows 95 client logged in Novell 4, it sometimes can not see a file with DIR and still can read it (I checked the SCAN and READ priviledges). The funny error message is "Path not found". So DIR is no good in this installation.


At 18 JAN 1999 07:57PM Mike Ruane, WinWin Solutions Inc. wrote:

Tony-

How about the Dir function?

Example:

filename=f:\apps\myfile'

data=dir(filename)

FileSize =data

Last_Update_Date=Data

Last_Update_Time=Data

Hope it helps-

Mike Ruane

WinWin Solutions Inc.


At 19 JAN 1999 08:27AM akaplan@sprezzatura.com - [url=http://www.sprezzatura.com]Sprezzatura, Inc.[/url] wrote:

You could just do an OSOPEN then an OSCLOSE.

akaplan@sprezzatura.com

Sprezzatura, Inc.

www.sprezzatura.com_zz.jpg


At 19 JAN 1999 03:31PM Eric Emu wrote:

The best way to do this would be to read the FAT on the disk to see what you get without opening the file itself. I am surprised that DIR(filename) doesn't work - maybe you have MAP ROOT drivespecs.

You could use the FILEATTR routine in

SENL Vol 2 Issue 2

There is also a routine to return the Novell file details - use the full path and filename as the parameter.

Eric


At 19 JAN 1999 04:03PM Gary Gnu wrote:

Can you pinch more than an inch from you're disk?

I keep mine nice and trim, or trimb or trimf or trim.all, whatever. No FAT on my hard drives.

Gary Gnu


At 19 JAN 1999 08:30PM Victor Engel wrote:

Is there perhaps some confusion between DIR() and DIR? The DOS DIR command (the same as the TCL DIR command) will list only those files with filescan access. The Arev DIR function returns file size, date, and time for the file identified by the argument. I don't think this is affected by filescan access, so this logic should work:

IF LEN(DIR(filename)) THEN

* The file exists

END ELSE

* The file does not exist

END

View this thread on the forum...

  • third_party_content/community/commentary/forums_nonworks/4d363e171d235e5a852566fe00008cbd.txt
  • Last modified: 2023/12/28 07:40
  • by 127.0.0.1