ATTENTION: You are viewing a page formatted for mobile devices; to view the full web page, click HERE.

DonationCoder.com Software > Clipboard Help+Spell

Starting CHS via batch file quandary

(1/2) > >>

Paul1149:
Hi,

I'm trying to call CHS along with some other programs via a batch file that will delay their opening upon boot up. The problem I'm having is that if I just place the file path to CHS on a line, it opens fine, but the batch processing goes into wait mode and nothing else gets done. But if I use a Start command, a second CMD windows spawns but CHS does not execute. I'm not clear on why the Start command does not successfully execute CHS.

Thanks

rjbull:
If you want to delay programs on start-up, an alternative approach might be to use WinPatrol.  I have to add I only presume this works in the free version, as I'm a registered user.

You haven't got spaces in your path to CHS, have you?  If so, I think you'd need to wrap the path in quotes (though if you're using batch files, you'll already know that).

Paul1149:
WinPatrol is an excellent program. I stopped using it only because I wanted to cut down on running processes.

Yes, there is a space or two, and yes I am using quotes. If I run the file path in a command window, CHS starts up with no problem. Somehow it's not complying with Batch syntax.

Thanks.

rjbull:
I'm using Vista Home Premium, UAC On, user account, and CHS is installed as portable in a "no-install" directory.  This works for me:

TEMP.BAT

--- [email protected] off
start "CHS" "c:\NoInst\ClipboardHelpAndSpell\ClipboardHelpAndSpell.exe"
cls
exit

The command window flashes on screen momentarily, then disappears, and CHS loads correctly.  I looked at the syntax for START.  In part it shows:


START ["title"] [/D path] [/I] [/MIN] [/MAX] [/SEPARATE | /SHARED]
      [/LOW | /NORMAL | /HIGH | /REALTIME | /ABOVENORMAL | /BELOWNORMAL]
      [/AFFINITY <hex affinity>] [/WAIT] [/B] [command/program]
      [parameters]

    "title"     Title to display in  window title bar.


I originally tried

start "c:\NoInst\ClipboardHelpAndSpell\ClipboardHelpAndSpell.exe"

and found the window title was actually "c:\NoInst\ClipboardHelpAndSpell\ClipboardHelpAndSpell.exe".  That made me wonder if "title" is now obligatory, though now, with the ersatz title, it just says cmd.exe.  Still not as neat as I'd like as I'd prefer the cmd window not to flash on screen.  Are you running a scheduler, or something with a scheduler in it, like PowerPro?  If so, could you use that instead?  In that case, you could probably run a .lnk instead of a batch.

Paul1149:
RJ - untested as yet, but I believe you've hit on the problem.  I ran into this very recently in another batch file, that I use to install a bunch of programs silently. I had used the empty Title spec, "", for the Start command, but when I saw it shown as optional in the Help file (and there is no mention of it in its Notes either), I deleted it for conciseness, and then began having all sorts of problems. It took me weeks and some help to figure out that the Title spec is necessary when quotes are used in the file path, otherwise the file path is interpreted as a Title. And my CHS file path does have quotes.

Will make the switch, and fully expect this to solve the problem. Thanks much!

Navigation

[0] Message Index

[#] Next page

Go to full version