HP3000-L Archives

September 2002, Week 4

HP3000-L@RAVEN.UTC.EDU

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
Tracy Pierce <[log in to unmask]>
Reply To:
Tracy Pierce <[log in to unmask]>
Date:
Mon, 23 Sep 2002 12:09:04 -0700
Content-Type:
text/plain
Parts/Attachments:
text/plain (69 lines)
and in case it hasn't already been mentioned, via Reflection...

:print r1hp2pc.obj
parm AppName="c:\winnt\notepad.exe",ParmOrFName="c:\autoexec.bat"
option nolist
comment R1PCRUN invokes a program on your PC via Reflection
setvar esc,chr(27)
echo !ESC&oG                                     > vbacmd
echo sub main                                    >> vbacmd
comment echo application.msgbox "in 3rd command file!"   >> vbacmd
echo application.shell "!AppName","!ParmorFName" >> vbacmd
echo end sub                                     >> vbacmd
echo !ESC&oH                                     >> vbacmd
print vbacmd

which by default shows your autoexec file via notepad; in case not perfectly
clear, you can invoke this via
:r1hp2pc.obj
or with parms as you like...
:r1hp2pc.obj "c:\temp\magic.html"
...which will bring up <whatever browser> and load magic.html

Tracy Pierce




> -----Original Message-----
> From: Derek [mailto:[log in to unmask]]
> Sent: Monday, September 23, 2002 11:44 AM
> To: [log in to unmask]
> Subject: Is it possible to execute a BAT file from the HP3000?
>
>
> This would seem to be the poor man's version of setting up
> the batch file.
> At least there is nothing to buy to make this work.
>
> You can set up a permanantly running batch file on the pc with the
> following.  It will only process a file once the HP has FTP'd
> it and then
> will wait until a file is again FTP'd.
>
> This batch file can also be set up as a "service" on the pc
> so that it will
> start automatically each time the pc is re-booted.
>
> http://support.microsoft.com/default.aspx?scid=kb;en-us;Q243486
>
>
> @echo off
> :start
> if exist download.dat goto :dowork
> goto :start
> :dowork
> echo starting to process downloaded file
> ...
> put in your processed to run here
> ...
> echo finished doing work
> goto :start
>
> * To join/leave the list, search archives, change list settings, *
> * etc., please visit http://raven.utc.edu/archives/hp3000-l.html *
>

* To join/leave the list, search archives, change list settings, *
* etc., please visit http://raven.utc.edu/archives/hp3000-l.html *

ATOM RSS1 RSS2