WshShell & Nav Backup

logu_cbe
Member Posts: 54
Hi,
As one of our client wants automated backup with in Nav, i am using WshShell as follows
WinShell - 'Windows Script Host Object Model'.WshShell
CREATE(WinShell);
WinShell.SendKeys('%(t)');
WinShell.SendKeys('b');
It works fine but while i am trying to Use "send keys" further (To type file name and description), i cannot proceed in that.
I can really appreciate any kind of inputs in this.....
Thanks,
Logu
As one of our client wants automated backup with in Nav, i am using WshShell as follows
WinShell - 'Windows Script Host Object Model'.WshShell
CREATE(WinShell);
WinShell.SendKeys('%(t)');
WinShell.SendKeys('b');
It works fine but while i am trying to Use "send keys" further (To type file name and description), i cannot proceed in that.
I can really appreciate any kind of inputs in this.....
Thanks,
Logu
0
Comments
-
It is because the dialog is modal and it means no C/AL code is running behind. Try to send all keys in one command to buffer them and end the code...0
-
Thanks for reply...
I tried in that way also. But failed. ](*,)0 -
Hello Logu_Cbe
With the automation, you need to take pause in order to send messages. So either use a timer or pause for a second.0 -
Hi Rased,
Thanks for your reply....
I cannot fix that issue in SLEEP (Pause) also.
I can really appreciate for other inputs...
Thank you,
Logu0 -
Well, I think you'll have to do it from outside NAV. It's like Kine said: the modal form messes things up for you. If you can call the sendkeys from outside NAV, the modal form won't have this influence on the external app ... .
May be you can call a seperate exe from within NAV? Not sure if this is a seperate process though ... :-k . You will have to do some testing.
Some little voice in the back of my head says to me that ExpandIT (http://www.expandit.com/) has something like that.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