Command line Reference

Technical support and scripting issues

Moderators: JRL, Dorian (MJT support)

Post Reply
kpassaur
Automation Wizard
Posts: 696
Joined: Wed Jul 07, 2004 1:55 pm

Command line Reference

Post by kpassaur » Tue Nov 18, 2008 11:14 am

This maybe on the forum already but I didn't find it so here it is again if it is.

On occasion it is nice to have a reference of command line options in windows. the following line will execute the Windows Command Line Reference in XP.


C:\>hh.exe ms-its:\help\ntcmds.chm::/ntcmds.htm

User avatar
jpuziano
Automation Wizard
Posts: 1085
Joined: Sat Oct 30, 2004 12:00 am

Post by jpuziano » Wed Nov 19, 2008 6:25 pm

Hi kpassaur,

Thanks, that works for me in XP by clicking... Start/Run... and then entering:

hh.exe ms-its:\help\ntcmds.chm::/ntcmds.htm

...and clicking OK. It won't work if I leave the C:\> in there... it comes back with:
  • Windows cannot find 'C:\>hh.exe'. Make sure you typed the name correctly, and then try again. To search for a file, click the Start button, and then click Search.
On another note, I tried to create a simple one line macro to do this but this fails:

Run Program>C:\>hh.exe ms-its:\help\ntcmds.chm::/ntcmds.htm

What is the purpose of the semicolons in your command string?

How would one kick this off from inside a macro?
Last edited by jpuziano on Wed Nov 19, 2008 9:32 pm, edited 1 time in total.
jpuziano

Note: If anyone else on the planet would find the following useful...
[Open] PlayWav command that plays from embedded script data
...then please add your thoughts/support at the above post - :-)

User avatar
Marcus Tettmar
Site Admin
Posts: 7395
Joined: Thu Sep 19, 2002 3:00 pm
Location: Dorset, UK
Contact:

Post by Marcus Tettmar » Wed Nov 19, 2008 6:38 pm

I think the C:> is the DOS command prompt and was copied from a DOS console window.
Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar

Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?

kpassaur
Automation Wizard
Posts: 696
Joined: Wed Jul 07, 2004 1:55 pm

Get dos help

Post by kpassaur » Wed Nov 19, 2008 6:42 pm

I just used this line

Run Program>hh.exe ms-its:\help\ntcmds.chm::/ntcmds.htm

from MS and had no issues

If you use this

Run Program>cmd /c hh.exe ms-its:\help\ntcmds.chm::/ntcmds.htm

you will end up with the dos window as well.

You would not put the c:\ in as that is not where the file is located. It is found by the system path.

the ::/ntcmds.htm takes yo to the listing of the topics, try it like this as well
Run Program>hh.exe ms-its:\help\ntcmds.chm

User avatar
jpuziano
Automation Wizard
Posts: 1085
Joined: Sat Oct 30, 2004 12:00 am

Post by jpuziano » Wed Nov 19, 2008 10:17 pm

Thanks kpassaur, the one line launcher is working fine with C:\> removed... like this:

Run Program>hh.exe ms-its:\help\ntcmds.chm::/ntcmds.htm

Note that in a DOS box, typing: hh.exe /? provides no parameter information. While trying to find out what "ms-its:" and "::" mean... I found these links which help a bit:

1) http://www.help-info.de/en/Help_Info_HT ... ommand.htm

2) http://groups.google.com/group/microsof ... =gst&q=api

3) http://code.google.com/p/htmlhelp/wiki/CHM

The line you posted here was mentioned in 1) above.

If anyone has a link to a clear explanation of what the parameters for hh.exe are, please post... please and thanks.
jpuziano

Note: If anyone else on the planet would find the following useful...
[Open] PlayWav command that plays from embedded script data
...then please add your thoughts/support at the above post - :-)

Post Reply
Sign up to our newsletter for free automation tips, tricks & discounts