nitai_das
5th April 2010, 13:26
I am running Baan thr' Command prompt
"C:\Program Files\Baan\bin\bw.exe" "tfsal0439msal"
but is asking user name and password. can we set the user name and password in command line so it will automatically open baan session without asking user name and password

Thanks.

bdittmar
5th April 2010, 13:40
I am running Baan thr' Command prompt
"C:\Program Files\Baan\bin\bw.exe" "tfsal0439msal"
but is asking user name and password. can we set the user name and password in command line so it will automatically open baan session without asking user name and password

Thanks.

Hello,

create a bwc file with stored PW and startsession as parameter/command.

Regards

nitai_das
6th April 2010, 07:33
Actually I am using the code given below for intranet using visual basic

Shell "\\10.0.0.0\Baan\bin\bw.exe" & Space(1) & "pry.bwc" & Space(1) & "tfsal0000msal", vbNormalFocus

when I am runing intranet user name coming automatically but password not appearing. I have saved user name and password in pry.bwc file. Pl. suggest how to appear password also.

Thanks.

rahul.kolhe22
6th April 2010, 07:59
Hello,
Try giving the full path of the bwc file.

Regards,
--Rahul

nitai_das
6th April 2010, 09:40
ckecked but it is still asking password

rahul.kolhe22
6th April 2010, 10:05
Hello,
I think because of some reason bw.exe is using the default bwc file(means in BECS we have the option to set the default bwc file). It may not be using the bwc file which you are passing it as parameter i.e. pry.bwc. And may be in default bwc file the password may not be saved, so it is popping up the window for password.

Check if the user name in pry.bwc & the default bwc file in BECS is same.
If yes the try changing the user name of either of the file and check which user name it displays in the login window.
If it displays the user name in the default bwc file, then we will understand that bw.exe is using wrong bwc file.

Hope I am clear and it helps.

Regards,
--Rahul

nitai_das
6th April 2010, 11:46
that I have checked. whatever user name I am changing in pry.bwc it is showing. So it is 100% sure only pry.bwc is working but password is not working.

regards.

rahul.kolhe22
6th April 2010, 12:04
Hello,
OK. If it the same bwc file which you are passing to the bw.exe as a parameter, then I think you have to again confirm whether you have saved the password in the bwc file.
You can even check whether the password is stored in the bwc file by opening the bwc file in notepad. You will find the password in the encrypted form. Below is the some part of bwc file opend in notepad and password saved and highlighted in red.

....
username=rkolhe
domain=
logindialog=NO
password64=5}#.`E'PRZil55,\vFi=T`R+xtdC$1z}5j}"cF0"fj,[HE8evFi=T`R+xtdC$1z}
[NLS]
....


Regards,
--Rahul

Han Brinkman
6th April 2010, 12:27
The password is stored in such a way that only the user that stores it can use it again. So you have to save the password after logged in as the user who will run it.

You can easily check if it works, just double click on the bwc file and you should be logged in automatically.

Regards,
Han

nitai_das
6th April 2010, 12:47
checked the bwc file I paste here

[ApplicationServer]
bse=d:\baan
bshell=bshell
command=
location=
connection=
[Remote]
protocol=EXEC
hostname=10.0.0.0
portnumber=512
domain=
username=usb
password64=k5BQ~q7tjTIFu^gNj#_rgw/4rPoB7Ct*k&EKth1uz[&u;tgNj#_rgw/4rPoB7Ct*
logindialog=NO
serveros=
[NLS]
locale=ISO
RightToLeft=False
[Font]
fontName80=Fixedsys
fontWidth80=0
fontHeight80=-12
fontWeight80=normal
fontItalic80=NO
fontName132=Fixedsys
fontWidth132=0
fontHeight132=-12
fontWeight132=normal
fontItalic132=NO
[Automation]
className=Baan4.Application.pry
classId={3D66A062-E4DD-4A9C-80DA-6270B6453163}

nitai_das
6th April 2010, 12:58
Pl. note that I have written the code in visual basic and link the exe file in web page. Now I am opening this web page from different computer thr' intranet.

wiggum
6th April 2010, 14:14
As Han posted the password is stored for the user who created the bwc-file. If you run the BaanIV session via web page you will run it with a web service user and not your user.