PDA

View Full Version : RE: Running dos dataflex on XP workstation



Dennis Piccioni
18-May-2005, 09:51 AM
Hi Tod,

there is a sample of how to do this in the "Upgrading to DataFlex 3.2"
white paper:
http://www.dataaccess.com/whitepapers

Regards,
Dennis


-----Original Message-----
From: Tod Brannen [mailto:tbrannen@ate.net]
Posted At: Monday, May 16, 2005 10:06 AM
Posted To: dataflex
Conversation: Running dos dataflex on XP workstation
Subject: Running dos dataflex on XP workstation


Greetings,
Actually if I can just get the stupid XP short cut to run my batch
file I would be happy. I can get a DOS window in XP ok, but I set the
shortcut to run a batch file to set my DFpath and DFprog and DOSKey etc
and it won't run it. I tried adding an extra command on the command line
but that did not help. I have to manually run the batch file once the
DOS window is opened.
What am I missing?

Thanks

Tod Brannen

Jan-E
18-May-2005, 10:42 AM
Dennis Piccioni in dataflex (Wed, 18 May 2005 10:51:44 -0400):

>Hi Tod,
>
>there is a sample of how to do this in the "Upgrading to DataFlex 3.2"
>white paper:
>http://www.dataaccess.com/whitepapers

What all of you are missing that Tod does not want to run the batch file
directly. He wants to open a DOS box with some settings from a batch file.
So his short cut points to cmd.exe and he has entered the name of the
batch file in the 'batch file' box of the properties|program tab of the
short cut.

Jan
--
Low CPU versions of DF2.3b - http://www.monitor.nl/df/df.html

Glennbo
18-May-2005, 11:17 AM
The entity known as Jan Ehrhardt, posted:

> What all of you are missing that Tod does not want to run the batch
> file directly. He wants to open a DOS box with some settings from a
> batch file. So his short cut points to cmd.exe and he has entered the
> name of the batch file in the 'batch file' box of the
> properties|program tab of the short cut.

The /k option of cmd.exe or command.com for that matter does exactly that.

Starts a new instance of the Windows XP command interpreter

CMD [/A | /U] [/Q] [/D] [/E:ON | /E:OFF] [/F:ON | /F:OFF] [/V:ON | /V:OFF]
[[/S] [/C | /K] string]

/K Carries out the command specified by string but remains

