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. Windows Forms
  4. Invoking excel thru a .bat file

Invoking excel thru a .bat file

Scheduled Pinned Locked Moved Windows Forms
4 Posts 2 Posters 5 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.
  • F Offline
    F Offline
    ForNow
    wrote on last edited by
    #1

    Hi I need some pointer withe following process 1) having a .bat file kicked off by the creation or the Change whitin a .txt file 2) the bat file will then cut the data whitin it And paste it on excel worksheet Any pointers with this or what technology to Look at e.g object linking (I think object linking Invokes Microsoft products) Would be helpfully Thanks in advance

    L 1 Reply Last reply
    0
    • F ForNow

      Hi I need some pointer withe following process 1) having a .bat file kicked off by the creation or the Change whitin a .txt file 2) the bat file will then cut the data whitin it And paste it on excel worksheet Any pointers with this or what technology to Look at e.g object linking (I think object linking Invokes Microsoft products) Would be helpfully Thanks in advance

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #2

      Sure you can invoke Excel trough a batch file but you would not be able to interact with the Excel instance. This sounds more like you want a regular application using a FileSystemWatcher and Excel interop. Or, you might be able to do this from a PowerShell script.

      Why is common sense not common? Never argue with an idiot. They will drag you down to their level where they are an expert. Sometimes it takes a lot of work to be lazy Please stand in front of my pistol, smile and wait for the flash - JSOP 2012

      F 1 Reply Last reply
      0
      • L Lost User

        Sure you can invoke Excel trough a batch file but you would not be able to interact with the Excel instance. This sounds more like you want a regular application using a FileSystemWatcher and Excel interop. Or, you might be able to do this from a PowerShell script.

        Why is common sense not common? Never argue with an idiot. They will drag you down to their level where they are an expert. Sometimes it takes a lot of work to be lazy Please stand in front of my pistol, smile and wait for the flash - JSOP 2012

        F Offline
        F Offline
        ForNow
        wrote on last edited by
        #3

        For Excel Interop do I need VIsual Studio

        L 1 Reply Last reply
        0
        • F ForNow

          For Excel Interop do I need VIsual Studio

          L Offline
          L Offline
          Lost User
          wrote on last edited by
          #4

          Well you certainly need some compiled program.

          One of these days I'm going to think of a really clever signature.

          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