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

powershell Start-Process exit code -1073741502 when used with Credential from a windows service environment -

twig - Using Twigbridge in a Laravel 5.1 Package -

c# - LINQ join Entities from HashSet's, Join vs Dictionary vs HashSet performance -