Running the command:
file run.sh
Gives me:
run.sh: Bourne shell script text executable
in Linux. Is there an equivalent command in Windows?
|
|
There probably isn't one on your system by default. You could install the Cygwin tools suite (ports of GNU commands to the Win32 APIs). There used to also be the MKS Toolkit and another one whose name escapes me at the moment. MKS was commercial, Cygwin, of course was GNU/GPL, and the other won was eventually renamed (from OpenNT?) and later acquired by Microsoft and incorporated into some sort of MSDN suite for Win2K or Server 2003 or something like that. For any of those you'd just run the 'file' command on your target files just as you would under UNIX. You might have to start them under the included UNIX-like shell (bash, for Cygwin, ksh or MKS Toolkit, and who knows what for the other one). |
|||
|
|
As others have said, there's nothing built into Windows. If you'd like an alternative to the |
|||
|
|
Not built-in; Windows uses file-extensions to determine file-type. I'm pretty sure that there's a port of |
|||||
|
|
Take a look at File.exe - a small program similar to the Unix / Linux file executable which can examine files, in this case it is designed to query an executable file and display the processor that the file was compiled to run on and any other details it can report on. |
|||
|
|