Hello
I have been testing wcmd to automate some process I used to use on win98. However I can not find the autoexec.bat for wcmd?
Currently the wcmd shell starts up with no prompt, this has to be corrected in my batch files. prompt $p$g etc.
Wine seems to have 2 autoexec.bat's but does not seem to ever use them. /var/lib/wine/autoexec.bat never seems to be executed. Neither is the one I created in my fake c drive (/home/now3d/.wine/c/autoexec.bat)
Is this issue known? are their any workarounds?
Regards
JG
Currently the wcmd shell starts up with no prompt, this has to be corrected in my batch files. prompt $p$g etc.
please update, this has been changed.
===== Sylvain Petreolle spetreolle@users.sourceforge.net Fight against Spam ! http://www.euro.cauce.org/en/index.html ICQ #170597259
"Don't think you are. Know you are." Morpheus, in "Matrix".
___________________________________________________________ Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français ! Yahoo! Mail : http://fr.mail.yahoo.com
Hello Sylvain,
Sylvain Petreolle wrote:
Currently the wcmd shell starts up with no prompt, this has to be corrected in my batch files. prompt $p$g etc.
please update, this has been changed.
Thanks for the info, I just tried the 20030115 and that prompt $p$g is default somewhere now. (is there a file it is set in?)
However, the autoexec.bat is stil not executed, I tested with the following and with wcmd.
@echo off echo test... set TEST=true
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?
Regards
JG
On Thursday 13 Feb 2003 02:22, J. Grant wrote:
Hello
I have been testing wcmd to automate some process I used to use on win98. However I can not find the autoexec.bat for wcmd?
Currently the wcmd shell starts up with no prompt, this has to be corrected in my batch files. prompt $p$g etc.
Wine seems to have 2 autoexec.bat's but does not seem to ever use them. /var/lib/wine/autoexec.bat never seems to be executed. Neither is the one I created in my fake c drive (/home/now3d/.wine/c/autoexec.bat)
Is this issue known? are their any workarounds?
There is code in wcmdmain.c (line 113) to execute a batch file c:\autoexec.bat but it is commented out - it could be dangerous in a dual-boot machine to execute such a batch file by default.
Dave
Hi,
Sylvain Petreolle: davep email arrived here after, not sure why.
There is code in wcmdmain.c (line 113) to execute a batch file c:\autoexec.bat but it is commented out - it could be dangerous in a dual-boot machine to execute such a batch file by default.
OK, this sounds like a good position to take, regarding c:\autoexec.bat.
What I require is environment variables, could be defined in a batch file, or in some config similar to "System Properties -> Advanced -> Environment Variables.." in NT5.
This could be implemented in several ways:
1. A "config" flag default false when installed to call c:\autoexec.bat.
2. A "config" block defining each variable
3. A c:\autoexec.wine file that was called when wine is run.
4. A ~/.wine/autoexec.bat file that would be empty by default and used by the user if they desired. With a "config" true/false flag if necessary.
I believe suggestion four is most suitable. I is safe from the chance of being executed by accident and could be used to setup essential environment variables. Also sugestion one would mean we could enable the option to run this file in "config". Would be simpler to implement, and would not possibly run a batch file from off the configured wine drives.
Cheers
JG