Re: DOS Environment not working




"Gussie" <Gussie@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:1E10AC2B-D646-4731-A50F-5D8FED33E070@xxxxxxxxxxxxxxxx
Hello, I have legacy system written in Clipper 5.2e/Blinker 7.0. I need to
do
a bunch of SET' when I open up the command shell. To do that I run a batch
file once command.com is triggered, but variables are not been set as they
supposed to.

I can set these variables one-by-one and it works fine, but cannot run
batchfile.
Any ideas? is it possible to set variables using a SCRIPT?

Gus
sdl-gus@xxxxxxxxxx

Presumably you're talking about the Command Prompt, not DOS.
DOS is an operating system - it does not exist in WinXP.

The "set" command works exactly as designed but you need to
be aware that your changes are only effective within the process
in which they are applied. Child processes inherit their environmental
variables from their parents but the parents do not inherit anything
from their children. I suspect that you're trying to set your
variables by shelling out from within Clipper. You cannot do this -
you must set your variables when you start your Command Prompt.
This is usually done by placing a suitable batch file into your
Startup menu, e.g. like so:
@echo off
set path=%path%;c:\Clipper
clipper.exe

Note also that command.com is a legacy command processor.
It was superceded seven years ago by cmd.exe. Time to move on!


.



Relevant Pages

  • Re: Multi-zip files -- Windows server
    ... native DOS versions). ... TO BATCH OR NOT TO BATCH ... and using a batch file to try and solve the problem... ... The IBM PC operating system command line is a most ...
    (comp.sys.cbm)
  • Re: Booming or Fuming? Are You Alive? Or Are You Fading Away?!
    ... purely of statements processed completely by the native batch command ... > command processor, only because it comes free with the OS. ... Hey, guard, it is not PERFECT, OK? ...
    (microsoft.public.win2000.cmdprompt.admin)
  • Re: Booming or Fuming? Are You Alive? Or Are You Fading Away?!
    ... purely of statements processed completely by the native batch command ... > command processor, only because it comes free with the OS. ... Hey, guard, it is not PERFECT, OK? ...
    (microsoft.public.windowsxp.perform_maintain)
  • CreateProcess not working as doc specifies.
    ... I am having some difficulty using CreateProcess() to run a batch file and get ... you must start the command interpreter; ... the test.bat (should return exit code 1 and does when run from the command ...
    (microsoft.public.win32.programmer.kernel)
  • Re: Run Items Without Explorer
    ... I call this a batch shell. ... Startup a batch command as Shell and at the end of the batch file, ... The standard RUN key in the registry will help you. ...
    (microsoft.public.windowsxp.embedded)