Solved

Clear memory and TSR from DOS command prompt

Posted on 2007-03-30
2
2,662 Views
Last Modified: 2012-05-05
Hello,
I need some info on how to clear the memory or TSR's within my command prompt. I run a batch process within a command prompt, and that batch process calls a GroupWise API. So, this batch process is not completely DOS. It calls an API which is Windows based.

I would like for the batch process calls the GroupWise API repeatedly, but when I do I want it to have different account logons. However, this is difficult to do because the last "call" stays open in memory. So, I can't call it again within the same command prompt.

What command line tool do you recommend that I can run after each command I execute? I hope there is a command line tool that will flush out all TSR's and anything left open in memory. Is there such a tool? This is what I am looking for so if you know of a tool that will clear out my command prompt memory and anything left running then please let me know what it is and where I can download the program.

Thanks,
John
0
Comment
Question by:jhieb
2 Comments
 
LVL 30

Accepted Solution

by:
SteveGTR earned 500 total points
ID: 18825587
I use to use MARK and RELEASE. Here's a reference to a site that has these tools:

http://www.bookcase.com/library/software/msdos.util.tsr.html

TSRCOM
Summary:       TSR memory managmt utils (MARK/RELEASE/MAPMEM)
Download:       tsrcom35.zip (Jun 21 1996, 77.8K)

The way it works is you run MARK and then run the processing that installs the TSR and does the processing.

When the processing is complete you run RELEASE and it releases the memory consumed by the TSR's and restores the interupt table.

You might also check to see if the TSR's involved in your processing have an unload feature. Some do it like this:

program /u

Good Luck,
Steve
0
 
LVL 1

Author Comment

by:jhieb
ID: 18826721
Thanks, I'll give this app a try.
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

The following is a collection of cases for strange behaviour when using advanced techniques in DOS batch files. You should have some basic experience in batch "programming", as I'm assuming some knowledge and not further explain the basics. For some…
VALIDATING DATES One method of validating dates is to jam the date into the DATE command and see if it accepts it by examining the system's errorlevel value. A non-zero result indicates failure. A typical example might look something like the fol…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…

757 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now