I think this is a key feature, I would like to use this to set some enviroment variables, currently I have to run a batch file manually each time I start wcmd. Could this be considered for implementation please?
The real-mode emulator 'dosemu' has an option to use another extension for 'autoexec.bat' and 'config.sys'. How about 'autoexec.wine' and 'config.wine', respectively? Just my EUR 0.02 ;-)
Bodo
Hi,
Bodo Wenzel wrote:
I think this is a key feature, I would like to use this to set some environment variables, currently I have to run a batch file manually each time I start wcmd. Could this be considered for implementation please?
The real-mode emulator 'dosemu' has an option to use another extension for 'autoexec.bat' and 'config.sys'. How about 'autoexec.wine' and 'config.wine', respectively? Just my EUR 0.02 ;-)
This looks like an interesting idea you have Bodo. "autoexec.wine" would be useful.
In the case of MS-WinNT and beyond MS have gone for the enviroment variable settings in the "System" section of control pannel.
How about adding a section to the Wine "config" file to support this modern way of working?
For example:
[Environment Variables] ;System wide Wine specific environment variables useful for all apps "INCLUDE" = "d:\vs\vc98\include;d:\vs\common\msdev98\include" "LIB" = "d:\vs\vc98\lib" "MYENV" = "123467890"
This would improve things I believe.
Regards
JG
On Monday 17 Feb 2003 23:59, J. Grant wrote:
Hi,
Bodo Wenzel wrote:
I think this is a key feature, I would like to use this to set some environment variables, currently I have to run a batch file manually each time I start wcmd. Could this be considered for implementation please?
The real-mode emulator 'dosemu' has an option to use another extension for 'autoexec.bat' and 'config.sys'. How about 'autoexec.wine' and 'config.wine', respectively? Just my EUR 0.02 ;-)
This looks like an interesting idea you have Bodo. "autoexec.wine" would be useful.
Something like this?
Index: programs/wcmd/wcmdmain.c =================================================================== RCS file: /home/wine/wine/programs/wcmd/wcmdmain.c,v retrieving revision 1.22 diff -u -r1.22 wcmdmain.c --- programs/wcmd/wcmdmain.c 11 Feb 2003 22:01:11 -0000 1.22 +++ programs/wcmd/wcmdmain.c 18 Feb 2003 16:51:42 -0000 @@ -102,16 +102,14 @@ }
/* - * If there is an AUTOEXEC.BAT file, try to execute it. + * If there is an AUTOEXEC.WINE file, try to execute it. */
- GetFullPathName ("\autoexec.bat", sizeof(string), string, NULL); + GetFullPathName ("\autoexec.wine", sizeof(string), string, NULL); h = CreateFile (string, GENERIC_READ, FILE_SHARE_READ, NULL, OPEN_EXISTING, FILE_ATTRIBUTE_NORMAL, NULL); if (h != INVALID_HANDLE_VALUE) { CloseHandle (h); -#if 0 WCMD_batch (string, " "); -#endif }
/*
Hi davep,
Something like this?
yes, this looks great. Could it be reviewed for addition to the CVS version please?
Regards
JG