Re: Process command and autorun variable
Greg wrote:
Hello,
I am trying to do some junit [sic] testing of a process command. I need =
to mock out what the regular process command says to the java [sic] code. =
My junit writes to a file and then makes a windows [sic] alias to concatena=
te the file when the command is executed instead of executing the regular s=
ystem command.
What is the "regular system command"?
It sets this value in the autorun variable in the registry. When I pull =
up a command prompt, it works.
What value? What works?
However, my java process execution is somehow still reading the system co=
mmand.
What system command?
What does the Java code say?
http://sscce.org/
How do I get it to use my stuff? Any ideas or suggestions? All are welc=
ome.
Show us your stuff. Right now it's like we're the mechanic and you're askin=
g us,
"My car doesn't steer correctly. How do I get it to steer correctly?"
Give us data. Tell us what you're talking about.
Based on what you've said so far, I can diagnose your problem. Your Java co=
de
is not using the Windows Registry (for which 'Preferences' might help), and=
is
directly invoking that mysterious, anonymous "regular process command". As =
a
result it's doing precisely what you're asking it to do.
So what are you asking it to do?
--
Lew