batch file - Type command not working in Windows command prompt -


correct me if i'm wrong, type command supposed display contents of text file in windows command prompt. whenever use type command display text file, output only:

unable initialize device prn 

the command used is:

type c:\users\matthew\desktop\hello.txt 

i don't know why it's doing , can't seem figure out. if me, appreciated.

"unable initialize device prn" odd error, must using old version of dos attempting use printer.

means you're either using print command, or you're trying type confusing type command , returning error.

set /p text=<type c:\users\matthew\desktop\hello.txt echo "%text%" && pause 

Comments

Popular posts from this blog

timeout - Handshake_timeout on RabbitMQ using python and pika from remote vm -

gcc - MinGW's ld cannot perform PE operations on non PE output file -

c# - Search and Add Comment with OpenXML for Word -