16-bit under WinXP Pro?

  • Thread starter Thread starter Per Odegaard
  • Start date Start date
P

Per Odegaard

Is there a way of stopping DOS windows popping up on the Desktop when
starting/stopping a 16-bit programme (from a BAT file)?

Regards,
Per Odegaard.
 
Is there a way of stopping DOS windows popping up on the Desktop when
starting/stopping a 16-bit programme (from a BAT file)?

CMDOW [Version 1.4.2] Win32 Commandline Window Utility for NT4/W2K/XP.
(C) Copyright 2001-2002 Ritchie Lawrence, http://www.commandline.co.uk.


Cmdow can run a batch file in a hidden window.
 
Please advise where cmdow.exe should be installed/copied to?
In any one of the path folders?

Regards,
Per.
 
Ritchie,

I'm a bit confused by what you call 'name of window'.
What I want to do is to avoid getting BAT file (DOS) windows thrown up on
the Desktop.
The file causing these windows is called RUNFBB.BAT, a copy of which is
enclosed this message.
Should I include the command cmdow.exe in this BAT file in order to subdue
these windows - and, if so, where?

Greetings,
Per.
 
In said:
Ritchie,

I'm a bit confused by what you call 'name of window'.
What I want to do is to avoid getting BAT file (DOS) windows
thrown up on the Desktop.
The file causing these windows is called RUNFBB.BAT, a copy of
which is enclosed this message.
Should I include the command cmdow.exe in this BAT file in order
to subdue these windows - and, if so, where?

===== RUNFBB.BAT ===
@echo off
:: any other environment clauses
cmdow @ /MIN
:: remainder of batch...
====================

May do what you want.
 
Per said:
Ritchie,

I'm a bit confused by what you call 'name of window'.
What I want to do is to avoid getting BAT file (DOS) windows thrown up on
the Desktop.
The file causing these windows is called RUNFBB.BAT, a copy of which is
enclosed this message.
Should I include the command cmdow.exe in this BAT file in order to subdue
these windows - and, if so, where?

Greetings,
Per.
Hi Per,

read the help of cmdow:

C:\> cmdow /?
CMDOW [Version 1.4.2] Win32 Commandline Window Utility for NT4/W2K/XP.
(C) Copyright 2001-2002 Ritchie Lawrence, http://www.commandline.co.uk.

CMDOW [window | /T] [/B] [/F] [/P]
CMDOW /TH | /TV | /MA | /CW | /UW | /AT | /FS | /WM
CMDOW window {[/ACT] [/INA] [/ENA] [/DIS] [/VIS] [/HID] [/MIN] [/MAX]
[/RES] [/TOP] [/NOT] [/REN caption] [/MOV left top]
[/SIZ width height] [/CLS] [/END]}
CMDOW /RUN [state] file [args]

window List specified window (if omitted, all windows are listed).
/T List windows only shown on the taskbar.
/B List windows using bare format (no heading information).
/F List windows showing full information (don't truncate any fields).
/P List windows showing position and size (left,top,width + height).

/TH Tile windows horizontally. /TV Tile windows vertically.
/MA Minimize all windows. /CW Cascade windows.
/UW Undo tile/minimize/cascade. /AT Intelligent [Alt]-[Tab]
/FS Switch to full screen mode. /WM Switch to window mode.

/ACT Activate specified window. /INA Inactivate specified window.
/ENA Enable specified window. /DIS Disable specified window.
/VIS Unhide specified window. /HID Hide specified window.
/MIN Minimize specified window. /MAX Maximize specified window.
/RES Restore specified window. /REN Rename specified window.
/TOP Make window always on top. /NOT Make window not always on top.
/MOV Move specified window. /SIZ Resize specified window.
/CLS Close specified window. /END Kill process linked to window.

/RUN Executes or opens specified file using associated application.
state Initial show state of window(/MIN,/MAX or/HID).Default is normal.
args Optional commandline arguments passed to launched application.

Specify a window by its caption (case insensitive) or handle in hex format.
*The At symbol '@' may be used to refer to this window.*
For more help on any parameter use CMDOW /? <parameter>.
Eg CMDOW /? /RUN or CMDOW /? window.

---------------------------------

To refer to the current window use "@"

You may use /min or even /HID to minimize/hide the batch window.
When using /HID don't forget to place a /VIS when echoing messages.

HTH
 
Well, I'm sorry to say that it didn't.
So back to the drawingboard...

Per.


Ritchie,

I'm a bit confused by what you call 'name of window'.
What I want to do is to avoid getting BAT file (DOS) windows
thrown up on the Desktop.
The file causing these windows is called RUNFBB.BAT, a copy of
which is enclosed this message.
Should I include the command cmdow.exe in this BAT file in order
to subdue these windows - and, if so, where?

===== RUNFBB.BAT ===
@echo off
:: any other environment clauses
cmdow @ /MIN
:: remainder of batch...
====================

May do what you want.
 
Alternative thinking: Could by problem with a blacked screen (as soon as the
BAT file is run) have anything to do with the monitor itself - or the PC's
RAM (I've got 512 MB).

Per.
 
PO> Alternative thinking: Could by problem with a blacked screen (as
PO> soon as the BAT file is run) have anything to do with the monitor
PO> itself - or the PC's RAM (I've got 512 MB).

I don´t know your system, or the batch in question so what do you
expext?

--
Greetings
Matthias



Bye
Matthias Tacke <[email protected]> Sun, 26 Feb 2006 00:45:47 +0200

=== Posted with Qusnetsoft NewsReader 2.2.0.8
 
PO> Alternative thinking: Could by problem with a blacked screen (as
PO> soon as the BAT file is run) have anything to do with the monitor
PO> itself - or the PC's RAM (I've got 512 MB).

