- Fix cmd's SearchForExecutable: it was inside out, giving extension priority over...
authorJeffrey Morlan <mrnobo1024@yahoo.com>
Fri, 8 Aug 2008 16:48:21 +0000 (16:48 +0000)
committerJeffrey Morlan <mrnobo1024@yahoo.com>
Fri, 8 Aug 2008 16:48:21 +0000 (16:48 +0000)
commitb75ff606badaf41d2f50cf8f887a919dabac7024
treeb2b18586b533c3a895585f25f91dc332a789e8b5
parentfbb7095a6739010dbe006e22f718244b08080894
- Fix cmd's SearchForExecutable: it was inside out, giving extension priority over directory.
- Remove code that checked if the file's extension was in PATHEXT. Windows does not check, and it's very handy to be able to "run" non-executable files.
- Allow explicit paths with no backslash (like "A:file")
- Batch: use GetFullPathName to get the batch file's absolute path; this way %~dp0 will always give the right directory even in the weird case of running the .bat via a relative path in PATH. Remove code in SearchForExecutable which tried to make sure it returned an absolute path (but it didn't in that case).

svn path=/trunk/; revision=35187
reactos/base/shell/cmd/batch.c
reactos/base/shell/cmd/where.c