Hi,
I have a small application with a User Settings form
I would like to give the Users the ability to (at any time) set the
Application to load when the PC is started.
Can someone point me in the direction of how to create a Short Cut and place
it in the folder "C:\Documen ts and Settings\'User Name'\Start Menu\"
or am I better off setting/unsetting a registry entry somewhere? (noting
that most Users will not have Administrator priviledges.
Thanks
Doug 4 1478
Hi,
I think a normal user always has the right to write to this registry key:
HKEY_CURRENT_US ER\Software\Mic rosoft\Windows\ CurrentVersion\ Run\
If you create a new key there with the name of your exe and in the value the
path to your exe, it will auto-start
hth
Greetz Peter
"Doug Bell" <du*@bigpond.co m> schreef in bericht
news:OH******** ******@TK2MSFTN GP14.phx.gbl... Hi, I have a small application with a User Settings form I would like to give the Users the ability to (at any time) set the Application to load when the PC is started.
Can someone point me in the direction of how to create a Short Cut and
place it in the folder "C:\Documen ts and Settings\'User Name'\Start Menu\" or am I better off setting/unsetting a registry entry somewhere? (noting that most Users will not have Administrator priviledges.
Thanks
Doug
Thanks Peter,
I have just been search to find a way to write to Registry.
In VB VBA I used to call a Windows API but I hope that VB .Net does not
require this.
I found:
SaveSettingAppN ame, Section, Key, Setting)
but this does not allow you to select the correct section
(Software\Micro soft\Windows\Cu rrentVersion\Ru n)
It writes to Software\VB and VBA Program Settings\'AppNa me'\'Section'\' Key'
Doug
"Peter Proost" <pp*****@nospam .hotmail.com> wrote in message
news:e5******** ******@TK2MSFTN GP09.phx.gbl... Hi,
I think a normal user always has the right to write to this registry key: HKEY_CURRENT_US ER\Software\Mic rosoft\Windows\ CurrentVersion\ Run\
If you create a new key there with the name of your exe and in the value
the path to your exe, it will auto-start
hth
Greetz Peter
"Doug Bell" <du*@bigpond.co m> schreef in bericht news:OH******** ******@TK2MSFTN GP14.phx.gbl... Hi, I have a small application with a User Settings form I would like to give the Users the ability to (at any time) set the Application to load when the PC is started.
Can someone point me in the direction of how to create a Short Cut and place it in the folder "C:\Documen ts and Settings\'User Name'\Start Menu\" or am I better off setting/unsetting a registry entry somewhere? (noting that most Users will not have Administrator priviledges.
Thanks
Doug
Hi Doug,
maybe this helps:
Imports Microsoft.Win32
Dim oRegKey As RegistryKey
Dim oBaseKey As RegistryKey
oBaseKey = Registry.Curren tUser
oRegKey =
oBaseKey.OpenSu bKey("Software\ Microsoft\Windo ws\CurrentVersi on\Run", True)
If Not oRegKey Is Nothing Then
'Read the value
Dim val As Object = oRegKey.GetValu e("YourValueNam e")
msgbox(CStr(val ))
'Set the value
oRegKey.SetValu e("YourValueNam e", "your path")
End If
hth Peter
"Doug Bell" <du*@bigpond.co m> schreef in bericht
news:uk******** ******@TK2MSFTN GP15.phx.gbl... Thanks Peter, I have just been search to find a way to write to Registry. In VB VBA I used to call a Windows API but I hope that VB .Net does not require this. I found: SaveSettingAppN ame, Section, Key, Setting)
but this does not allow you to select the correct section (Software\Micro soft\Windows\Cu rrentVersion\Ru n)
It writes to Software\VB and VBA Program
Settings\'AppNa me'\'Section'\' Key'
Doug
"Peter Proost" <pp*****@nospam .hotmail.com> wrote in message news:e5******** ******@TK2MSFTN GP09.phx.gbl... Hi,
I think a normal user always has the right to write to this registry
key: HKEY_CURRENT_US ER\Software\Mic rosoft\Windows\ CurrentVersion\ Run\
If you create a new key there with the name of your exe and in the value the path to your exe, it will auto-start
hth
Greetz Peter
"Doug Bell" <du*@bigpond.co m> schreef in bericht news:OH******** ******@TK2MSFTN GP14.phx.gbl... Hi, I have a small application with a User Settings form I would like to give the Users the ability to (at any time) set the Application to load when the PC is started.
Can someone point me in the direction of how to create a Short Cut and place it in the folder "C:\Documen ts and Settings\'User Name'\Start Menu\" or am I better off setting/unsetting a registry entry somewhere?
(noting that most Users will not have Administrator priviledges.
Thanks
Doug
Peter thanks,
I was just about to post that I had found that.
I am starting to build a class as a wrapper to Create, Read, Write, and
Delete Keys
So that I can re-use it.
Thanks for your responses.
Doug
"Peter Proost" <pp*****@nospam .hotmail.com> wrote in message
news:%2******** ********@TK2MSF TNGP10.phx.gbl. .. Hi Doug,
maybe this helps:
Imports Microsoft.Win32
Dim oRegKey As RegistryKey Dim oBaseKey As RegistryKey
oBaseKey = Registry.Curren tUser oRegKey = oBaseKey.OpenSu bKey("Software\ Microsoft\Windo ws\CurrentVersi on\Run", True)
If Not oRegKey Is Nothing Then 'Read the value Dim val As Object = oRegKey.GetValu e("YourValueNam e") msgbox(CStr(val ))
'Set the value oRegKey.SetValu e("YourValueNam e", "your path") End If
hth Peter "Doug Bell" <du*@bigpond.co m> schreef in bericht news:uk******** ******@TK2MSFTN GP15.phx.gbl... Thanks Peter, I have just been search to find a way to write to Registry. In VB VBA I used to call a Windows API but I hope that VB .Net does not require this. I found: SaveSettingAppN ame, Section, Key, Setting)
but this does not allow you to select the correct section (Software\Micro soft\Windows\Cu rrentVersion\Ru n)
It writes to Software\VB and VBA Program Settings\'AppNa me'\'Section'\' Key'
Doug
"Peter Proost" <pp*****@nospam .hotmail.com> wrote in message news:e5******** ******@TK2MSFTN GP09.phx.gbl... Hi,
I think a normal user always has the right to write to this registry key: HKEY_CURRENT_US ER\Software\Mic rosoft\Windows\ CurrentVersion\ Run\
If you create a new key there with the name of your exe and in the
value the path to your exe, it will auto-start
hth
Greetz Peter
"Doug Bell" <du*@bigpond.co m> schreef in bericht news:OH******** ******@TK2MSFTN GP14.phx.gbl... > Hi, > I have a small application with a User Settings form > I would like to give the Users the ability to (at any time) set the > Application to load when the PC is started. > > Can someone point me in the direction of how to create a Short Cut
and place > it in the folder "C:\Documen ts and Settings\'User Name'\Start Menu\" > or am I better off setting/unsetting a registry entry somewhere?
(noting > that most Users will not have Administrator priviledges. > > Thanks > > Doug > >
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Galina |
last post by:
Hello
I am going to copy a data from MS Access table into Oracle table. One
of fields is memo type and data in this field range from 1 character
to 551 long string. Do I need to create a field type LONG in the
Oracle table to accommodate this data? If not, what field type would
suit best?
Any help will be greatly appreciated.
Thank you.
Galina
|
by: IMS.Rushikesh |
last post by:
Hi Friends,
I need a XPath query, whcih ll return me subset of data....
check below xml stream
<label id="MyExpenseDetails_lbl" xlink:role="terseLabel">Short Expense
Details</label>
<label id="MyExpenseDetails_lbl" xlink:role="displayLabel">Expense
Details</label>
<label id="InternalExpense_lbl" xlink:role="displayLabel">Internal
|
by: Glen Herrmannsfeldt |
last post by:
I was compiling a program written by someone else about six years ago, and
widely distributed at the time. It also includes makefiles for many
different systems, so I know it has been compiled with many different
compilers.
I got compile errors when it used va_arg to fetch an argument of type short.
That seemed a little strange to me, so I changed it to int and it compiled
just fine.
So now I wonder, just what is the rule for va_arg...
|
by: Dave Griffin |
last post by:
I have what I think is an "unmanaged DLL" that I access from within C#
using the construction:
public static extern ushort sbs_init_device(ushort DevNum,
ushort queue_length, ushort bsm_length,
SBS1553Classes.SBS_FIRMWARE_SOURCE firmware_source);
There are no object oriented constructions here and the code is
actually C (not C++). I would like to create a "phony" version of this
|
by: DotDidIt |
last post by:
Hi Everybody!
I developed a Web service with IBM RAD v 6.0.1.
After creating the WSDL file i have tried to develop a .Net client.
But by using wsdl.exe (1.1.4322) to create a .net c# proxy i get the
following error message:
Schema parsing error Namespace 'http://session.ejbs.cac.commerce.com'
is not available to be referenced in this schema.
Schema parsing error Namespace 'http://session.ejbs.cac.commerce.com'
| |
by: Susan Rice |
last post by:
I want to create a readonly array of data, then a readonly array of a
structure. This is data I access but I want it protected against
accidental change. The following is my test code.
#include "stdafx.h"
struct LVC
{
unsigned short int lo;
unsigned short int hi;
|
by: kenneth6 |
last post by:
I read a Java class example on tutorial book. What is the part marked with asterisks doing? What is "create reflection of element" in java? Any analogy in C++?
its structure is like the following:
public class Element {
...............................
.......blabla.......blabla
...............................
declare variables
|
by: =?Utf-8?B?QmVuIFdoeXRl?= |
last post by:
I have an asp.net application using vb.net code. When I try and view the
pages in design mode I get 'error creating control' messages with 'Attempted
to read or write protected memory. This is often an indication that other
memory is corrupt'
These are custom controls.
Anyone have any ideas as to what causes this?
|
by: yrogirg |
last post by:
Actually, I need utf-8 to utf-8 encoding which would change the text
to another keyboard layout (e.g. from english to russian ghbdtn ->
ÐÒÉ×ÅÔ) and would not affect other symbols.
I`m totally new to python and to more or less advanced programming. I
couldn`t find the answer to the question anywhere.
I`ve tried create simple utf to utf codec for some symbols but it
doesn`t work. Here it is.
|
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
| |
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
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 then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |