Create a simple VB Script to copy files from Server to PC?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Jason

    Create a simple VB Script to copy files from Server to PC?

    How would I create a simple vb script with a GUI interface to copy
    files from a fileserver to a PC.

    for example, I would have a form with Radio Buttons or Check Boxes

    box1 - copy prefs
    box2 - copy keyboard shortcuts
    box3 - copy workspace
    and a RUN button

    if box1 is selected:
    copy \\server\share\ prefs to c:\documents and settings\%usern ame%
    \myprogram\pref s
    and etc. etc. for the other boxes.
  • Scott M.

    #2
    Re: Create a simple VB Script to copy files from Server to PC?

    You want a VBScript? Or, VB .NET?

    They are two VERY different things.


    "Jason" <paul814@excite .comwrote in message
    news:d30ebca9-56fb-4817-9d39-935dd5a3c084@59 g2000hsb.google groups.com...
    How would I create a simple vb script with a GUI interface to copy
    files from a fileserver to a PC.
    >
    for example, I would have a form with Radio Buttons or Check Boxes
    >
    box1 - copy prefs
    box2 - copy keyboard shortcuts
    box3 - copy workspace
    and a RUN button
    >
    if box1 is selected:
    copy \\server\share\ prefs to c:\documents and settings\%usern ame%
    \myprogram\pref s
    and etc. etc. for the other boxes.

    Comment

    • Jason

      #3
      Re: Create a simple VB Script to copy files from Server to PC?

      Well I have VB 2008, express edition. I would assume vb.net
      What is the diff?

      On Sep 10, 6:42 pm, "Scott M." <s-...@nospam.nosp amwrote:
      You want a VBScript?  Or, VB .NET?
      >
      They are two VERY different things.
      >
      "Jason" <paul...@excite .comwrote in message
      >
      news:d30ebca9-56fb-4817-9d39-935dd5a3c084@59 g2000hsb.google groups.com...
      >
      How would I create a simple vb script with a GUI interface to copy
      files from a fileserver to a PC.
      >
      for example, I would have a form with Radio Buttons or Check Boxes
      >
      box1 - copy prefs
      box2 - copy keyboard shortcuts
      box3 - copy workspace
      and a RUN button
      >
      if box1 is selected:
      copy \\server\share\ prefs  to c:\documents and settings\%usern ame%
      \myprogram\pref s
      and etc. etc. for the other boxes.

      Comment

      • Cor Ligthert[MVP]

        #4
        Re: Create a simple VB Script to copy files from Server to PC?

        Jason,

        The difference is that a script is a something like a .Bat file (in this
        case a text file with the extention .vb), you can not create those with VB
        2008 Express edition,

        Cor

        "Jason" <paul814@excite .comschreef in bericht
        news:0cd82564-709d-4629-bebf-60d427ca3a80@k1 3g2000hse.googl egroups.com...
        Well I have VB 2008, express edition. I would assume vb.net
        What is the diff?

        On Sep 10, 6:42 pm, "Scott M." <s-...@nospam.nosp amwrote:
        You want a VBScript? Or, VB .NET?
        >
        They are two VERY different things.
        >
        "Jason" <paul...@excite .comwrote in message
        >
        news:d30ebca9-56fb-4817-9d39-935dd5a3c084@59 g2000hsb.google groups.com...
        >
        How would I create a simple vb script with a GUI interface to copy
        files from a fileserver to a PC.
        >
        for example, I would have a form with Radio Buttons or Check Boxes
        >
        box1 - copy prefs
        box2 - copy keyboard shortcuts
        box3 - copy workspace
        and a RUN button
        >
        if box1 is selected:
        copy \\server\share\ prefs to c:\documents and settings\%usern ame%
        \myprogram\pref s
        and etc. etc. for the other boxes.

        Comment

        • Jason

          #5
          Re: Create a simple VB Script to copy files from Server to PC?

          Oh yes, that is what I mean, I want to create a GUI little app and not
          a script I guess.

          On Sep 11, 5:13 am, "Cor Ligthert[MVP]" <notmyfirstn... @planet.nl>
          wrote:
          Jason,
          >
          The difference is that a script is a something like a .Bat file (in this
          case a text file with the extention .vb), you can not create those with VB
          2008 Express edition,
          >
          Cor
          >
          "Jason" <paul...@excite .comschreef in berichtnews:0cd 82564-709d-4629-bebf-60d427ca3a80@k1 3g2000hse.googl egroups.com...
          Well I have VB 2008, express edition. I would assume vb.net
          What is the diff?
          >
          On Sep 10, 6:42 pm, "Scott M." <s-...@nospam.nosp amwrote:
          >
          You want a VBScript? Or, VB .NET?
          >
          They are two VERY different things.
          >
          "Jason" <paul...@excite .comwrote in message
          >
          news:d30ebca9-56fb-4817-9d39-935dd5a3c084@59 g2000hsb.google groups.com...
          >
          How would I create a simple vb script with a GUI interface to copy
          files from a fileserver to a PC.
          >
          for example, I would have a form with Radio Buttons or Check Boxes
          >
          box1 - copy prefs
          box2 - copy keyboard shortcuts
          box3 - copy workspace
          and a RUN button
          >
          if box1 is selected:
          copy \\server\share\ prefs to c:\documents and settings\%usern ame%
          \myprogram\pref s
          and etc. etc. for the other boxes.

          Comment

          • Patrice

            #6
            Re: Create a simple VB Script to copy files from Server to PC?

            Is the GUI created ? I'm not sure what is the exact step that causes a
            problem. If you are stuck at the very beginning it's likely best to Google
            for a tutorial before asking specific questions...

            --
            Patrice

            "Jason" <paul814@excite .coma écrit dans le message de groupe de discussion
            : d30ebca9-56fb-4817-9d39-935dd5a3c084...le groups.com...
            How would I create a simple vb script with a GUI interface to copy
            files from a fileserver to a PC.
            >
            for example, I would have a form with Radio Buttons or Check Boxes
            >
            box1 - copy prefs
            box2 - copy keyboard shortcuts
            box3 - copy workspace
            and a RUN button
            >
            if box1 is selected:
            copy \\server\share\ prefs to c:\documents and settings\%usern ame%
            \myprogram\pref s
            and etc. etc. for the other boxes.

            Comment

            • kimiraikkonen

              #7
              Re: Create a simple VB Script to copy files from Server to PC?

              On Sep 11, 3:29 pm, Jason <paul...@excite .comwrote:
              Oh yes, that is what I mean, I want to create a GUI little app and not
              a script I guess.
              >
              On Sep 11, 5:13 am, "Cor Ligthert[MVP]" <notmyfirstn... @planet.nl>
              wrote:
              >
              >
              >
              Jason,
              >
              The difference is that a script is a something like a .Bat file (in this
              case a text file with the extention .vb), you can not create those withVB
              2008 Express edition,
              >
              Cor
              >
              "Jason" <paul...@excite .comschreef in berichtnews:0cd 82564-709d-4629-bebf-60d427ca3a80@k1 3g2000hse.googl egroups.com...
              Well I have VB 2008, express edition. I would assume vb.net
              What is the diff?
              >
              On Sep 10, 6:42 pm, "Scott M." <s-...@nospam.nosp amwrote:
              >
              You want a VBScript? Or, VB .NET?
              >
              They are two VERY different things.
              >
              "Jason" <paul...@excite .comwrote in message
              >
              >news:d30ebca 9-56fb-4817-9d39-935dd5a3c084@59 g2000hsb.google groups.com....
              >
              How would I create a simple vb script with a GUI interface to copy
              files from a fileserver to a PC.
              >
              for example, I would have a form with Radio Buttons or Check Boxes
              >
              box1 - copy prefs
              box2 - copy keyboard shortcuts
              box3 - copy workspace
              and a RUN button
              >
              if box1 is selected:
              copy \\server\share\ prefs to c:\documents and settings\%usern ame%
              \myprogram\pref s
              and etc. etc. for the other boxes.- Hide quoted text -
              >
              - Show quoted text -
              Sounds like you want to use System.IO.File and System.IO.Path' s
              methods within a Winform project resulting as a EXE file... Plus it
              would be more hintful to specify what you want to implement in your
              project.

              Onur Güzel

              Comment

              • Scott M.

                #8
                Re: Create a simple VB Script to copy files from Server to PC?

                VBScript is an interpreted late-bound language that relies on COM.

                VB .NET is an early-bound compiled language that does not rely on COM.


                "Cor Ligthert[MVP]" <notmyfirstname @planet.nlwrote in message
                news:4ABA619B-7F1D-4973-9EA8-985A60249BCB@mi crosoft.com...
                Jason,
                >
                The difference is that a script is a something like a .Bat file (in this
                case a text file with the extention .vb), you can not create those with VB
                2008 Express edition,
                >
                Cor
                >
                "Jason" <paul814@excite .comschreef in bericht
                news:0cd82564-709d-4629-bebf-60d427ca3a80@k1 3g2000hse.googl egroups.com...
                Well I have VB 2008, express edition. I would assume vb.net
                What is the diff?
                >
                On Sep 10, 6:42 pm, "Scott M." <s-...@nospam.nosp amwrote:
                >You want a VBScript? Or, VB .NET?
                >>
                >They are two VERY different things.
                >>
                >"Jason" <paul...@excite .comwrote in message
                >>
                >news:d30ebca 9-56fb-4817-9d39-935dd5a3c084@59 g2000hsb.google groups.com...
                >>
                How would I create a simple vb script with a GUI interface to copy
                files from a fileserver to a PC.
                >>
                for example, I would have a form with Radio Buttons or Check Boxes
                >>
                box1 - copy prefs
                box2 - copy keyboard shortcuts
                box3 - copy workspace
                and a RUN button
                >>
                if box1 is selected:
                copy \\server\share\ prefs to c:\documents and settings\%usern ame%
                \myprogram\pref s
                and etc. etc. for the other boxes.
                >

                Comment

                Working...