App to Start>Run

L

Larry(LJL269)

I use macro to generate the char string

"C:\Program Files\ERUNT\ERUNT.EXE"
C:\_SavedRegistries\051206-2213 comment

which works when the macro types it in Run box.

I'd rather execute something wuth the string as input that
would do same thing. Maybe RUNDLL32? that wouldnt take 3
days to figure-out correct sequence of / " \ ' :)

Trying to eliminate pasting string in another app if RUN
loses focus.

ANY ideas r welcome. On point that is :)
Your help is MUCH appreciated. Thanks- bye- Larry


Any advise given is my attempt to show appreciation for all
the excellent help I've received here but I'm no MVP so it
may only apply NUGS (Normally, Usually, Generally, Sometimes :)
 
P

Pegasus \(MVP\)

Larry(LJL269) said:
I use macro to generate the char string

"C:\Program Files\ERUNT\ERUNT.EXE"
C:\_SavedRegistries\051206-2213 comment

which works when the macro types it in Run box.

I'd rather execute something wuth the string as input that
would do same thing. Maybe RUNDLL32? that wouldnt take 3
days to figure-out correct sequence of / " \ ' :)

Trying to eliminate pasting string in another app if RUN
loses focus.

ANY ideas r welcome. On point that is :)
Your help is MUCH appreciated. Thanks- bye- Larry

Any advice given is my attempt to show appreciation for all
the excellent help I've received here but I'm no MVP so it
may only apply NUGS (Normally, Usually, Generally, Sometimes :)

Why not keep it simple and place the command inside
a batch file?
 
L

Larry(LJL269)

Why not keep it simple and place the command inside
a batch file?

Greetings & thank you for your response.

Great idea- make only 1 b4 that macro proc creates- it uses
date & runs Image 4 Win + CHKDSK.

Still a problem with focus tho- BAT has to be created with
todays date(yymmdd-hhss from macro) & if another app steals
focus I'll type in an unknown window.

I cant get use RUN box since it doesnt open consistently-
Win+r or Win+r+r depending how many entries with r are in
Start menu!

I may email macro author to see how to get my date macro
evaluated in parameters passed to ERUNT when I tell it to
run.

Comments/suggestions/corrections appreciated.
Your help is MUCH appreciated. Thanks- bye- Larry


Any advise given is my attempt to show appreciation for all
the excellent help I've received here but I'm no MVP so it
may only apply NUGS (Normally, Usually, Generally, Sometimes :)
 
P

Pegasus \(MVP\)

Larry(LJL269) said:
Greetings & thank you for your response.

Great idea- make only 1 b4 that macro proc creates- it uses
date & runs Image 4 Win + CHKDSK.

Still a problem with focus tho- BAT has to be created with
todays date(yymmdd-hhss from macro) & if another app steals
focus I'll type in an unknown window.

I cant get use RUN box since it doesnt open consistently-
Win+r or Win+r+r depending how many entries with r are in
Start menu!

I may email macro author to see how to get my date macro
evaluated in parameters passed to ERUNT when I tell it to
run.

Comments/suggestions/corrections appreciated.
Your help is MUCH appreciated. Thanks- bye- Larry

I suspect you mean
yymmdd-hhmmss instead of
yymmdd-hhss

This format is generated like so in a batch file:
echo %date:~x,4%%date:~y,2%%date:~z,2%-%time:~0,2%%time:~3,2%%time:~6,2%

In my time zone I need to set x=10, y=7, z=4:
echo %date:~10,4%%date:~7,2%%date:~4,2%-%time:~0,2%%time:~3,2%%time:~6,2%
You will have to adjust these parameters to suit your own date format.
 
L

Larry(LJL269)

I suspect you mean
yymmdd-hhmmss instead of
yymmdd-hhss
YES

This format is generated like so in a batch file:
echo %date:~x,4%%date:~y,2%%date:~z,2%-%time:~0,2%%time:~3,2%%time:~6,2%

In my time zone I need to set x=10, y=7, z=4:
echo %date:~10,4%%date:~7,2%%date:~4,2%-%time:~0,2%%time:~3,2%%time:~6,2%
You will have to adjust these parameters to suit your own date format.
Dont know where to put %date....
R % things evaluated at runtime as a char string?

I also wanted to prompt for a comment too so path name
ends in 060513-1219 comment.

Any way to get to RUN other than START menu?

Your help is MUCH appreciated. Thanks- bye- Larry




Any advise given is my attempt to show appreciation for all
the excellent help I've received here but I'm no MVP so it
may only apply NUGS (Normally, Usually, Generally, Sometimes :)
 
P

Pegasus \(MVP\)

Larry(LJL269) said:
Dont know where to put %date....
R % things evaluated at runtime as a char string?

I also wanted to prompt for a comment too so path name
ends in 060513-1219 comment.

Any way to get to RUN other than START menu?

