473,417 Members | 1,422 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,417 software developers and data experts.

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\%username%
\myprogram\prefs
and etc. etc. for the other boxes.
Sep 10 '08 #1
7 3239
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
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
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
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
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
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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Kay Lee | last post by:
Hi, I looked up os module to find out some method to move and copy files in python, but os doesn't support such methods. Is there any way to move & copy files in python? Thanks in adv.
0
by: durumdara | last post by:
Hi ! I have some backup files on a server farm. I want to store these local backup files on a backup file server for "safety's snake". These files are compressed zip files with 12 character...
1
by: Mark Goldin | last post by:
In general, can server side code copy files that it will create over the network? Thanks
8
by: Chris Strobel | last post by:
I have 2 web servers where I need to write a PDF file and need to keep them in sync. In others words, If the Server1 is getting called to create the PDF, then it needs to copy the PDF to the other...
8
by: Paw | last post by:
Greetings. I use asp. what I need is is when a visitor comes to the site, I need it to check the host name. if "www.hometowndigest.com" is the host, then check a folder named "something" and if...
1
by: dkmarni | last post by:
Hi, I am trying to do this perl script, but not able to complete it successfully. Here is the description what the script has to do.. Accept two and only two command line arguments. Again,...
1
fnwtech
by: fnwtech | last post by:
Here is my newest dilemma :) I need a login script which will copy files from the server to clients at login. This is what I have: md c:\lad @echo off xcopy lab1\\c:\lad c:\lad /m /e /y ...
2
by: parmarjm | last post by:
Hi I am trying to copy files from mapped drive (J:\) to a different machine. The perl script is going to run on my machine to copy files from one place to another. File transfer works when i copy...
1
by: hadiyazdi | last post by:
import shutil files = os.listdir("C:\\") for efile in files: shutil.copy(efile, "D:\\") I didn't think this simple script may crash whenever C: and D: are available and permissions are...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.