Questions tagged [startup-folder]

19 questions
15
votes
2 answers

how to set startup uri property to another window in folder in wpf project

In my wpf project i have created a folder called practice, in that folder i added a window, now i want to run that window, so in app.xaml file i set the startup uri to foldername.window.xaml but it is saying build action property is not set to…
Sekhar Babu
  • 368
  • 2
  • 8
  • 27
5
votes
1 answer

Running an application at startup: registry entry vs. startup folder

I want to run an application at startup. I understand there a few options. I'm most interested in the options below: The registry approach: HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Run Copying a shortcut to the startup folder:…
frigon
  • 4,979
  • 7
  • 32
  • 38
3
votes
1 answer

cmd.exe returns "Not enough storage is available to process this command."

...have been running Widows 7 Pro with STARTUP folder modified to run two BATs to create two CMD boxes, one left and one right. A few days ago at logoff time 13 updates to Windows7 were installed and at logon the next day the two CMD boxes had a…
user3126307
  • 31
  • 1
  • 3
3
votes
2 answers

how to create a scheduled task that runs when any user logins to the system

I want to launch an exe file of my product (C:\ClassConnect\class_server.cmd) on user login. I tried 2 solutions ( but nothing seems to work) Solution 1 : ( Added Startup Shortcut ) It asks the user for UAC dialog, which obviously my users will not…
Rajesh Agrawal
  • 484
  • 2
  • 5
  • 18
2
votes
1 answer

run serve -s build from .bat file

I want to execute serve -s build from .bat file as admin, this is my .bat file: @ECHO OFF cd "C:\Users\user\Desktop\Brabender\build-20220517T114506Z-001" serve -s build It works if I manually run it as admin, but I need it to run from Windows…
Anna
  • 33
  • 5
2
votes
2 answers

How to find where the Startup folder is with Java?

In my Java program how can I find out where the Startup folder is on uers' PCs ? I know it's different on different versions of Windows. I only need my app to work on Windows. Any sample code ?
Frank
  • 30,590
  • 58
  • 161
  • 244
2
votes
1 answer

C# : List image reset after close app

I'm using VS2013 to develop an windows form application with SQL Server database. I have a column in database table to store the image name : In my application, I creat a button to select image from my computer and save that's image to application…
2
votes
2 answers

Create Shortcut in StartUp folder (VB.NET)

I have this code and it's giving troubles: Imports IWshRuntimeLibrary Imports Shell32 Public Sub CreateShortcutInStartUp(ByVal Descrip As String) Dim WshShell As WshShell = New WshShell() Dim ShortcutPath As String =…
soulblazer
  • 1,178
  • 7
  • 20
  • 30
2
votes
1 answer

Batch File To Get It's Own Directory Or The Directory Defined In The "Start In" Property Of A Shortcut

I am writing a batch file on my Windows 8.1 machine. In one section of my batch file I need to start a command prompt in the "current working directory". So far, this is what my batch file looks like: @echo OFF set WORKING=%cwd% start cmd.exe /K…
1
vote
1 answer

Running .bat through Windows Services vs Startup Folder

The software(Java app) I'm working on is currently started through a batch file set up as a windows service, but it looks kind of a hassle to set it up for each computer, when I can just write a .bat file that creates a shortcut to the startup…
loli
  • 1,058
  • 8
  • 14
1
vote
4 answers

Set XML file to startup path

I have C# windows application with XML file. After installing the set up file I need to edit the XML file time to time. But my XML file not going to the path where the executable is located. So that is giving error. With in a program I'm getting XML…
Tom
  • 1,343
  • 1
  • 18
  • 37
0
votes
1 answer

Copy Icon into Startup Folder Using VB.Net

I'd like to copy an icon into the computer's startup folder from vb.net code.
Jeff
  • 8,020
  • 34
  • 99
  • 157
0
votes
0 answers

Start with windows without requiring administrative rights

I know the commonly used method to run a program at start-up is put the application path in the currentversion/run key of windows registry. But doing so requires the program to run with administrative privileges (Run as administrator). I've seen…
Somanna
  • 284
  • 1
  • 13
0
votes
2 answers

Run application with admin privileges from startup folder

I have copied the shortcut of my application in startup folder for all users. I want my application to start with admin privileges when the the system is restarted and a non-admin user logs in. This is important because my application is working…
meriaz
  • 65
  • 1
  • 11
0
votes
1 answer

WPF Vb.net Copyto not working?

I am simply tyring to fire an event that copies a program to the Startup folder. I do not understand where I am going wrong? I keep on getting exception message. The file that is being copies is NOT in use. Try Dim DesktopLink As String =…
Benjamin Jones
  • 987
  • 4
  • 22
  • 50
1
2