1.

Solve : how to print from a batch file?

Answer»

how to print an EXCEL from a batch file?
any help will be greatly appreciated!! If you want to print the file from the desktop, type:

@echo off
print "%userprofile%\desktop\name.xls"
cls
echo. Your file is being printed
pause
exit

Another very simple way is to copy cmd.exe from C:\WINDOWS\System32\ to wherever your excel file is. Then open that COMMAND prompt and just type:

print name.xls

hope this works

-------------------
CARBON DUDEOXIDEThe print command works with text files only. Excel workbooks have a proprietary structure with character SEQUENCES that will make most printers run AMOK.

You could write a standalone script, an Excel macro, or use the File==>Print sequence in Excel.

Note: the standalone script could be called from a batch file :-?; using the Excel menus would be done within the Excel application; a macro would be able to use either a batch file or run manually within Excel.

8-)



Discussion

No Comment Found