print file directly

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • xtianixm
    New Member
    • Jul 2007
    • 52

    print file directly

    i know using shellexecute will do.

    but how about i create a file "print.file ". when i used shellexecute it doesnt print directly..can anyone help me on this..how can i print a file with an extension of .file



    regards
    xtianixm
  • mafaisal
    New Member
    • Sep 2007
    • 142

    #2
    Hello
    First U Create a Bat file in Current directory
    Then c the code
    Code:
        Open App.Path & "\Print.Bat" For Output As #1
        Print #1, "type " & App.Path & "\Print.file" & ">prn"
        Print #1,
        Print #1, "Exit"
        Close #1
        Shell App.Path & "\Print.Bat"

    Faisal

    Comment

    Working...