Thank you for being a valued part of the CNET community. As of December 1, 2020, the forums are in read-only format. In early 2021, CNET Forums will no longer be available. We are grateful for the participation and advice you have provided to one another over the years.

Thanks,

CNET Support

Question

removing ambiguity

Jun 7, 2011 10:19PM PDT

Opening My Computer in WinXP-Pro/SP3 can result two possible presentations : double-clicking My Computer tends to open it with the left pane being headed by System Tasks, whereas Win E tends to show the pane with Folders.The steps of my macro to automate the launching of a checkdisk, requires there be no ambiguity. Is there a way of ensuring that Win E ALWAYS results in only the ONE (whichever) view being presented ?

Discussion is locked

- Collapse -
Answer
That is because ...
Jun 7, 2011 10:25PM PDT

Running My Computer runs My Computer while winkey+E runs Windows Explorer. I doubt if it is possible to change that.

Kees

- Collapse -
consistent opening of My Computer
Jun 8, 2011 10:02AM PDT

That's an interesting observation, but does not address my issue. I want to open My Computer by means of a macro - and the most reliable way to do that is with a keystroke - Win E. Is there some way of ensuring that WIN E will only ever open My Computer in the view that includes (or excludes) the Folders pane on the left.

- Collapse -
Then you'll have to try running Explorer.
Jun 8, 2011 10:05AM PDT

Since the default actions on My Computer, C: are not consistent across machines, it looks like the old fashioned method for you.

Then again I have pitchforks and torches aplenty for the the entire forum.
Bob

- Collapse -
old fashioned method
Jun 8, 2011 8:34PM PDT

Do you mean by that, to give up trying to use a macro ?

- Collapse -
What is the purpose of this macro?
Jun 8, 2011 8:48PM PDT

and why do you need it to open "My Computer" specifically?

You mentioned ChkDsk, but not in what context.

For example, I can force Explorer to open at whatever location I wish by using the target;
%windir%\explorer.exe /e, c:\Work

where 'Work" is some folder I use.

I can just as easily use; %windir%\explorer.exe /e, c:\ which would open Explorer directly with the C drive highlighted.

So, what is this macro intended to do?

Mark

- Collapse -
four replies
Jun 8, 2011 10:46PM PDT

<<What is the purpose of this macro?>> as stated in my first post, "macro to automate the launching of a checkdisk"
<<why do you need it to open "My Computer" specifically?>> To get access to the properties of the hard drive(s), which gives access to the (full) checkdisk command - C:\WINDOWS\system32\chkdsk.exe does not do all 5 phases.
<<%windir%\explorer.exe /e, c:\Work>> That looks to me like a DOS command in a batch file. My first preference is for batch files, but it is too complex for me to achieve a checkdisk in a batchfile, so I have used Macro Express to write a macro.
<<what is this macro intended to do>> Since I have answered that above, I want to add that I do a checkdisk every week, and that involves some 10 or more steps. All that is repetitious - the thing that computers are best at - repetitious tasks.

- Collapse -
Re: chkdsk
Jun 9, 2011 2:17AM PDT
http://vlaurie.com/computers2/Articles/chkdsk.htm tells how to execute phase 4 and 5 of chkdsk when running the program from a batchfile. So it seems your problems are solved by using the /R switch.

May I add that you're the first one I ever met that does a surface check on the hard disk every week? Most people do it never. Some people might do it if they have reason to suspect there are bad sectors on the disk. If that's confirmed by running chkdsk, it's time to buy a new disk. But with modern disks having SMART they should warn you automatically.

Kees
- Collapse -
problems are solved by using the /R switch.
Jun 9, 2011 10:47AM PDT

If the full 5 phases of checkdisk are not needed, then obviously the batch file, triggering chkdsk.exe, would be the way to go. Thank you for that hint - I don't want to do unnecessary work. With one proviso - you talk about modern disks. I am using 40Gb HDDs - they are probably not so very modern, although SMART has been around for a while.

- Collapse -
Re: batch file
Jun 10, 2011 6:13AM PDT

The batch file, when you add the /R switch to the command, does the full 5 passes the link said. Did you try from the command prompt?

Then you can make 2 batch files. A quick one, without surface check, and a slower one, with. I'd run the first more often than the second.

Kees

- Collapse -
minimised checkdisk triggering
Jun 10, 2011 10:40AM PDT

<<Did you try from the command prompt?>>
No, the whole idea is to reduce the number of 'actions' - but I did try from batch-file and it works fine. I agree, two slightly different batchfiles would do the trick .