External Commands from POS, eg calc.exe

NeilC
Member Posts: 8
Hi Folks,
Hoping someone can help me here, I want to run an external command from one of my tills, something like Calc.exe for example, or services.msc.
I think i need to use a shell command but how do i do this from the POS menu?
regards
NeilC
Hoping someone can help me here, I want to run an external command from one of my tills, something like Calc.exe for example, or services.msc.
I think i need to use a shell command but how do i do this from the POS menu?
regards
NeilC
0
Comments
-
You need to run an external application from NAV :?:
If yes, search the forum for WSH.run or WSH.execute
viewtopic.php?f=5&t=12417
RegardsDo you make it right, it works too!0 -
You can use RUNOBJECT command and in parameters specify the CU Number you need to run on POS menu setup.
Then program you CU to do what it needs to do.0 -
ara3n wrote:You can use RUNOBJECT command and in parameters specify the CU Number you need to run on POS menu setup.
Then program you CU to do what it needs to do.
:-k
mhm, i think he will run an external application like calc.exe or notepad.exe ......Do you make it right, it works too!0 -
ara3n wrote:You can use RUNOBJECT command and in parameters specify the CU Number you need to run on POS menu setup.
Then program you CU to do what it needs to do.
It's not a CU. What I want to do is set up a button on the tills in my remote sites that will bring them to a citrix login, (which will auto login to my HO) and look at a form which will enable them the see stock levels in all other stores.0 -
you will start a citrix session from NAV ?Do you make it right, it works too!0
-
That's the plan......... or should i hang my head in shame? :whistle:0
-
i say nothing .... :whistle:
Try this:Name DataType Subtype Length FileRec Record File WSHShell Automation 'Windows Script Host Object Model'.WshShell MyApp Text 30 MyID Text 30 MyApp := 'Citrix Head Quarter'; //<- it's the name of your citrix App Icon name MyID := 'oy6frkiy'; //<- this u find in the folder C:\Document & Settings\Username\Application Data\ICAClient file oy6frkiy.idx without idx ;-) in your system the idx file has not the id oy6frkiy, it has a other name .... //how to find the file whith using system tabe FILE you know. (File.setrange()) //now we run citrix: if isclear(WShShell) then create(WSHShell); wshShell.exec ('C:\Program Files\Citrix\ICA Client\pn.exe /APP ' + MyApp + ' /PNI ' + MyAppID); //if your pn.exe is in this path
To open there ever on logon a specific form, u can add on CU in Function CompanyOpen the call to the form like:
UserSetup.get(Userid);
IF UserSetup."Autorun Form Object ID" <> 0 THEN
FORM.RUN(UserSetup."Autorun Object ID");
RegardsDo you make it right, it works too!0 -
garak wrote:i say nothing .... :whistle:
Try this:Name DataType Subtype Length FileRec Record File WSHShell Automation 'Windows Script Host Object Model'.WshShell MyApp Text 30 MyID Text 30 MyApp := 'Citrix Head Quarter'; //<- it's the name of your citrix App Icon name MyID := 'oy6frkiy'; //<- this u find in the folder C:\Document & Settings\Username\Application Data\ICAClient file oy6frkiy.idx without idx ;-) in your system the idx file has not the id oy6frkiy, it has a other name .... //how to find the file whith using system tabe FILE you know. (File.setrange()) //now we run citrix: if isclear(WShShell) then create(WSHShell); wshShell.exec ('C:\Program Files\Citrix\ICA Client\pn.exe /APP ' + MyApp + ' /PNI ' + MyAppID); //if your pn.exe is in this path
To open there ever on logon a specific form, u can add on CU in Function CompanyOpen the call to the form like:
UserSetup.get(Userid);
IF UserSetup."Autorun Form Object ID" <> 0 THEN
FORM.RUN(UserSetup."Autorun Object ID");
Regards
Thanks Garak,
I'll give that a try.0 -
on my systems it works .....Do you make it right, it works too!0
Categories
- All Categories
- 73 General
- 73 Announcements
- 66.6K Microsoft Dynamics NAV
- 18.7K NAV Three Tier
- 38.4K NAV/Navision Classic Client
- 3.6K Navision Attain
- 2.4K Navision Financials
- 116 Navision DOS
- 851 Navision e-Commerce
- 1K NAV Tips & Tricks
- 772 NAV Dutch speaking only
- 617 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 320 Dynamics CRM
- 111 Dynamics GP
- 10 Dynamics SL
- 1.5K Other
- 990 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 35 Design Patterns (General & Best Practices)
- 1 Architectural Patterns
- 10 Design Patterns
- 5 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1.1K General Chat
- 1.6K Website
- 83 Testing
- 1.2K Download section
- 23 How Tos section
- 252 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions