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. VBS File

VBS File

Scheduled Pinned Locked Moved Visual Basic
databasehelp
12 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.
  • M Offline
    M Offline
    Mohammad Dabaan
    wrote on last edited by
    #1

    :->Hello all, I want to make a vbs file that will take some data and then will redirect me to a nwe web page with the entered data as a query string, is there any one can help me or have a ready done vbs file :-O

    Thanks alot Hamody

    C 1 Reply Last reply
    0
    • M Mohammad Dabaan

      :->Hello all, I want to make a vbs file that will take some data and then will redirect me to a nwe web page with the entered data as a query string, is there any one can help me or have a ready done vbs file :-O

      Thanks alot Hamody

      C Offline
      C Offline
      Christian Graus
      wrote on last edited by
      #2

      What is a VBS file ? Do you mean a script for classic ASP, using VBScript ? I heartily recommend you use ASP.NET, unless you hate yourself.  Having said that, the web development forum is for ASP questions.

      Christian Graus - C++ MVP 'Why don't we jump on a fad that hasn't already been widely discredited ?' - Dilbert

      M 1 Reply Last reply
      0
      • C Christian Graus

        What is a VBS file ? Do you mean a script for classic ASP, using VBScript ? I heartily recommend you use ASP.NET, unless you hate yourself.  Having said that, the web development forum is for ASP questions.

        Christian Graus - C++ MVP 'Why don't we jump on a fad that hasn't already been widely discredited ?' - Dilbert

        M Offline
        M Offline
        Mohammad Dabaan
        wrote on last edited by
        #3

        yeah i mean visual basic script file, i want to make it as a sparated file without using visual stuodio.net for example; make a new text file ane write the following lines inside it: Dim m MsgBox "You must enter a quantity." and then save it as ddd.vbs, then double click on it, u will see its action. i want to make a one as this but for the purpose that i asked in my sent question :((

        Thanks alot Hamody

        C 1 Reply Last reply
        0
        • M Mohammad Dabaan

          yeah i mean visual basic script file, i want to make it as a sparated file without using visual stuodio.net for example; make a new text file ane write the following lines inside it: Dim m MsgBox "You must enter a quantity." and then save it as ddd.vbs, then double click on it, u will see its action. i want to make a one as this but for the purpose that i asked in my sent question :((

          Thanks alot Hamody

          C Offline
          C Offline
          Christian Graus
          wrote on last edited by
          #4

          Well, how is this script going to be run via a web site, if it's just sitting at a random place on your hard drive ? Why does it matter than you use or don't use VS ?

          Christian Graus - C++ MVP 'Why don't we jump on a fad that hasn't already been widely discredited ?' - Dilbert

          M 1 Reply Last reply
          0
          • C Christian Graus

            Well, how is this script going to be run via a web site, if it's just sitting at a random place on your hard drive ? Why does it matter than you use or don't use VS ?

            Christian Graus - C++ MVP 'Why don't we jump on a fad that hasn't already been widely discredited ?' - Dilbert

            M Offline
            M Offline
            Mohammad Dabaan
            wrote on last edited by
            #5

            hellllllo, i want to make a separate vbs file, i cannt use vs.net to run t through vs.net or i dont want to run it under html document. please man, if u know how i can call a web page through the vbs file send t to me

            Thanks alot Hamody

            C 1 Reply Last reply
            0
            • M Mohammad Dabaan

              hellllllo, i want to make a separate vbs file, i cannt use vs.net to run t through vs.net or i dont want to run it under html document. please man, if u know how i can call a web page through the vbs file send t to me

              Thanks alot Hamody

              C Offline
              C Offline
              Christian Graus
              wrote on last edited by
              #6

              Mohammad Daba'an wrote:

              i want to make a separate vbs file,

              OK - this file is never going to run under .NET.  It doesn't matter what you use to edit it.

              Mohammad Daba'an wrote:

              i dont want to run it under html document.

              OK, then where does the query string magically come from when you run this file.  When you double click on it, how does it relate to a URL at all ?

              Christian Graus - C++ MVP 'Why don't we jump on a fad that hasn't already been widely discredited ?' - Dilbert

              M 1 Reply Last reply
              0
              • C Christian Graus

                Mohammad Daba'an wrote:

                i want to make a separate vbs file,

                OK - this file is never going to run under .NET.  It doesn't matter what you use to edit it.

                Mohammad Daba'an wrote:

                i dont want to run it under html document.

                OK, then where does the query string magically come from when you run this file.  When you double click on it, how does it relate to a URL at all ?

                Christian Graus - C++ MVP 'Why don't we jump on a fad that hasn't already been widely discredited ?' - Dilbert

                M Offline
                M Offline
                Mohammad Dabaan
                wrote on last edited by
                #7

                Dear There, ok, for the editting, I will use notepad to write the vbs file, i just need now the code that i can use to call a url, eg, www.yahoo.com by running this vbs file :confused:

                Thanks alot Hamody

                C 1 Reply Last reply
                0
                • M Mohammad Dabaan

                  Dear There, ok, for the editting, I will use notepad to write the vbs file, i just need now the code that i can use to call a url, eg, www.yahoo.com by running this vbs file :confused:

                  Thanks alot Hamody

                  C Offline
                  C Offline
                  Christian Graus
                  wrote on last edited by
                  #8

                  Oh, I see.  You just want to launch a URL, and create a query string.  I thought you wanted to process one. I'm not sure, but I know that in C++ and C#, the code to run a program will run the default browser and open a URL, if you pass it a URL.

                  Christian Graus - C++ MVP 'Why don't we jump on a fad that hasn't already been widely discredited ?' - Dilbert

                  M 1 Reply Last reply
                  0
                  • C Christian Graus

                    Oh, I see.  You just want to launch a URL, and create a query string.  I thought you wanted to process one. I'm not sure, but I know that in C++ and C#, the code to run a program will run the default browser and open a URL, if you pass it a URL.

                    Christian Graus - C++ MVP 'Why don't we jump on a fad that hasn't already been widely discredited ?' - Dilbert

                    M Offline
                    M Offline
                    Mohammad Dabaan
                    wrote on last edited by
                    #9

                    ok dear, u now understand 80% of what i want, in asp.net when i want to go to another page i put (response.redirect("........")) i want to know what is the code to open a url when i click on button for example in using vbs, i willnt use asp.net, the example i sent u is on vbs, i will make a vbs file that when i open it it will appear an input box inside it and it has 2 button, ok and cancel, when i fill the url and press ok it will open an IE page and display the url i entered. i want the code that will call the entered url, hope u understand me now ;P

                    Thanks alot Hamody

                    C 1 Reply Last reply
                    0
                    • M Mohammad Dabaan

                      ok dear, u now understand 80% of what i want, in asp.net when i want to go to another page i put (response.redirect("........")) i want to know what is the code to open a url when i click on button for example in using vbs, i willnt use asp.net, the example i sent u is on vbs, i will make a vbs file that when i open it it will appear an input box inside it and it has 2 button, ok and cancel, when i fill the url and press ok it will open an IE page and display the url i entered. i want the code that will call the entered url, hope u understand me now ;P

                      Thanks alot Hamody

                      C Offline
                      C Offline
                      Christian Graus
                      wrote on last edited by
                      #10

                      Yep, I understand.  We've been discussing this for 4 hours.  It took me 30 seconds to find how to open a web page with VBS, via a simple google search

                      set Window = CreateObject("InternetExplorer.Application")

                      Window.RegisterAsBrowser = True Window.Navigate("www.microsoft.com") Window.MenuBar = True Window.ToolBar = True Window.AddressBar = True Window.StatusBar = True Window.FullScreen = False Window.Resizable = True Window.Visible = True Window.Width = 850 Window.Height = 720

                      Christian Graus - C++ MVP 'Why don't we jump on a fad that hasn't already been widely discredited ?' - Dilbert

                      M 1 Reply Last reply
                      0
                      • C Christian Graus

                        Yep, I understand.  We've been discussing this for 4 hours.  It took me 30 seconds to find how to open a web page with VBS, via a simple google search

                        set Window = CreateObject("InternetExplorer.Application")

                        Window.RegisterAsBrowser = True Window.Navigate("www.microsoft.com") Window.MenuBar = True Window.ToolBar = True Window.AddressBar = True Window.StatusBar = True Window.FullScreen = False Window.Resizable = True Window.Visible = True Window.Width = 850 Window.Height = 720

                        Christian Graus - C++ MVP 'Why don't we jump on a fad that hasn't already been widely discredited ?' - Dilbert

                        M Offline
                        M Offline
                        Mohammad Dabaan
                        wrote on last edited by
                        #11

                        man thank u for the time u spent with me, man we r nt all the same, u have 2 b better to help the 1s like me. tell me, for ur search on google, what is the text u put on the search box to get this codes n a short time, man :-> am still new with vbs, i just started learning t since yesterday ... thanks a lot tooooooo much for ur help ;-)

                        Thanks alot Hamody

                        C 1 Reply Last reply
                        0
                        • M Mohammad Dabaan

                          man thank u for the time u spent with me, man we r nt all the same, u have 2 b better to help the 1s like me. tell me, for ur search on google, what is the text u put on the search box to get this codes n a short time, man :-> am still new with vbs, i just started learning t since yesterday ... thanks a lot tooooooo much for ur help ;-)

                          Thanks alot Hamody

                          C Offline
                          C Offline
                          Christian Graus
                          wrote on last edited by
                          #12

                          I typed in 'vb script open web page'

                          Christian Graus - C++ MVP 'Why don't we jump on a fad that hasn't already been widely discredited ?' - Dilbert

                          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