Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Visual Basic
  4. How to execute Dos command line in VB?

How to execute Dos command line in VB?

Scheduled Pinned Locked Moved Visual Basic
helptutorialquestion
2 Posts 1 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • T Offline
    T Offline
    Thunder2004
    wrote on last edited by
    #1

    I want to execute this command: "copy %1 lpt1:" The reason I want to do this is because I have a file I retrieve from Unix and then I put a barcode in it by creating another file with VB and after that I want to send it to the printer. Thanks for your help. ;)

    T 1 Reply Last reply
    0
    • T Thunder2004

      I want to execute this command: "copy %1 lpt1:" The reason I want to do this is because I have a file I retrieve from Unix and then I put a barcode in it by creating another file with VB and after that I want to send it to the printer. Thanks for your help. ;)

      T Offline
      T Offline
      Thunder2004
      wrote on last edited by
      #2

      Ok I found the way. Just in case somebody else would like to know: use the Shell function. Ciao ;)

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups