Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!rutgers!cs.utexas.edu!csd4.milw.wisc.edu!lll-winken!ames!pacbell!att!ihlpf!spock From: spock@ihlpf.ATT.COM (Weiss) Newsgroups: comp.windows.news Subject: Re: How to find out if a file exists Message-ID: <8716@ihlpf.ATT.COM> Date: 7 Jun 89 17:55:47 GMT References: <7506@hoptoad.uucp> <8087@batcomputer.tn.cornell.edu> <8130@batcomputer.tn.cornell.edu> Reply-To: spock@ihlpf.UUCP (55431-Weiss,E.J.) Organization: AT&T Bell Laboratories - Naperville, Illinois Lines: 18 In article <8130@batcomputer.tn.cornell.edu> prove@batcomputer.tn.cornell.edu (Roger Ove) writes: >In article , hh@tut.fi (Halme Heikki) writes: >> The routine /fileexists in init.ps does work, just try it! So, what >> else is there that is commented out and works just fine? > I tried this and it fails when the file doesn't exist, it bombs >with the error "undefinedfilename" and terminates the process. Works Are you running the debugger when you use /fileexits? If so, you need to changed the stopped to errored. The reason you need to do this is that the debugger causes stopped not to work the way you think it should. errored will work the same as stopped even if the debugger is not running. Why all the stopped's were not changed to errored, I will never know. -- Ed Weiss "I thought it was generally accepted, sir, that att!ihlpf!spock vulcans are an advanced and most honorable race." "They are, they are. And damn annoying at times."