General discussion

Locked

Running single instance of DOS program

By jyabor ·
Is there a way to have a dos program run only one instance from an icon. There was a swithch for this in OS/2 and Windows3.11.

This conversation is currently closed to new comments.

9 total posts (Page 1 of 1)  
| Thread display: Collapse - | Expand +

All Comments

Collapse -

Running single instance of DOS program

by SyscoKid In reply to Running single instance o ...

One workaround would be to call teh program from a batch file that:

1. Checks for the existence of a flag file. If the flag file exists, it means the program is running, so you echo a message to the screen and quit.

2. If there is no flag file, create one.

3. Call the program

4. After the program exits, delete the flag file.

If you need complete syntax, let me know.

Collapse -

Running single instance of DOS program

by jyabor In reply to Running single instance o ...

Thanks,I'm looking more along the lines of a registry tweak.

Collapse -

Running single instance of DOS program

by RonnonF In reply to Running single instance o ...

You can start a 16 bit windows program with the '/separate' switcha nd that will run it in a separate section of memory from the other 16bit progs.

Try when you create the short open the properties and go to the memory tab. Check off "protected" that should do the trick.

Collapse -

Running single instance of DOS program

by jyabor In reply to Running single instance o ...

Thanks, I'm looking more along the lines of a registry tweak.

Collapse -

Running single instance of DOS program

by James_Randy In reply to Running single instance o ...

Have it execute another DOS program which will delete the icon file from the decktop folder.

Collapse -

Running single instance of DOS program

by jyabor In reply to Running single instance o ...

The question was auto-closed by TechRepublic

Collapse -

Running single instance of DOS program

by tjc In reply to Running single instance o ...

the short answer is no. Windows and os/2 are multitasking operating systems that allow for more than one istance of a program. The first person who answered is the only way you can do a work around for this.

In a batch file that you run from an icon have it create file and then delete it when the program finishs. It is to only run the program if after checking for the existance of that file and not finding it let the dos program run.

Collapse -

Running single instance of DOS program

by jyabor In reply to Running single instance o ...

The question was auto-closed by TechRepublic

Collapse -

Running single instance of DOS program

by jyabor In reply to Running single instance o ...

This question was auto closed due to inactivity

Back to Windows Forum
9 total posts (Page 1 of 1)  

Related Discussions

Related Forums