It sounds like the problem in version 1.4 is bypassing STDOUT (standard output stream) and directly prints to CON (the console device).TheHunterManX wrote:So here is the output...Code: Select all
Nothing! when i run the file1.exe it runs cmd(command prompt to be exact) and closes a half second later and i see the numbers for a split second.
(I can't check/prove it because i can't test it: Version 1.4 is not available anymore.)
You could try to use a newer offline version of this converter:
Should work, if setting "visibility" to "visible" (i've tested the executable created by the online converter).
Or you could still use the workaround (sketched at the bottom of my above post):
http://www.dostips.com/forum/viewtopic.php?p=43246#p43246.
Applied to trebor68 version the resulting files are:
"File1.cmd":
Code: Select all
@echo off
setlocal
set p1=1
set p2=2
set p3=7
> "p123.txt" echo %p1% %p2% %p3%
endlocal
"File2.cmd":
Code: Select all
@echo off
setlocal ENABLEEXTENSIONS
call File1
for /f "usebackq tokens=1-3" %%a in ("p123.txt") do (
set p1=%%a
set p2=%%b
set p3=%%c
)
del "p123.txt"
echo value p1: %p1%
echo value p2: %p2%
echo value p3: %p3%
endlocal
pause
penpen
Edit: Added the source code, so it's no sketch anymore.
Edit2: Corrected "never offline version of " to "newer ...".