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. Web Development
  3. command line parameters for a browser

command line parameters for a browser

Scheduled Pinned Locked Moved Web Development
csharpcomhardwarequestion
3 Posts 2 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.
  • S Offline
    S Offline
    shabya
    wrote on last edited by
    #1

    hello, i embedded inside my c# code the ability to visit home page etc. by clicking a button. now , i have no idea what browser my customers have so what i do is write in the command line only the file hoping that it will be automatically linked with the right program. well , it works BUT.. i cant open it in a new browser window. it keeps using the allready opened window. i tried the switching option but it doesnt work any suggestions ? here's the command i use :

    System.Diagnostics.Process.Start("http://www.website.com/","-new");

    the -new should do the work but it doesnt. tnx, avi

    M 2 Replies Last reply
    0
    • S shabya

      hello, i embedded inside my c# code the ability to visit home page etc. by clicking a button. now , i have no idea what browser my customers have so what i do is write in the command line only the file hoping that it will be automatically linked with the right program. well , it works BUT.. i cant open it in a new browser window. it keeps using the allready opened window. i tried the switching option but it doesnt work any suggestions ? here's the command i use :

      System.Diagnostics.Process.Start("http://www.website.com/","-new");

      the -new should do the work but it doesnt. tnx, avi

      M Offline
      M Offline
      Marc Firth
      wrote on last edited by
      #2

      i don't really know c# - but it their an option to add "_blank" as a 'target' argument?

      Neonlight

      1 Reply Last reply
      0
      • S shabya

        hello, i embedded inside my c# code the ability to visit home page etc. by clicking a button. now , i have no idea what browser my customers have so what i do is write in the command line only the file hoping that it will be automatically linked with the right program. well , it works BUT.. i cant open it in a new browser window. it keeps using the allready opened window. i tried the switching option but it doesnt work any suggestions ? here's the command i use :

        System.Diagnostics.Process.Start("http://www.website.com/","-new");

        the -new should do the work but it doesnt. tnx, avi

        M Offline
        M Offline
        Marc Firth
        wrote on last edited by
        #3

        alternatively - a simpler solution (addmittedly not as seamless) would be to add a page on your website that directs the to a new window using a hyperlink with

        target="_blank"

        or using javascript to dynamically pop an new window??

        Neonlight

        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