I don´t know your system, or the batch in question so what do you
expext?

--
Greetings
Matthias
________________________________________________

Then I suggest that you read the thread from the very beginning.

Per.
 
Hello, Ritchie.

My email messages sent to you direct are returned as non-deliverable,
therefore I'm repeating them here.

Per.

===================================

Hi.

I'm using Windows XP Pro (with SP2).

The BAT file, called RUNFBB.BAT, is run from a single-click icon on the task
line.
The file itself is hereby attached.

As mentioned earlier, my monitor blackens as soon as RUNFBB.BAT is run,
whether for START, STOP or MAINTENANCE.
It's used to run a ham radio BBS programme called WinFBB.

Cheers,
Per.
______________________________________

I should have added that the monitor blackens unless I also right-click on
the desktop to get a help window running immediately after START, STOP or
MAINTENANCE.
It looks to me as if the BAT/DOS windows are causing the screen to go black,
so if it had been possible to avoid them, I'd have been a happier man.

Per.
______________________________________

Hi,

I doubt the problem is caused by your monitor.

What is your operating system?
What commands are in your batch file?
Exactly how are you running this batch file?
 
I was sure I did enclose the BAT file earlier, but here it is again - the
RUNFBB.BAT file - included in the message text below.

Per.


@echo off
break off
set fbb=\FBB
goto %1

:start ********** START script begins **********
@echo off
cd %fbb%
goto end
rem ********** START script ends **********

:rerun ********** RERUN script begins **********
@echo off
cd %fbb%
goto end
rem ********** RERUN script ends **********

:maint ********** MAINT script begins **********
@echo off
cls
echo Housekeeping in message database...
cd %fbb%
del epurmess.res
epurmess
rem EPURWP only applies when using White Pages...
rem Parameters: Number of days before updating, and before deleting.
REM EPURWP 14 365 reduced to 14 180 on 19/11/99
epurwp.exe 14 180
del %fbb%\system\wp\wp.old
cd c:\fbb\bin
strus.exe
cd c:\fbb
report.exe
cd %fbb%\system
copy c:\fbb\system\dirmes.sys c:\fbb\backup\dirmes.old
copy c:\fbb\system\inf.sys c:\fbb\backup\inf.old
clr_user>>%fbb%\clr_user.res
MAINTINF 3 /a
COPY %FBB%\SYSTEM\INF.NEW %FBB%\SYSTEM\INF.SYS
cd %fbb%
REM 15/7/05 del %fbb%\system\dirmes.new
REM 15/7/05 del %fbb%\system\dirmes.old
:direct
goto end
rem ********** MAINT script ends **********


:stop ********** STOP script begins **********
goto end
rem ********** STOP script ends **********


:error ********** ERROR script begins **********
echo WFBB exited with ERRORLEVEL %2
@echo off
sleep 5
goto end
rem ********** ERROR script ends **********

:end
echo %1 script is finished.
@echo off
sleep 2
exit
 
Back
Top