Windows 7 Forums

Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.


Windows 7: Windows Startup Command

03 May 2016   #1
Rockit

Windows 7 Premium 64 Bit
 
 
Windows Startup Command



Hello,

I want to Auto Start the Trim.exe

So far I have Trim Registry -> Machine Run "C:\Utilitys\Misc\Trimcheck-0 4.exe" -hide

What do I need to add so it will trigger the enter key to start and the enter command to exit?

Thank You !


My System SpecsSystem Spec
.
04 May 2016   #2
Anak

Microsoft Community Contributor Award Recipient

Win 7 Home Premium 64bit Ver 6.1.7600 Build 7601 - SP1
 
 

The way I understand it, it's built-in and automatic with win7; If you have trim support turned on, and your ssd can accept the trim cmds from the OS.

Run
Code:
fsutil behavior query DisableDeleteNotify
in an elevated CMD prompt, if the result returned is zero [DisableDeleteNotify = 0] it's on and win7 will take care of it if the ssd's trim setting is on.

Do you have the Plextool? It can check if your ssd is ready to accept those cmds, it can also turn trim on if its off for some reason. Plextor SSD Storage Solutions | Support | FAQ the FAQS has a download link for the tool; Or you could go here: TRIMcheck: A FREEWARE TRIM TESTER | The SSD Review and Technology X Forums for a different utility that only checks if the ssd can accept the trim cmd from the OS.


Related:
https://how to check if TRIM in win 7 is working | social.technet.microsoft.com/Forums

https://Support and Q&A for Solid-State Drives | blogs.msdn.microsoft.com

TRIM Support for SSD - Check and Enable or Disable
My System SpecsSystem Spec
04 May 2016   #3
Rockit

Windows 7 Premium 64 Bit
 
 

Thanks and yes I have the Plextor Tool.

But that still doesn't answer my question.

Still Thank You
My System SpecsSystem Spec
.

04 May 2016   #4
Anak

Microsoft Community Contributor Award Recipient

Win 7 Home Premium 64bit Ver 6.1.7600 Build 7601 - SP1
 
 

Can you explain why you feel the need to run the trim manually with a command? In the meantime I'll see if I can get a few other members to look at your request.
My System SpecsSystem Spec
04 May 2016   #5
Rockit

Windows 7 Premium 64 Bit
 
 

Hello,

All I want is what Dos command to add to any startup program like ( -mini ) that will trigger the enter command and exit command.


The trim command seems to clean up the SSD and is used on many SSD tweaking programs. I'm just curious

Thank You Very Much !
My System SpecsSystem Spec
05 May 2016   #6
ThrashZone

Win-7-Pro64bit 7-H-Prem-64bit
 
 

Hi,
Trim is run from the ssd's firmware
Windows has little to do with the operation since win-7 was developed well before ssd's were popular,

To run trim the machine needs to be powered up but with no disk activity then the ssd's firmware kicks in
You can call this hibernation or hybrid sleep if you'd like to.

Two ways you can force trim
1) Is to enter your mother board bios and let it stay that way over night.
2) Is to get a dual hot sway bay and only connect the power to it with no data connection.
Shutdown and insert the ssd into the bay with no data cable connected to it.

The first bay would obviously have to have another ssd or hdd in it and booted to another operating system sort of a old school dual boot
Amazon.com: Vantec 2.5-Inch Dual Bay Trayless SATA III - 6G Mobile Rack (MRK-225S6-BK): Computers & Accessories
My System SpecsSystem Spec
05 May 2016   #7
Rockit

Windows 7 Premium 64 Bit
 
 

Please Forget the trim reference.

Is there a DOS command to add to any item parameter to cause a auto "Enter" & "Exit"

That is all I'm looking for.
My System SpecsSystem Spec
06 May 2016   #8
GokAy

Windows 7 Ultimate x64 SP1
 
 

To be honest I can not understand what you mean by "Enter/Exit". Trimcheck is just a checker, so it is not trimming anything.

Problem with using "Run" registry settings would be that some elements required might not have loaded yet. So you can try "Current User" (HKCU) instead of "Local Machine" (HKLM).

