Page 2 of 2 <12
Topic Options
#194455 - 2009-06-25 06:20 PM Re: RUN command quoting issue... Maybe? [Re: bvila9999]
Richard H. Administrator Offline
Administrator
*****

Registered: 2000-01-24
Posts: 4946
Loc: Leatherhead, Surrey, UK
 Originally Posted By: bvila9999
I'm not sure why you inserted the "@Echo " in here, but after I removed it, it ran just fine.

Because in testing on my system the command would of course simply fail without providing any useful information. The Echo allowed me (you) to confirm that the resultant command was OK in a benign way.

 Originally Posted By: bvila9999
I did notice that changing from RUN to SHELL (as you did in your code) will let it release the task when complete. For this puzzle, that will be the final solution since this particular task runs so quickly. I do wish I could use the RUN command instead for future endeavors


RUN *should* work just as well. I suspect that XCOPY is up to something and being a little too clever for it's own good. When you get multiple copies running in sub-shells at the same time it's getting tied in knots and not letting go of the console.

 Quote:
this gets me out of today's jam.
Thank you to Allen and Richard H. both for your contributions. You have both been most helpful.


Good stuff, maybe we can wean you off the Dark Side now that you are on the path to enlightenment.

Top
#194456 - 2009-06-25 06:26 PM Re: RUN command quoting issue... Maybe? [Re: Richard H.]
bvila9999 Offline
Fresh Scripter

Registered: 2005-06-10
Posts: 10
Loc: USA
 Originally Posted By: Richard H.

Good stuff, maybe we can wean you off the Dark Side now that you are on the path to enlightenment.


I don't know about that one. I find that some tasks are better suited to KIX, while others are better done using a batch script. It all depends on the task.

Top
Page 2 of 2 <12


Moderator:  Jochen, Allen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Arend_, Mart 
Hop to:
Shout Box

Who's Online
0 registered and 1088 anonymous users online.
Newest Members
JimDunn, fgarcia, Viginette, ManuvdWielNL, Sir_Barrington
17890 Registered Users

Generated in 0.097 seconds in which 0.074 seconds were spent on a total of 12 queries. Zlib compression enabled.

Search the board with:
superb Board Search
or try with google:
Google
Web kixtart.org