By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
435,635 Members | 2,060 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 435,635 IT Pros & Developers. It's quick & easy.

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

P: n/a
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\%username%
\myprogram\prefs
and etc. etc. for the other boxes.
Sep 10 '08 #1
Share this Question
Share on Google+
7 Replies


P: n/a
You want a VBScript? Or, VB .NET?

They are two VERY different things.
"Jason" <pa*****@excite.comwrote in message
news:d3**********************************@59g2000h sb.googlegroups.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\%username%
\myprogram\prefs
and etc. etc. for the other boxes.

Sep 10 '08 #2

P: n/a
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.nospamwrote:
You want a VBScript? *Or, VB .NET?

They are two VERY different things.

"Jason" <paul...@excite.comwrote in message

news:d3**********************************@59g2000h sb.googlegroups.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\%username%
\myprogram\prefs
and etc. etc. for the other boxes.
Sep 11 '08 #3

P: n/a
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" <pa*****@excite.comschreef in bericht
news:0c**********************************@k13g2000 hse.googlegroups.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.nospamwrote:
You want a VBScript? Or, VB .NET?

They are two VERY different things.

"Jason" <paul...@excite.comwrote in message

news:d3**********************************@59g2000h sb.googlegroups.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\%username%
\myprogram\prefs
and etc. etc. for the other boxes.
Sep 11 '08 #4

P: n/a
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:0c**********************************@k 13g2000hse.googlegroups.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.nospamwrote:
You want a VBScript? Or, VB .NET?
They are two VERY different things.
"Jason" <paul...@excite.comwrote in message
news:d3**********************************@59g2000h sb.googlegroups.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\%username%
\myprogram\prefs
and etc. etc. for the other boxes.
Sep 11 '08 #5

P: n/a
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" <pa*****@excite.coma écrit dans le message de groupe de discussion
: d3**********************************...oglegroups.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\%username%
\myprogram\prefs
and etc. etc. for the other boxes.

Sep 11 '08 #6

P: n/a
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:0c**********************************@k 13g2000hse.googlegroups.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.nospamwrote:
You want a VBScript? Or, VB .NET?
They are two VERY different things.
"Jason" <paul...@excite.comwrote in message
>news:d3**********************************@59g2000 hsb.googlegroups.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\%username%
\myprogram\prefs
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
Sep 11 '08 #7

P: n/a
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]" <no************@planet.nlwrote in message
news:4A**********************************@microsof t.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" <pa*****@excite.comschreef in bericht
news:0c**********************************@k13g2000 hse.googlegroups.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.nospamwrote:
>You want a VBScript? Or, VB .NET?

They are two VERY different things.

"Jason" <paul...@excite.comwrote in message

news:d3**********************************@59g2000 hsb.googlegroups.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\%username%
\myprogram\prefs
and etc. etc. for the other boxes.

Sep 11 '08 #8

This discussion thread is closed

Replies have been disabled for this discussion.