Your help is MUCH appreciated. Thanks- bye- Larry

It is not at all clear what you're actually trying to achieve.
Use the following instructions as a starting point.

1. Create the batch file c:\Larry.bat with these lines inside.
Use copy & paste - do not retype them!
Line1 @ech off
Line2 set /p reply=Please enter your name:
Line3 echo echo %date:~x,4%%date:~y,2%%date:~z,2%-
%time:~0,2%%time:~3,2%%time:~6,2% Hello %reply%
Line4 pause

2. Remove the "Line x" markers. They are only for clarity.
3. Replace x, y and z in Line3 with the correct values for your time zone.
4. Create a shortcut on your desktop that points to c:\Larry.bat.
5. Double-click this shortcut.
 
L

Larry(LJL269)

It is not at all clear what you're actually trying to achieve.
Trying to get shortcut with:
"C:\Program Files\ERUNT\ERUNT.EXE"
C:\_SavedRegistries\060512@2213 comment
to execute but with '060512@2213 comment' replaced by
'yymmdd-hhmm InputComment'

So I'd clk something> I'd see 'ENTER COMMENT' > I type
comment >
"C:\Program Files\ERUNT\ERUNT.EXE"
C:\_SavedRegistries\yymmdd-hhmm comment
would be executed .

I want to override save location of Reg backup ERUNT to be
C:\_SavedRegistries\yymmdd-hhmm comment
using ANY tools I have. My macro processor is much easier
than batch but I was unable to get 'yymmdd-hhmm comment'
inserted in command line.

I appreciate ur time & patience in dealing with a batch
newbie. Thanks- bye- Larry

Use the following instructions as a starting point.

1. Create the batch file c:\Larry.bat with these lines inside.
Use copy & paste - do not retype them!
Line1 @ech off
Line2 set /p reply=Please enter your name:
Line3 echo echo %date:~x,4%%date:~y,2%%date:~z,2%-
%time:~0,2%%time:~3,2%%time:~6,2% Hello %reply%
Line4 pause

2. Remove the "Line x" markers. They are only for clarity.
3. Replace x, y and z in Line3 with the correct values for your time zone.
4. Create a shortcut on your desktop that points to c:\Larry.bat.
5. Double-click this shortcut.


Any advise given is my attempt to show appreciation for all
the excellent help I've received here but I'm no MVP so it
may only apply NUGS (Normally, Usually, Generally, Sometimes :)
 
P

Pegasus \(MVP\)

OK, this is beginning to make sense. Try this batch file:

Line1 @echo off
Line2 set date_=%date:~x,4%%date:~y,2%%date:~z,2%-%time:~0,2%%time:~3,2%
Line3 set /p reply=Enter comment:
Line4 echo "C:\Program Files\ERUNT\ERUNT.EXE" C:\_SavedRegistries\%date_%
%comment%
Line5 pause

Now do this:
1. Copy & paste these lines into your batch file as
instructed before.
2. Adjust x, y and z in Line2 to suit your time zone.
3. Remove every Linex string.
4. Run the batch file.
5. When happy with the result, activate it by removing
the word "echo" from Line4.
6. Remove Line5 if desired.
 
L

Larry(LJL269)

Greetings & thank you for your response.

I did contact macro app programmer & got this macro to work
after 2 tries:
<Run "C:\Program Files\ERUNT\ERUNT.EXE"
"C:\_SavedRegistries\<Date "yyMMdd@HHmm">-<Ask "Comment"
"Enter comment">" ""> where <>denates a macro

Perfect. I will still try ur BAT file & keep it as I am
runnung more of them. Now I have folders for such tasks with
numbered shortcuts indicating order of execution.These r all
candidates 4 BAT files

I have 2 url's ( http://www.computerhope.com/batch.htm#11
http://aumha.org/a/batches.htm ) for batch cmds but found
time functions in none. Maybe u have a more complete
reference?

Sorry I couldnt use BAT file after all the time u spent on
it, Often there's more than 1 way to skin a cat :)

Your help is MUCH appreciated. Thanks- bye- Larry

OK, this is beginning to make sense. Try this batch file:

Line1 @echo off
Line2 set date_=%date:~x,4%%date:~y,2%%date:~z,2%-%time:~0,2%%time:~3,2%
Line3 set /p reply=Enter comment:
Line4 echo "C:\Program Files\ERUNT\ERUNT.EXE" C:\_SavedRegistries\%date_%
%comment%
Line5 pause

Now do this:
1. Copy & paste these lines into your batch file as
instructed before.
2. Adjust x, y and z in Line2 to suit your time zone.
3. Remove every Linex string.
4. Run the batch file.
5. When happy with the result, activate it by removing
the word "echo" from Line4.
6. Remove Line5 if desired.


Any advise given is my attempt to show appreciation for all
the excellent help I've received here but I'm no MVP so it
may only apply NUGS (Normally, Usually, Generally, Sometimes :)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top