|
-
February 25th, 2003, 06:46 PM
#1
Testing for DOSKEY macro in a batch file
Hi folks;
Is there some way I can test for the existance of a DOSKEY macro within a batch file? Foe example:
if exist DOSKEY MACRO goto Menu
I know that line is no good, but wonder if there's a way.
Related to that question, is there any harm in simply redefineing a macro that already exists? For example:
:: Some batch file
@echo off
DOSKEY MacroName=function
Suppose that batch file gets run several times, the MacroName macro will get defined every time. Is this any kind of problem?
Thanks all, Dex
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
|