--
_______ _____ ___ _____ ____
/ ___/ / / __/ |/ / |/ / _ )/ __ \
/ (_ / /__/ _// / / _ / /_/ /
\___/____/___/_/|_/_/|_/____/\____/
---------------------------------------------------------------------
Glennbo These go to eleven
Non-Linear Sound http://www.soundclick.com/glennbo
Hear My Music http://www.soundclick.com/jambits

Glennbo
18-May-2005, 11:24 AM
The entity known as Glennbo, posted:

> The /k option of cmd.exe or command.com for that matter does exactly
> that.

Maybe a picture of it will make more sense. This is how I start up my
character mode Dataflex development dos box. When the box opens, it is
Dataflex aware so I can issue commands like DFruncon, DFcomp, and DFfile.
I have mine on a hotkey (ctrl-alt-D) for quick access.

--
_______ _____ ___ _____ ____
/ ___/ / / __/ |/ / |/ / _ )/ __ \
/ (_ / /__/ _// / / _ / /_/ /
\___/____/___/_/|_/_/|_/____/\____/
---------------------------------------------------------------------
Glennbo These go to eleven
Non-Linear Sound http://www.soundclick.com/glennbo
Hear My Music http://www.soundclick.com/jambits

Tod Brannen
18-May-2005, 04:03 PM
Dennis,
Yep, that was it, but I got it from Glennbo first.

Tod Brannen

"

britk9
18-May-2005, 07:07 PM
Jan,

It sounds like the issue you helped me on some months ago where I was trying
to set environment variables using a batch file after starting dfrun. As we
discovered, the variable got set in the 2nd cmd. However, upon 'exiting'
the batch file which CLOSED that instance of cmd, the variables were lost.

Mike

"Jan Ehrhardt" <Jan.Ehrhardt@monitor.nl> wrote in message
news:k9om81dps1mikr9p9e6q7lp3bmrs1nq4mr@4ax.com...
> Dennis Piccioni in dataflex (Wed, 18 May 2005 10:51:44 -0400):
>
> >Hi Tod,
> >
> >there is a sample of how to do this in the "Upgrading to DataFlex 3.2"
> >white paper:
> >http://www.dataaccess.com/whitepapers
>
> What all of you are missing that Tod does not want to run the batch file
> directly. He wants to open a DOS box with some settings from a batch file.
> So his short cut points to cmd.exe and he has entered the name of the
> batch file in the 'batch file' box of the properties|program tab of the
> short cut.
>
> Jan
> --
> Low CPU versions of DF2.3b - http://www.monitor.nl/df/df.html

Greg Goss
18-May-2005, 10:00 PM
There use to be a small util that you could run in a second/additional
shell and it would update the environment in the first. Don't recall
name or where I found it.
Greg


On Wed, 18 May 2005 20:07:07 -0400, "britk9" <britk9@bellsouth.net>
wrote:

>Jan,
>
>It sounds like the issue you helped me on some months ago where I was trying
>to set environment variables using a batch file after starting dfrun. As we
>discovered, the variable got set in the 2nd cmd. However, upon 'exiting'
>the batch file which CLOSED that instance of cmd, the variables were lost.
>
>Mike
>
>"Jan Ehrhardt" <Jan.Ehrhardt@monitor.nl> wrote in message
>news:k9om81dps1mikr9p9e6q7lp3bmrs1nq4mr@4ax.com...
>> Dennis Piccioni in dataflex (Wed, 18 May 2005 10:51:44 -0400):
>>
>> >Hi Tod,
>> >
>> >there is a sample of how to do this in the "Upgrading to DataFlex 3.2"
>> >white paper:
>> >http://www.dataaccess.com/whitepapers
>>
>> What all of you are missing that Tod does not want to run the batch file
>> directly. He wants to open a DOS box with some settings from a batch file.
>> So his short cut points to cmd.exe and he has entered the name of the
>> batch file in the 'batch file' box of the properties|program tab of the
>> short cut.
>>
>> Jan
>> --
>> Low CPU versions of DF2.3b - http://www.monitor.nl/df/df.html
>

britk9
18-May-2005, 10:20 PM
Greg,

That would be *very* interesting and especially if it work on XP. Hope
someone out there has a good memory and can recall it.

Best Regards,
Mike

"Greg Goss" <greg@pipeline.com> wrote in message
news:n20o8111i3us1c86cjdfo9a0if7lptiok3@4ax.com...
> There use to be a small util that you could run in a second/additional
> shell and it would update the environment in the first. Don't recall
> name or where I found it.
> Greg
>
>
> On Wed, 18 May 2005 20:07:07 -0400, "britk9" <britk9@bellsouth.net>
> wrote:
>
> >Jan,
> >
> >It sounds like the issue you helped me on some months ago where I was
trying
> >to set environment variables using a batch file after starting dfrun. As
we
> >discovered, the variable got set in the 2nd cmd. However, upon 'exiting'
> >the batch file which CLOSED that instance of cmd, the variables were
lost.
> >
> >Mike
> >
> >"Jan Ehrhardt" <Jan.Ehrhardt@monitor.nl> wrote in message
> >news:k9om81dps1mikr9p9e6q7lp3bmrs1nq4mr@4ax.com...
> >> Dennis Piccioni in dataflex (Wed, 18 May 2005 10:51:44 -0400):
> >>
> >> >Hi Tod,
> >> >
> >> >there is a sample of how to do this in the "Upgrading to DataFlex 3.2"
> >> >white paper:
> >> >http://www.dataaccess.com/whitepapers
> >>
> >> What all of you are missing that Tod does not want to run the batch
file
> >> directly. He wants to open a DOS box with some settings from a batch
file.
> >> So his short cut points to cmd.exe and he has entered the name of the
> >> batch file in the 'batch file' box of the properties|program tab of the
> >> short cut.
> >>
> >> Jan
> >> --
> >> Low CPU versions of DF2.3b - http://www.monitor.nl/df/df.html
> >
>

Greg Goss
20-May-2005, 10:21 PM
i googled "modify master environment" and found SETENV.EXE
Which apparently works at least with win 2k

http://barnyard.syr.edu/~vefatica/#SETENV

couple of other nice utils also




On Wed, 18 May 2005 23:20:57 -0400, "britk9" <britk9@bellsouth.net>
wrote:

>Greg,
>
>That would be *very* interesting and especially if it work on XP. Hope
>someone out there has a good memory and can recall it.
>
>Best Regards,
>Mike
>
>"Greg Goss" <greg@pipeline.com> wrote in message