Forums
New posts
Search forums
What's new
New posts
New profile posts
Latest activity
Members
Current visitors
New profile posts
Search profile posts
C# Community
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Menu
Log in
Register
Install the app
Install
VB.NET
VB.NET General Discussion
Copy File - but need Environment Variable - VS 2005
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
[QUOTE="oceaniana, post: 28234, member: 6397"] Hello I need help on the below code, im a absolute noob please be kind I'll try to explain what im trying to do, XXXXX below needs to be replaced with path to SystemDrive, but i cant use %SystemDrive% Environment Variable, i cant use C:\ as it is a fixed path(not all PC's have xp on c drive) All i got to do is copy a file from my burnt cd (some Path) with my app to various xp installs [code]Public Sub Button20_Click() Handles Button20.Click Dim str As [String] Dim query As [String] = "%SystemDrive%" str = Environment.ExpandEnvironmentVariables(query) My.Computer.FileSystem.CopyFile("Register.key", "XXXXX\Program Files\Register.key") End Sub[/code] I know i sux at coding, but if anyone can help please please could u have full example. I appreciate any kind of feed back. Thank You :D [/QUOTE]
Insert quotes…
Verification
Post reply
VB.NET
VB.NET General Discussion
Copy File - but need Environment Variable - VS 2005
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.
Accept
Learn more…
Top
Bottom