Re: How to AUTOMATICALLY prepend/pass a "/U" switch to cmd.exe when executing a *.bat batch file ?
- From: "Pegasus \(MVP\)" <I.can@xxxxxxx>
- Date: Sun, 18 Mar 2007 21:25:24 +1100
"Thommy Kanther" <tho235@xxxxxxxxx> wrote in message
news:45fd03d5$0$20300$9b4e6d93@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
When a batch file should create Unicode output then a /U switch must beused for
the processing cmd.exe. So I could execute a batch with/U flag.
cmd.exe /U mybatchfile.bat
That works for the. moment.
However when I doubleclick a .bat file I have no possibility to pass the
should be
How do I specify that every time I execute a .bat by doubleclicking the /U
automatically taken? I don't want to create a second shortcut.particular batch file
As a workaround I could accept that the /U flag is not only used for a
e.g. mybatchfile.bat but for ALL my batch files.found no entry field
When I right click on the properties of C:\WINDOWS\system32\cmd.exe I
for entering this parameter. Can I specify it in the Registry ?
Thommy
Instead of getting your shortcut to invoke the batch file, get it to
invoke this command line:
%windir%\system32\cmd.exe /u /c c:\temp\test.bat
.
- Prev by Date: Re: Increasing RAM Query
- Next by Date: Re: How do I use System Tools > Backup without floppy drive?
- Previous by thread: Re: IE 7 vs IE6sp1
- Next by thread: Re: How to AUTOMATICALLY prepend/pass a "/U" switch to cmd.exe when executing a *.bat batch file ?
- Index(es):
Relevant Pages
|