Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Novice: how to get this working?

22 views
Skip to first unread message

Terry Pinnell

unread,
Jan 30, 2018, 4:08:25 PM1/30/18
to
In Windows 10, if I type the following at a command prompt (or in the
Run box) it works correctly, pasting the clipboard to IrfanView.

"C:\Program Files (x86)\IrfanView\i_view32.exe" /clippaste

I'd like to run it from a batch file, but this is clearly wrong as it
appears to do nothing.

start "C:\Program Files (x86)\IrfanView\i_view32.exe" /clippaste
exit

How do I correct it please?

Terry, East Grinstead, UK

Zaidy036

unread,
Jan 30, 2018, 5:04:07 PM1/30/18
to
Full start cmd: START "" [/WAIT] "path to program"

--
Zaidy036

JJ

unread,
Jan 31, 2018, 3:49:45 AM1/31/18
to
That's odd. No error message at all?
It works on my Win7 system as well as my Win10 VM.
May be something else is interfering.

Terry Pinnell

unread,
Jan 31, 2018, 9:32:22 AM1/31/18
to
Thanks! This two liner worked:
START "" /WAIT "C:\Program Files (x86)\IrfanView\i_view32.exe"
/clippaste
exit

Terry, East Grinstead, UK

Terry Pinnell

unread,
Jan 31, 2018, 9:34:35 AM1/31/18
to
Odd indeed. Given that the modified version from Zaidy works, presumably
it's some timing issue? What delay does /WAIT add?

Terry, East Grinstead, UK

Terry Pinnell

unread,
Jan 31, 2018, 9:41:55 AM1/31/18
to
One small snag is that, despite the Exit line, the Command Prompt window
remains open (behind the IrfanView window).

Terry, East Grinstead, UK

Zaidy036

unread,
Jan 31, 2018, 12:07:38 PM1/31/18
to
/WAIT is optional and then the batch will wait for the program run to
complete.

in your case do not use /WAIT and batch will finish.

--
Zaidy036

Terry Pinnell

unread,
Jan 31, 2018, 12:35:59 PM1/31/18
to
Excellent, thank you - spent an hour googling in vain for a solution!

Terry, East Grinstead, UK

Zaidy036

unread,
Jan 31, 2018, 1:53:55 PM1/31/18
to
why Google? Instead open a command window and enter "START ?/"

--
Zaidy036
0 new messages