Back to home page

DOS ain't dead

Forum index page

Log in | Register

Back to the forum
Board view  Mix view

How to set env. var from C program (Developers)

posted by roytam, 16.01.2013, 04:57

> > That's true and that's exactly why the utility PIPESET exists. Get the
> > DOSUTILS package e.g. from here:
> > http://www.bttr-software.de/products/jhoffmann/ and see
> > whether it does what you need. You could do it with such a command line:
> >
> > program.exe | PIPESET VAR
>
> I tried pipeset under WinXP cmd and dosbox but it doesn't set any var.
> Currently cannot reboot. Probably the hack works only under pure DOS.

you have to use for /f to do so in Windows 2000/XP/etc.(NT4 not tested)
for /f %i in ('your-command') do set yourenv=%i

 

Complete thread:

Back to the forum
Board view  Mix view
22761 Postings in 2121 Threads, 402 registered users (0 online)
DOS ain't dead | Admin contact
RSS Feed
powered by my little forum