With Win7 Pro and up I would also try Group Policy (Local Computer policy) with a startup script.
Perhaps there are 3rd party apps for this too. This one is for Suspend/Restore for example - https://win7suspendresume.codeplex.com/
My System SpecsSystem Spec
06 May 2016   #9
Anak

Microsoft Community Contributor Award Recipient

Win 7 Home Premium 64bit Ver 6.1.7600 Build 7601 - SP1
 
 

If I may Rockit, I'm going to embellish part's of your last two posts, I'll admit it took me awhile to wrap my head around what you needed:

Quote   Quote: Originally Posted by Rockit View Post
Quote   Quote: Originally Posted by Rockit View Post
Hello,
All I want is what Dos command to add to any startup program like ( -mini ) that will trigger the enter command and exit command.
The trim command seems to clean up the SSD and is used on many SSD tweaking programs. I'm just curious

Thank You Very Much !
Please Forget the trim reference.

Is there a DOS command to add to any item parameter to cause a auto "Enter" & "Exit"

That is all I'm looking for.
TZ, GokAy, and anyone else that would like to pitch in; Rockit only used trim.exe as an example, I believe what s/he would like to do is to learn how, if there is a DOS CMD to automatically start and then stop and close any program after it has performed its function.

I believe it is possible to do what you want, but you may have to use task scheduler to start the process of opening the CMD prompt and then a batch file to open and run the particular program you wanted to run.

This link: Start - Start a program | Windows CMD | SS64.com can show different ways to open and run a program from the CMD prompt, scroll to near the bottom for the examples. Here's one that may be of value:

Start a program and wait for it to complete before continuing:
Code:
START "" /wait autocad.exe
There is a reason why the double quotes are being used, but my CMD skills are so rusty, I think it's used as an escape.


Related:
dos cmd to start a program | google search
My System SpecsSystem Spec
06 May 2016   #10
Rockit

Windows 7 Premium 64 Bit
 
 

Thank You !
My System SpecsSystem Spec
Reply

 Windows Startup Command




Thread Tools Search this Thread
Search this Thread:

Advanced Search




Similar help and support threads
Thread Forum
My Windows 7 64bit Home Premium does not have a COMMAND or COM command
When I am told to go to START/SEARCH and type in COMMAND, so I can RUN as Admin, it finds neither COM.exe or COMMAND.exe so I can "Run as Admin" in the DOS windows. It use to. I do have a RUN command that will bring up the DOS window but when executing some commands like CHKDSK it tells me I...
General Discussion
Command Prompt at Startup
How to Open a Command Prompt at Boot in Windows 7 This will show you how to open a command prompt at boot from the System Recovery Options or Advanced Boot Options screen in Windows 7.Command Prompt is a feature of Windows 7 that provides an entry point for typing MS‑DOS (Microsoft Disk...
Tutorials
how to change the command of the startup service
I m user of windows 7 home. one of the startup service is not running because the command at startup of system configration is changed to "%programfiles%Elantech\ETDctrl.exe" instead of "C:\programfiles\Elantech\ETDctrl.exe" Please guide me, how to change the command of the startup service.
General Discussion
How do I edit the command to auto hide the program when it is startup
In "msconfig" startup window, I edit the command, like below. "C:\*****.exe" \hide "C:\*****.exe" \hide -autostart "C:\*****.exe" silent "C:\*****.exe" \background But all above don't work. Then can anyone help me.
General Discussion
Command to force program to minimize on computer startup
solved solved solved solved solved solved solved solved solved solved solved solved solved solved solved solved solved solved solved solved solved solved solved solved solved solved solved solved
General Discussion
Command Window at Startup
This is the second day in a row when I have started up my PC and a black command window popped up with a blinking cursor. Yesterday I just closed it after some time but now that I'm touching it, it isn't going away on its own. The title of the window is: C:\ProgramData\Microsoft\Windows\Start...
Performance & Maintenance


Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd

All times are GMT -5. The time now is 09:56.

Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App