Re: Startup.cmd



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.
.




Relevant Pages

  • Re: Debug.exe for win32
    ... Format is: n) e address t=n ... Display the debug registers. ... R DRx command. ... The help output can be limited by specifying the first letterof the ...
    (alt.lang.asm)
  • Re: How to get the application path
    ... I guess in the cases I use it, I always launch a program by specifying ... That is typically the case for launching from an icon, ... I'm enougb of a dinosaur that I still use command lines for ... the string refers to. ...
    (comp.lang.ada)
  • Re: finding complex root from nonlinear equations with complex arguments
    ... I'd like to know how to pass constants from the command line for the ... line rather than specifying in the file itself. ... function coeffs = findTheCoefficients ... POLYVAL accepts a vector of polynomial coefficients and a value and ...
    (comp.soft-sys.matlab)
  • Re: finding complex root from nonlinear equations with complex arguments
    ... I'd like to know how to pass constants from the command line for the ... line rather than specifying in the file itself. ... function coeffs = findTheCoefficients ... POLYVAL accepts a vector of polynomial coefficients and a value and ...
    (comp.soft-sys.matlab)
  • Re: [opensuse] bash - why doesnt the tldp bash beginners guide for loop example work?
    ... loop from breaking on spaces by specifying that it only break on ... it was kind of comical when after running the script I had managed to loose the "ls" command. ... I'm not entirely sure it was the IFS, but I just logged out and logged back on and all was well. ...
    (SuSE)