For some reason I need to run CMD on windows startup. I need to run CMD with arguments. Is it possible to do via registry key?
Active4 years, 7 months ago
Run and RunOnce keys are run each time a new user logs in. RunServices and RunServicesOnce are run in the background when the logon dialog box first appears or at this stage of the boot process if there is no logon. These keys are for background services such as remote registry service and are. Run-Regedit-HKEYLOCALMACHINE-SYSTEM-ControlSet001-Service-xhunter1-ImagePatch klik kanan di delete.
I am trying the
But how can I add arguememnts to it, if that's possible?
I made this simple task 'C:WindowsSystem32cmd.exe /c notepad.exe' But dont have notepad to be run by cmd. What can be the reson?
Can I be missing something? I have made two records
1 in HKLM / RUN/ 'C:WindowsSystem32cmd.exe /c notepad.exe' 2 in HKEY_CURRENT_USER/ RUN the same record 'C:WindowsSystem32cmd.exe /c notepad.exe' But the cmd doesnt start notepad
Alex
AlexAlex
2 Answers
Your example has the lines in the wrong order for a
*.reg file. The following should work:
This will only run once on bootup. If you want to run every time you log in, then you need to change it to:
PhylogenesisPhylogenesis
from CMD you can Run this
REG ADD HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindowsCurrentVersionRunOnce /t REG_SZ /d ' '
How To Get To Hkey Local Machine
or manually you can go to this structure and string value
user1627167user1627167
Not the answer you're looking for? Browse other questions tagged windowscmdregistry or ask your own question.
Hello Lei Peng,
I understand that you are inquiring about deleting a registry key. I would not suggest removing the registry key. There shouldnt be a reason to proceed with removing a registry key for an application to function successfully. If you had created a backup of your registry please double click on the .reg file and restore the modification made. If you did not backup the deleted key or registry, please run a System Restore prior to the deletion. Once everything has been restored successfully.
-Attempt to run/install the application in Compatibility Mode (Windows XP)
-Install and run Windows XP Mode and proceed with running the application in the Virtual Environment and accessing it on your Windows 7 GUI.
However if you prefer not to proceed with the steps listed above, I would like to suggest posting your question in one of the Microsoft Developer Network > Forums Home > Visual C++ Forums > Visual C++ General located here:
If you have any additional questions or concerns, please do not hesitate to respond to this thread. I look forward to hearing from you. Have a great day.
Rudresh mahanthappa tour. It is a pleasure to listen to these tracks and forget about the source of the melodies or the intelligence behind the musical melding of cultures.
Thank you,
Aaron
AaronMicrosoft Answers Support Engineer Visit our Microsoft Answers Feedback Forum and let us know what you think Comments are closed.
|
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |