i want the program to run on startup using the startup folder, NOT the registry.i cannot find anything on the startup folder.whenever people ask about the startup folder, all the replies are about the registry. i am beginning to think that the startup folder is some kind of government secret.
How would I create a shortcut of my exe file when its run, I can work out the directories and stuff but how would I actually create the program that it starts when windows boots?
I have done quite a few google searches and have found nothing to interesting or useful but I did find out that there is two main ways of doing this registry or startup folder and im more pulled into the startup folder because I dont think that I yet know enough about controlling the registry to be confident of using code like that, so I fall to my other alternative using the startup folder to trigger my program, I read somewhere that this doessn not work for vista but im not sure of that. What I would like to as is how you actually create a shortcut as I cant really understand VB6 Code very well its all I could find.
I wanted to give my user an option for "Start with Windows". When user check this option it will place a shortcut icon into Startup folder (not in registry). On Windows restart, it will load my app automatically.
how i can write a program to create a shortcut in the startup folder of a different program. So i have one program on my computer that should run at startup, i just need another program to create a shortcut to it, and then copy this shortcut into the startup folder.
I am a beginner using 2008 Express and I am trying to get my application to remember and restore some combobox values. It seems to work fine if the application is opened and closed normally but for some reason it loses the settings if it is opened from the startup folder.
Here is how the startup link is formed:
Dim shortcutFile As String = Environment.GetFolderPath(Environment.SpecialFolder.Startup) & "FBNav.lnk" If Not IO.File.Exists(shortcutFile) Then
I'm currently developing a download manager and converter for audio and video files. Does anyone know how can I get the music file from a specific folder from my computer (I already used openfiledialog) and putting it into a listview?
I have a program here that gets a list of directories from drive, and it works fine, but keeps listing the directories that are actually shortcuts/ junctions. For instance,[code]Will list all the directories(and files as well with .GetFiles) in 'c:\Users\All Users\', even tho 'All Users' is just a shortcut. This can lead to some problems, like 'c:\Users\All Users\Application Data\' lists all the files/folders in "All Users" including "Application Data", so it'll just keep recursing itself until it quits with an error. I can hard code it, and ignore that specific folder, but theres a few other shortcut folders that exist as well..So is there any way to detect and ignore those "directories"?
I have an app that requires the user to select a folder, the app runs up/down that folder tree to read/write various files. All that works fine. To select the folder, I support three methods, a FolderBrowserDialog, drag/drop and also a text mechanism where the path can be typed/pasted into a textbox.The issue I have is handling folder shortcuts. Pasting the path is fine and drag/drop is fine because I can sort out what the incoming object is in code. But for folder/shortcut selection by dialog, I've ended up with two buttons, one being the FolderBrowserDialog for folders and the second an OpenFileDialog for shortcuts (set to display only .lnk files).From a users perspective, I think this is quite poor, it also 'looks' plain odd. It forces the user to check what type of folder object they want to use before they can select it. How can I permit folder OR shortcut selection with the same dialog? It seems that my only option is to build my own dialog, which could actually be quite involved, since I would need to replicate the File/Folder dialogs.
I want to be able to make my programme create a folder on startup. Basically by that, I mean whenever the programme is started up on a new machine, it will create a specific folder that later on, it can put files into.Also does anybody know how I can stop it from doing this every-time on a machine that its already created the folder on?
How do i make my program appear in the startmenu? My idea was to have the program create a shortcut and copy it to the startmenu folder, but how do i have it create a shortcut of it's self?
I was having trouble before editing the registry on a WPF application I'm working on, in order to get autostart to work, so I ended up creating a shortcut in the startup folder to automatically start the application. My problem is, that this not working on Windows 7 (and Im guessing Vista too). Here's my code. Does Environment.SpecialFolder.Startup not work on Windows 7?
Dim PathToStartupFolder As String = Environment.GetFolderPath(Environment.SpecialFolder.Startup) If File.Exists(PathToStartupFolder & "Application.Exe.LNK") = False Then Dim ShellObject As New IWshRuntimeLibrary.WshShell
how can I get the shared startup folder? My application is set to add a shortcut to the startup folder, but it isnly for that user, and I'd like it to automatically start for any user on the machine.I know you can do this by adding a registry key, but I'm having trouble getting my registry key code to work in this WPF app.
I have a Quick Launch Toolbar linked to a folder of shortcuts.In this folder I link other folders and applications that I use commonly.I'm trying to use WSH to create a shortcut to a folder in my Quick Launch toolbar, but the shortcut isn't being created correctly.I suspect my problem is that, evidently, Windows has two kinds of shortcuts to folders.Using Explorer,I navigate to my Quick Launch folder, and choose the File | New | Shortcut, supplying the name of another folder as a target, it creates the shortcut.Using Explorer, looking at the shortcut in the details panel, Win says the shortcut is of type "Shortcut". Looking at its properties, the type is also Shortcut, and looking at the Shortcut tab, the Target Type is "Folder" and the Target location is the path I supplied. Now create the shortcut another way.Locate the folder in Explorer, and right-click-drag it to the same Quick Launch folder, choosing to Create a Shortcut.Now, Explorer thinks the shortcut is of type "Folder" and looking at it's properties, the Type is Folder (Target Type isn't shown) and the Target does point to the real location.There isn't a Shortcut tab now either.Both are definitely shortcuts to the same folder (I've double-checked), but they work differently in Quick Launch.If you pull up the Quick Launch toolbar and hover over the second shorcut, Windows pops out a sub-menu that contains the folder's contents. However, there is no such functionality using the first shortcut, you would have to choose Explore from the right-click menu to view it's contents.
(Below, the "Work" dir is my Quick Launch toolbar's folder)Using WSH, I can create a shortcut that doesn't autoexpand as follows: Set WshShell = WScript.CreateObject("WScript.Shell")[code].....
I need my application to update as it is on multiple computers. Will the program update and work if I just replaced the files in the application startup folder with the files from the newer version's application startup folder?
what's the simplest way to ensure the installation of my app is installed in the startup folder/quick launch for all users , even if my app is not installed from the owner directory?
i was wondering if i can copy my application to the startup folder in windows when the form loads. The path i want my app to copy to is: C:Documents and SettingsAll UsersStart MenuProgramsStartup
I am trying to use Setup project. Want my setup to create a desktop shortcut with my application.I donot understand how to do it. Clicked on User's desktop, I created Shortcut to User's desktop, changed the properties Target and Working Folder as 'Application Folder'But it does not connect with MyApplication.exe When I ran the setup and tested Desktop short cut, it took me to the folder where application was installed, instead of running the application.How to make the application run using this shortcut?
Im using VB express 2010, can I call (use) a shortcut that exist to a file or folder?I have a userform with buttons that I wish to use to open files and or folder locations for browsing.