D
Dennis Leclerc
I used to be able to redirect batchfile commandline output
Win2000 Command.com . This example below receives the %1
input from a PIF shortcut prompt, thus MUST run under the
Win2000 Command.com (NOT CMD.exe - doesn't prompt for
input). Executed under Win2000 Command.com it returns
a "File Creation Error" and FAILS. WHY can't it handle
the LongFilename ??? Also, %0 FAILS to return the
complete filename w/extension, thus the " TYPE %0 " line
fails too. What other method??? I have a practical use
for these commands in some elaborate batchfile
routines. Thanks for help.
========================================================
@echo off
IF "%1"=="" GoTo EXIT
echo SET VAR_1=%1> .\LongFilename.VAR1.txt
TYPE %0 >> .\LongFilename.VAR1.txt
TYPE .\LongFilename.VAR1.txt
:EXIT
This method no longer works correctly/the same underinto a filename.ext on-the-fly under Win95 & Win98.
Win2000 Command.com . This example below receives the %1
input from a PIF shortcut prompt, thus MUST run under the
Win2000 Command.com (NOT CMD.exe - doesn't prompt for
input). Executed under Win2000 Command.com it returns
a "File Creation Error" and FAILS. WHY can't it handle
the LongFilename ??? Also, %0 FAILS to return the
complete filename w/extension, thus the " TYPE %0 " line
fails too. What other method??? I have a practical use
for these commands in some elaborate batchfile
routines. Thanks for help.
========================================================
@echo off
IF "%1"=="" GoTo EXIT
echo SET VAR_1=%1> .\LongFilename.VAR1.txt
TYPE %0 >> .\LongFilename.VAR1.txt
TYPE .\LongFilename.VAR1.txt
:EXIT