on 04-20-2007 9:51 AM
Hi,
i hope someone knows, if it is possible to start SAP B1 with parameters. I want that SAP B1 starts with in the parameters given company (database).
Thx for all replies.
Frank, it is not possible to use command lines arguments (as Gianluigi has mentioned).
You know all the startup parameters (SBO Server, SBO DB) are stored in the System Registry, so there is an option to use winscripting to implement it.
1. Log in and off the DB you want
2. Save the SBO settings system registry node
3. Write the vbs-file
Here are some vbs-lines to start:
on error resume next
Set WshShell = Wscript.CreateObject("Wscript.Shell")
'Set fso = Wscript.CreateObject("scripting.FileSystemObject")
'Set WshSysEnv = WshShell.Environment("PROCESS")
'Set WshNetwork = WScript.CreateObject("WScript.Network")
wshshell.run "regedit.exe /s c:SAPStartupsSettings_DemoEN.reg"
WshShell.RegWrite "HKCUSoftwareSAPSAP ManageSAP Business OneShowSplashScreen", "N" ,"REG_SZ"
'wshshell.run ("C:Program FilesSAP ManageSAP Business One 2004CSAP Business One.exe")
'wshshell.run("c:SBO.lnk")
'wshshell.run( "notepad")
WScript.Quit
There is also a good snippet how to use Scripting to manipulate SBO UI:
HTH
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
No, you cannot.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
85 | |
7 | |
6 | |
4 | |
3 | |
3 | |
3 | |
3 | |
3 | |
2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.