How do I execute a batch file in an alternate data stream in Windows 7?
Windows 7 silently removed the ability to execute anything from an ADS. However, from the DOS command line, there are other options. For a batch file, you can execute line by line:
for /f "usebackq delims=φ" %i in (blank.txt:exe.bat) do %i
(Keep in mind, this does not actually execute the batch file into its own process, it simply reads and executes each line from the file. The φ
symbol is typed with alt code number 2541. You want the delimiter to be a character you wouldn't ever use in the code.)