Hi again,
I have written a batch file that parses a simple cut/paste from a web browser window into the command window and then outputs the pertinent data in my desired format. The pasted data is taken in via the set /P function as shown here:
(BEGIN LOOP)
set /P INPUT1=:
(END LOOP)
What I've run into is that the pasted text can include TAB characters, which will behave just like pressing the TAB key when entering input into this function. That is, you will get a sequential (with each tab) entry for each filename that resides in the current directory. This of course trashes the input data. I am not sure if this is a funtion of Doskey or not, but what I'm looking for is a better way to circumvent this, such as disabling Doskey (if that's the cause) from within the batch file.
What I have done so far (which seems kind of marginal, but has worked) is to create an empty folder adjacent to the batch file, and the script CDs to it, thus disallowing any filenames from being entered via the TAB operation, since there are no files there. Anyone have a better solution?
Thanks,
Andy
Tab characters pasted into CMD window
Moderator: DosItHelp