IsDirectory.bat is a Windows batch program that can help determine if a specified path is a directory or not. IsDirectory.bat outputs 1 (for true) when the command-line argument is a directory. Otherwise, it outputs 0 (for false).
IsDirectory.bat takes advantage of the SetNumberOfArguments.bat (GPL) script that is available on this web site. So to use IsDirectory.bat, you'll have to download SetNumberOfArguments.bat, if you don't already have it.
IsDirectory.bat is distributed as executable source code under the GNU General Public License. Please see the license agreement elsewhere on this site.
I found a bug with "IsDirectory.bat" where it couldn't recognize "..\" as a directory. And it couldn't recognize drives (e.g. "e:\") as directories.
I've fixed the problem and the new version is attached below.
dir /a:d %1
There are some exception cases that the previous version cannot handle. Therefore, I have made the "IsDirectory.bat" script a little more robust. The new version is attached below.
Found that the previous versions of "IsDirectory.bat" could not handle '&' character in directory and file name. Using crampies' tip above, I have updated the script to handle '&' correctly. The new version is attached below.
Did your message disappear? Read the Forums FAQ.
Spam Control | * indicates required field
TrackBack only accepted from WebSite-X Suite web sites. Do not submit TrackBacks from other sites.
No TrackBacks yet. TrackBack can be used to link this thread to your weblog, or link your weblog to this thread. In addition, TrackBack can be used as a form of remote commenting. Rather than posting the comment directly on this thread, you can posts it on your own weblog. Then have your weblog sends a TrackBack ping to the TrackBack URL, so that your post would show up here.
Messages, files, and images copyright by respective owners.
25 Users Online
Copyright © 1996 - 2019. All Rights Reserved.