Page 1 of 3 123 LastLast
Results 1 to 15 of 39
  1. #1
    Platinum Lounger
    Join Date
    Jan 2001
    Location
    Quedgeley, Gloucester, England
    Posts
    5,333
    Thanks
    0
    Thanked 1 Time in 1 Post

    Want program that does nothing!

    I may be about twenty years late with this request, but on rare occasions I want temporarily to replace a program (probably one invoked by a BATch file <img src=/S/fanfare.gif border=0 alt=fanfare width=31 height=23>!) with an EXE file which does nothing but run and terminate immediately. Just like IEFBR14 did on olde IBM mainframes (hi Big Al! *).

    Does anyone have something in their collection? I'd prefer an EXE rather than a COM file...

    Thanks!

    John

    * Al -- do you remember about the hapless programmer who removed the SR 15,15 instruction from in front of the BR 14 instruction, to "save disk space"?!
    <font face="Script MT Bold"><font color=blue><big><big>John</big></big></font color=blue></font face=script>

    Ita, esto, quidcumque...

  2. #2
    Plutonium Lounger Leif's Avatar
    Join Date
    Dec 2000
    Location
    U.K.
    Posts
    14,010
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Want program that does nothing!

    Somewhere I still have a copy of QB45 that could be used to create .exe's.
    I'm happy to dig it out and knock up a do-nothing application if you think that would give you what you want.....?

  3. #3
    Platinum Lounger
    Join Date
    Nov 2001
    Location
    Melbourne, Victoria, Australia
    Posts
    5,016
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Want program that does nothing!

    John

    This is the closest I can think of at the moment - I just happened to be using it when I saw your request. It does "almost nothing", but if this "almost" is too much for your purposes, you could write & compile a tiny C program that really does nothing:

    int main() {
    return 0; }

    Alan
    Attached Files Attached Files

  4. #4
    Platinum Lounger
    Join Date
    Jan 2001
    Location
    Quedgeley, Gloucester, England
    Posts
    5,333
    Thanks
    0
    Thanked 1 Time in 1 Post

    Re: Want program that does nothing!

    Leif

    I think I used to have a copy of QB45 "somewhere" also... on an IBM PS/2 model 80 -- but the hard disk probably died about ten years go!
    <font face="Script MT Bold"><font color=blue><big><big>John</big></big></font color=blue></font face=script>

    Ita, esto, quidcumque...

  5. #5
    Platinum Lounger
    Join Date
    Jan 2001
    Location
    Quedgeley, Gloucester, England
    Posts
    5,333
    Thanks
    0
    Thanked 1 Time in 1 Post

    Re: Want program that does nothing!

    Thanks, Alan!

    I have no C compiler or linker, and have never programmed in it!

    What was wrong with
    SR 15,15 Clear return code register 15
    BR 14 Return to the operating system
    <font face="Script MT Bold"><font color=blue><big><big>John</big></big></font color=blue></font face=script>

    Ita, esto, quidcumque...

  6. #6
    Plutonium Lounger
    Join Date
    Oct 2001
    Location
    Lexington, Kentucky, USA
    Posts
    12,107
    Thanks
    0
    Thanked 1 Time in 1 Post

    Re: Want program that does nothing!

    <hr>...Al -- do you remember about... <hr>
    Maybe it's a senior moment, but no, I don't recall it. Don't want to hijack your thread so maybe you could add an explanationat the end of the thread, after you've successfully achieved your goal. Sounds like Leif's gonna be able to help you.

  7. #7
    Platinum Lounger
    Join Date
    Nov 2001
    Location
    Melbourne, Victoria, Australia
    Posts
    5,016
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Want program that does nothing!

    I'm guessing you've used DEBUG before though, being a "batcher". You could generate a .COM program that does nothing, then use COM2EXE.EXE to make your .EXE.

    What's wrong with registers and branching and all that asm? It brings back the headaches suffered in CS101 or whatever it was <img src=/S/grin.gif border=0 alt=grin width=15 height=15>.

    Alan

    BTW, I could make the .EXE for you, once I get my C compiler up... but you might be on a time constraint.

    Edited - So being conscious of your potential urgency here it is.
    Attached Files Attached Files

  8. #8
    Platinum Lounger
    Join Date
    Jan 2001
    Location
    Quedgeley, Gloucester, England
    Posts
    5,333
    Thanks
    0
    Thanked 1 Time in 1 Post

    Re: Want program that does nothing!

    Alan

    I didn't actually need to do nothing urgently (!!) but thank you very much indeed!

    I could have done the same thing with a COM file in about half a dozen bytes, but EXE's compiled with C must need to be at least 3500 bytes long!

    (I'm not going to complain that "your program doesn't do anything"!!)
    <font face="Script MT Bold"><font color=blue><big><big>John</big></big></font color=blue></font face=script>

    Ita, esto, quidcumque...

  9. #9
    Bronze Lounger
    Join Date
    Feb 2001
    Posts
    1,424
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Want program that does nothing!

    May I ask why one would want a program "to do nothing?" <img src=/S/scratch.gif border=0 alt=scratch width=25 height=29> What does one achieve by using it? <img src=/S/confused.gif border=0 alt=confused width=15 height=20>
    <img src=/S/thankyou.gif border=0 alt=thankyou width=40 height=15> <img src=/S/smile.gif border=0 alt=smile width=15 height=15>


    "Peace begins with a smile. "-- Mother Teresa

  10. #10
    Platinum Lounger
    Join Date
    Jan 2001
    Location
    Quedgeley, Gloucester, England
    Posts
    5,333
    Thanks
    0
    Thanked 1 Time in 1 Post

    Re: Want program that does nothing!

    Right...

    Embedded deep within a BATch file I have a program DOESNASTYTHINGS.EXE

    I want to test out all other parts of the BATch file, and normally I would put an ECHO command in front of the DOESNASTYTHINGS, which means it just writes a line to the Command Prompt console, and doesn't actually run the EXE file

    However, in this instance I don't want to change the BATch file, not even a little bit, so I rename DOESNASTYTHINGS.EXE to SKITTERBUG_FOR_PRESIDENT.EXE (!), and copy NOTHING.EXE to DOESNASTYTHINGS.EXE

    So I can now run the BATch file without worrying about the consequences from the "real" DOESNASTYTHINGS.EXE...

    QED!
    <font face="Script MT Bold"><font color=blue><big><big>John</big></big></font color=blue></font face=script>

    Ita, esto, quidcumque...

  11. #11
    5 Star Lounger
    Join Date
    Aug 2001
    Location
    Confoederatio Helvetica
    Posts
    602
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Want program that does nothing!

    ... but wouldn't we end up with Skitterbug as President? Hey I'd vote for her!

  12. #12
    3 Star Lounger
    Join Date
    Jan 2001
    Location
    Wetherby, Yorkshire, England
    Posts
    283
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Want program that does nothing!

    You may have found what you're after by now but if you use Autoit to create DOSOMETHINGNASTY.au3 with Sleep("1000") you could compile it to run for 1 sec doing nothing.

  13. #13
    Bronze Lounger
    Join Date
    Feb 2001
    Posts
    1,424
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Want program that does nothing!

    I have read your answer a dozen times and I guess it is way over my head. The only thing I can gleam from this is that you ended up with an executable mixed into your BATch file somehow and now you want to be able to run the whole thing without the .exe actually doing "its thing?" How would DOESNASTYTHINGS have gotten in the mix of things in the first place? I am glad that SKITTERBUG_FOR_PRESIDENT.EXE would help!! I'd make history being the first female actually attaining that position!! Wow!! I appreciate Bowlie's vote of confidence!!

    I also looked up QED and found a slew of explanations for those three letters but being the 'learned man" that you are, I figured you were alluding to the following: Quod Erat Demonstrandum (Latin: Which Was to Be Demonstrated)

    I don't believe I will ask any more questions about stuff I just don't understand because even the answer to my question left me in the dark!!

    <img src=/S/coffeetime.gif border=0 alt=coffeetime width=32 height=48> I need one now!!


    "Peace begins with a smile. "-- Mother Teresa

  14. #14
    Platinum Lounger
    Join Date
    Nov 2001
    Location
    Vienna, Wien, Austria
    Posts
    5,009
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Want program that does nothing!

    Think of putting a fake nipple (can't remember what they're called in the US - "teat" or "dummy" come to mind) in a baby's mouth. John's "program that does nothing" is one of those.

    He just wants to make sure that everything elese is running correctly in his computer program before he puts a breast (or a bottle) in the baby's mouth.

    HTH
    Gre

  15. #15
    Bronze Lounger
    Join Date
    Feb 2001
    Posts
    1,424
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Want program that does nothing!

    We use to call them "pacifiers"! <img src=/S/smile.gif border=0 alt=smile width=15 height=15> I believe I understand - but after your descriptive explanation, I know I won't ask any more questions!! <img src=/S/grin.gif border=0 alt=grin width=15 height=15> I am not sure what the next example might be!! <img src=/S/laugh.gif border=0 alt=laugh width=15 height=15>


    "Peace begins with a smile. "-- Mother Teresa

Page 1 of 3 123 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •