Go Back  Xtreme Visual Basic Talk > Legacy Visual Basic (VB 4/5/6) > General > ReadKey


Reply
 
Thread Tools Display Modes
  #1  
Old 05-29-2003, 03:05 PM
tux tux is offline
Newcomer
 
Join Date: May 2003
Posts: 5
Default ReadKey


Hi

How would i make App.EXEName say the App Exe Name using it like
Code:
ReadKey("HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Run\App.EXEName")
i cant get it to read it i tried putting in & before and after App.EXEName but then it tries reading & App.EXEName & but i need it to come out as the the name like Project1 or whatever

Thanks
Reply With Quote
  #2  
Old 05-29-2003, 03:12 PM
robot313's Avatar
robot313 robot313 is offline
Senior Contributor

Retired Leader
 
Join Date: May 2001
Location: North Carolina, USA
Posts: 1,295
Default

Leave the key name in quotes but put & App.EXEName outside the quotes:
ReadKey("HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Run\" & App.EXEName)
Reply With Quote
  #3  
Old 05-29-2003, 03:30 PM
tux tux is offline
Newcomer
 
Join Date: May 2003
Posts: 5
Smile

Quote:
Originally Posted by robot313
Leave the key name in quotes but put & App.EXEName outside the quotes:
ReadKey("HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Run\" & App.EXEName)



Thank You
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

Advertisement:





Free Publications
The ASP.NET 2.0 Anthology
101 Essential Tips, Tricks & Hacks - Free 156 Page Preview. Learn the most practical features and best approaches for ASP.NET.
subscribe
Programmers Heaven C# School Book -Free 338 Page eBook
The Programmers Heaven C# School book covers the .NET framework and the C# language.
subscribe
Build Your Own ASP.NET 3.5 Web Site Using C# & VB, 3rd Edition - Free 219 Page Preview!
This comprehensive step-by-step guide will help get your database-driven ASP.NET web site up and running in no time..
subscribe
 
 
-->