Re: Startup.cmd
- From: "James J. Weinkam" <jjw@xxxxxxxxx>
- Date: Fri, 02 Sep 2005 00:58:16 GMT
Heiko Nitzsche wrote:
As I understand it, the hidden attribute prevents a file from apperaing in directory lists by default but is not supposed to prevent access to the file if it is specified by name. It certainly works this way in a DOS session. I can't recall ever having tested this in an OS/2 session with earlier versions of OS/2, but both eCS1.2 and MCP1 refuse to execute a hidden cmd or exe file. Sounds like cmd.exe has a bug.
I don't think so. This is expected behaviour. If it works in a DOS session, this one has a bug. I cannot reproduce it here. In my DOS session hidden files are not visible unless you instruct dir to show them. You can either set these options at the dir command or by using DIRCMD environment variable. This works for OS/2 and DOS command line sessions.
Hidden attribute hides the file from normal file accesses also cmd.exe is doing. You need special access options on system API level to see a hidden file.
The dir command allows you to enforce this special access option. Try the following on a command line:
dir /Ah c:\os2krnl
os2krnl is usually a hidden file that standard dir doesn't expose to the user.
Heiko
I failed to make myself clear. In a DOS session, the dir command does not list hidden files unless the /a parameter is specified. However if a bat or exe file is hidden it can still be executed in the usual way by specifying its name on the command line. It is not necessary to include the extension. Also, all the editing and application programs I tried open hidden files just fine.
Although eCS1.2 and MCP1 will not execute a hidden cmd or exe file, epm will open a hidden file just file if you specify its name on the command line or navigate to the correct directory in the open dialog and type in the file name by hand. Open office and tedit will also open such files but Papyrus will not. Also, the PL/I compiler compiles a hidden source file without problems and the PL/I executable and the APL2 interpreter both open hidden data files without incident.
The only thing any documentation of the hidden and system attributes that I have seen in either DOS or OS/2 says is that files or directories having these attributes are excluded from normal directory searches.
.
- Follow-Ups:
- Re: Startup.cmd
- From: Wild Willy
- Re: Startup.cmd
- References:
- Startup.cmd
- From: Ben B. ProNews/2 User
- Re: Startup.cmd
- From: Jim Moe
- Re: Startup.cmd
- From: James J. Weinkam
- Re: Startup.cmd
- From: Heiko Nitzsche
- Startup.cmd
- Prev by Date: Re: Startup.cmd
- Next by Date: Re: Startup.cmd
- Previous by thread: Re: Startup.cmd
- Next by thread: Re: Startup.cmd
- Index(es):
Relevant Pages
|