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

twig - Using Twigbridge in a Laravel 5.1 Package -

jdbc - Not able to establish database connection in eclipse -

Kivy: Swiping (Carousel & ScreenManager) -