Hi Morris,

Thanks for your reply. I'll try to do as you told me and see if it works.

regards,
D' great


--- In Axapta-Knowledge-Village@yahoogroups.com, Varden Morris <vard...@...> 
wrote:
>
> That method is designated to run on the client. As a matter of fact the 
> WinAPI class is designated to run on the client. If you are using 4.0 or 
> higher there is a WinAPIServer class that runs on the server but it does not 
> have all the methods that the WinAPI class has. Try copying the shellExecute 
> method to a new class and change the client modifier to server. This will 
> enable the method to run on the server. With that said I don’t think it is 
> best practice to execute DLL on the server.
> 
> 
> Varden Morris
> Varalth Solutions Inc.  
> 693 Abbottsfield Road NW
> Edmonton, Alberta T5W 4R4
> Canada 
> (780) 752-0406 
> (780) 716-8604 (c)
> www.varalth.com 
>  
> 
> CONFIDENTIALITY NOTICE 
>  
> This message and any attachments are confidential.  If you have received 
> this transmission in error, please be advised that any disclosure, copying, 
> distribution or action taken in reliance upon this communication is strictly 
> prohibited.  If you have received this communication in error, please 
> contact the sender immediately. Please note that any views or opinions 
> presented in this email are solely those of the author and do not necessarily 
> represent those of the company.  Finally, the recipient should check this 
> email and any attachments for the presence of viruses. The company accepts no 
> liability for any damage caused by any virus transmitted by this email.
> 
> --- On Sun, 7/12/09, dgreatone123 <dgreatone...@...> wrote:
> 
> 
> From: dgreatone123 <dgreatone...@...>
> Subject: [Axapta-Knowledge-Village] Re: Calling EXE file form Ax Menu
> To: Axapta-Knowledge-Village@yahoogroups.com
> Date: Sunday, July 12, 2009, 7:32 PM
> 
> 
> 
> 
> 
> 
> 
> 
> I want to convert the client side batch to server side.
> the batch call a bat file. In client mode it work fine, I used the
> winapi:shellexecute method. But in server mode, this winapi:shellexecute is 
> not
> available.
> 
> The bat contain the ftp I.P. while the config file contain the user/password 
> to
> the ftp and the directory where I want to move the file from my local drive to
> ftp folder.
> any idea how to convert this batch to server mode?
> 
> thanks
> 
> --- In Axapta-Knowledge- vill...@yahoogro ups.com, "Arijit Basu" 
> <arijit.basu@ ...> wrote:
> >
> > Hi Kapil,
> > use WinAPI::shellExecut e();
> > 
> > Cheers
> > 
> > Arijit Basu
> > 
> > On Thu, May 1, 2008 at 6:47 PM, anuprkl <anuprkl@ > wrote:
> > 
> > > Hi!
> > > Is it possible to call any EXE file from menu item in Axapta 3.0.
> > > For example I want to call xyz.exe form AR>Report>"Call XYZ".
> > >
> > > If I click on this Menu then the xyz.exe file should run.
> > > Thanks
> > > Kapil
> > >
> > > 
> > >
> > 
> > 
> > 
> > -- 
> > 
> > 
> > Arijit Basu
> >
>


Reply via email to