Visual Basic 2010 Copy To StartUp Tutorial

Visual Basic 2010 Copy To StartUp Tutorial


How to make a program that wil copy itself to startup folder.

Code:

Dim OS() As String
Dim UserName() as String


Form1.Load
OS = My.Computer.Info.OSFullName.Split(" ")
UserName = My.User.Name.Split("\")
TextBox1.Text = OS(2)
TextBox2.Text = UserName(1)

If OS(2) = "XP" Then TextBox3.Text = "C:\Documents and Settings\" & UserName(1) & "\Start Menu\Programs\Startup\" & Application.ProductName & ".exe"
Else TextBox3.Text = "C:\Users\" & UserName(1) & "\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup\" & Application.ProductName & ".exe"
End If


Button1.Click
Try
My.Computer.FileSystem.CopyFile(Application.ExecutablePath, TextBox3.Text)
Catch ex As Exception
MsgBox("Could not copy file!")
End Try


If you get any errors, just try to retype the code or post the error in comments.
Closed Caption:

had to all rights
examines she'll have to make an
indication that soon
cope itself to the sometime heads up the
computer
still offense busy assuring me
through Dreamz around when you login
user account some
your system writings an alliance is the
doesn't any word is removed
New York remissions dress and interest
in animation project
things
times
the montanans street gangs Nexus
and moans visit to be the first to take
strike since
just shown this parodies
Gene Krupa really internalized
solutions actually past
lemme to lose them
systems in
designed them my happy applications
that's yes Ste
Matt from
in the ninth record influenza
someone deeds
the Lance and then something's
these two characters names
instances treaty music mashed
910 done through
enter discussions alright Zealand s
these changes the
a mystery to from
my computer usually
some name up to you is this instance in
so
welcome indians horizons
school the you is name he's seen those
my Christmas in the sand and the interns
instructions they did so much as did the
same
housed sons
he's the same June through them
these the name system just needs a
little name
times which is the skis
name computer this turns
nection username right discusses the
tombs
constraints them same
grigsby the mean those who run
to text books 1 this one is not
displayed to the user name
didn't exist sheehan's
noonan you soon
16 dicey industries
the these best
beginners sixty and
threesome concerned him defend start-up
this soil use a reason
exchanges goods is dumb use
she she uses Sam
the this country's music the Redskins
and the clintons some You Can Dance
decoding descriptions slim
and rest doing this to nazis
Disney Co dzisiaj you're pretty
shootings
16 things on street you bitches am
and is it stands to reason Eric nice
contrast
plans residences seized
to which is the US GISTs as
send his name in these subjects
it's cleaned the
exit sign solutions
this condom nixon's
Damien's
just sent word gesture
them rights and Mona
happy to truman two sons students who
witnessed
I'll add
netizens watching
I homes teaches them to you trends in
there are many videos
resistance of there's on you too saloon
thanks for watching

Video Length: 06:00
Uploaded By: Jakob Erzar
View Count: 6,998

Related Software Products
CopyTo
CopyTo

Published By:
VSO Software

Description:
Burn CDs, DVDs, and Blu-ray disks. CopyTo is compatible with all disks and drives. Burn audio / video / data / iso files and compatible DVD video and blu-ray structured folders. A smart data analyzer integrated in CopyTo makes your burning tasks easier as the program suggests the best output format (burn audio CD, burn to DVD, burn DVD Video...). Besides burning you can also copy from disk to disk. Version 5 has added special support for your music needs: create mp3 disks (converts your ...


Related Videos
C# From A to Z - Lesson 36: Strings (Clone - Copy - CopyTo)
C# From A to Z - Lesson 36: Strings (Clone - Copy - CopyTo)

Lessons Index: Lesson 1: Comments Lesson 2: Value vs Reference Types Lesson 3: Built-in Value Types Lesson 4: Variables and Constants Lesson 5: Variables & Constant Examples Lesson 6: Operators Lesson 7: Operators Examples Lesson 8: Casting & Conversion Lesson 9: Casting & Conversion Examples Lesson 10: Enumerations Lesson 11: Enumerations Examples Lesson 12: The USING Statement Lesson 13: The IF Statement Lesson 14: ...
Video Length: 03:27
Uploaded By: zoom1177
View Count: 3,183

Kat Kerr - Copy to all heaven !! [Must watch]
Kat Kerr - Copy to all heaven !! [Must watch]

If interested, please "Like" and "Share" Do not forget the "Subscribe" for more compelling videos and more meaningful ahead. Visited channels: https://goo.gl/fKGPFD hr / bClosed Caption:/b well when God does stuff in our life it's the same thing we're going to be in contact with new people may be going to new places totally doing things a different way than we ever have before maybe even we did something similar butbr ...
Video Length: 44:22
Uploaded By: Kat Kerr Author
View Count: 1,542

C# List CopyTo and ToArray
C# List CopyTo and ToArray

Shows using the CopyTo() and ToArray() methods on a List and implementing such. hr / bClosed Caption:/b sobel the new understand well home by now that all this the simply a rapper around an actual rare raise do not size dynamically but as programmers would like things to size dynamically Mb bucks won't so we can a Baker by making these less data structures and all they do underneath his maintain an array ...
Video Length: 04:13
Uploaded By: Jamie King
View Count: 1,378

How to use Dynamics NAV Copy to and from Excel
How to use Dynamics NAV Copy to and from Excel

How to use Dynamics NAV Copy to and from Excel, presented by Match Business Solutions hr / bClosed Caption:/b in this presentation we're going to see how to copy to and from excel for microsoft dynamics nav first we do a copy to excel that a copy from excel and then we look at more design changes that we have sometimes to do to enable the copy from Excel let's start by going to a general journal going to top left print ...
Video Length: 12:01
Uploaded By: Eric Durand
View Count: 1,199

Add 'CopyTo' & 'MoveTo' in Context Menu
Add 'CopyTo' & 'MoveTo' in Context Menu

By default Windows XP, 7 gives only "cut" and "copy", but with a simple trick you can add a "copy to" and a "move to" option too into your right click context menu. In case your .reg file is not working, check if the following error occurred: "ContextMenuHan­-dlers" instead of "ContextMenuHan­dlers". This is a copy paste problem... Add options: ------------------------------------------- REGEDIT4 br ...
Video Length: 01:47
Uploaded By: furulevi
View Count: 330

A Simple XY script: copyto
A Simple XY script: copyto

This video shows how to write a very simple script to copy a file to another folder using XYplorer scripting. Scripting can be used to automate several tedious and banal file management tasks with one mouse click. Links: XYplorer home: http://www.xyplorer.com/ A Tour to XY scripting: http://www.xyplorer.com/tour/index.ph... XY Forum Script exchange: http://www.xyplorer.com/xyfc/viewforu...
Video Length: 01:37
Uploaded By: Seren dipity
View Count: 316

ACDSee Pro 6. 'CopyTo...' - delay demo
ACDSee Pro 6. 'CopyTo...' - delay demo

ACDSee Pro 6 is inaccessible for more than 20 seconds during 'Copy to...' --operations.
Video Length: 01:03
Uploaded By: Lars Hansen
View Count: 284

Daily Planner Copy to Google Apps
Daily Planner Copy to Google Apps

Daily Planner Copy to Google Apps hr / bClosed Caption:/b did you know that you can export data for your students directly from the daily planner information can then be copy pasted into scripts in Google Maps see how the process works from your daily planner click the Data tab from the Data tab click the second option all student data in Excel documents click open to open the Excel ...
Video Length: 01:46
Uploaded By: Fargo Public Schools
View Count: 241

Copyright © 2025, Ivertech. All rights reserved.