echo Nodejs-test01.txt 2>&1 , need help

Discussion forum for all Windows batch related topics.

Moderator: DosItHelp

Post Reply
Message
Author
vmars.us
Posts: 3
Joined: 13 Jan 2016 15:37

echo Nodejs-test01.txt 2>&1 , need help

#1 Post by vmars.us » 13 Jan 2016 15:51

Hello & Thanks ,
I need help getting all output sent to here : Nodejs-test01.txt
Pls, what am i doing wrong ?

Code: Select all

echo Nodejs-test01.txt 2>&1
rem comment Here is nodejs Foledr : C:\Program Files (x86)\NodeJS
rem comment Here is my Testing Folder : C:\pixi.js\bin\httppixijs.github.io
rem comment Here is my C:\pixi.js\bin\httppixijs.github.io\Start-nodejs.bat :

cd C:\Program Files (x86)\NodeJS
node.exe
cd C:\Program Files (x86)\NodeJS
pause
node -v
pause
cd C:\pixi.js\bin\httppixijs.github.io
127.0.0.1:8080/C:/pixi.js/bin/httppixijs.github.io/truth02-WIP.html
pause


Thanks..vm

foxidrive
Expert
Posts: 6031
Joined: 10 Feb 2012 02:20

Re: echo Nodejs-test01.txt 2>&1 , need help

#2 Post by foxidrive » 13 Jan 2016 19:31

Does this work for you?

"batchfile.bat">Nodejs-test01.txt 2>&1

vmars.us
Posts: 3
Joined: 13 Jan 2016 15:37

Re: echo Nodejs-test01.txt 2>&1 , need help

#3 Post by vmars.us » 13 Jan 2016 21:12

Thanks ,
sort of , Nodejs-test01.txt 2>&1 shows:
ECHO is on.
ECHO is on.
ECHO is on.
ECHO is on.

foxidrive
Expert
Posts: 6031
Joined: 10 Feb 2012 02:20

Re: echo Nodejs-test01.txt 2>&1 , need help

#4 Post by foxidrive » 14 Jan 2016 00:05

vmars.us wrote:Thanks ,
sort of , Nodejs-test01.txt 2>&1 shows:
ECHO is on.
ECHO is on.
ECHO is on.
ECHO is on.


Your script doesn't have any echo commands in it, except the first line and that should be removed.

vmars.us
Posts: 3
Joined: 13 Jan 2016 15:37

Re: echo Nodejs-test01.txt 2>&1 , need help

#5 Post by vmars.us » 14 Jan 2016 12:04

Ok , i got this thing going with 2 .bat files :

1) Start-node.exe.bat.bat
rem comment I am Start-node.exe.bat.bat
"Start-node.exe.bat">Nodejs-test01.txt 2>&1

2) Start-node.exe.bat
rem comment I am Start-node.exe.bat
rem comment Here is nodejs Foledr : C:\Program Files (x86)\NodeJS
rem comment Here is my Testing Folder : C:\pixi.js\bin\httppixijs.github.io
rem comment Here is my C:\pixi.js\bin\httppixijs.github.io\Start-node.exe.bat.bat :

cd C:\Program Files (x86)\NodeJS
node.exe


Thank you VERY much !
...Vern

foxidrive
Expert
Posts: 6031
Joined: 10 Feb 2012 02:20

Re: echo Nodejs-test01.txt 2>&1 , need help

#6 Post by foxidrive » 14 Jan 2016 21:16

vmars.us wrote:Ok , i got this thing going with 2 .bat files :

Good work! :)

Post Reply