RS First Dynamics NAV Blog


...from NAV 3.60 to NAV 2013
Archivio Posts
Anno 2015

Anno 2014

Anno 2013

Anno 2012

Anno 2011

Anno 2010

Anno 2009

Anno 2008

Anno 2007

Another Way to use "Command Shell" on NAV

Another Way to use "Command Shell" on NAV

Using > 'Windows Script Host Object Model'.WshShell

 

VARIABILI

Name                                              DataType                          Subtype             

Laut                                                Automation                       'Windows Script Host Object Model'.WshShell

IintWindowStyle                             Integer               

IblnWaitForEndOfCommand          Boolean                             

OintReturnValue                            Integer               

 

CODICE

  IF CREATE(Laut) THEN BEGIN

    IintWindowStyle :=0;

    IblnWaitForEndOfCommand := TRUE;

    Command := ‘Riga di comando’;

    OintReturnValue := Laut.Run(Command,IintWindowStyle,IblnWaitForEndOfCommand);

    CLEAR(Laut);

END;

 

venerdì, 15 lug 2011 Ore. 10.54

Messaggi collegati


Statistiche
  • Views Home Page: 468.833
  • Views Posts: 885.660
  • Views Gallerie: 0
  • n° Posts: 343
  • n° Commenti: 0
Copyright © 2002-2007 - Blogs 2.0
dotNetHell.it | Home Page Blogs
ASP.NET 2.0 Windows 2003