Info of Client Machine

How can i get recent applications opened in the client machine using forms 10g

you can use welutil pacakge to get the files of client %RECENT% directory.
then scan each and every file of the directory.
each file is recently opened files on the client machine

Similar Messages

  • Unable to connect report to database on client machine

    I am using C# and Visual Studio 2010 with several Crystal Reports embedded into my application as resources.  This is a Windows application running on Vista.  I am trying to connect to a SQL Server database.  I created the reports using the design wizard in VS.  I am allowing for the server and database name to be changed at runtime through values stored in the project manifest.
    As experienced by hundreds of other frustrated developers, my reports run fine on my development machine but fail on my client machine.  On the client machine I am prompted with a database login window.  The server name is properly populated with the server name pulled from the ...exe.config file.  The database name is blank and the field is disabled.  The integrated security checkbox is not checked.  I am programatically providing the server name, the database name and specifying integrated security to be true using sample code I found on this forum.  See below. 
    I reviewed the Troubleshooting Guide to Database Connectivity Issue with Crystal Reports in Visual Studio .NET Applications.  Accordingly, I am running the SP1 for Visual Studio 2010 on my development machine and the most recent runtime module on the client machine.
    Here is my application code.
    using System;
    using System.Collections.Generic;
    using System.ComponentModel;
    using System.Data;
    using System.Drawing;
    using System.Linq;
    using System.Text;
    using System.Windows.Forms;
    using CrystalDecisions.CrystalReports.Engine; //jp
    using CrystalDecisions.Shared; //jp
    namespace WindowsFormsApplication1
        public partial class FormRptArtist : Form
            private CrystalReport1 crReportDocument = new CrystalReport1();
            public FormRptArtist()
                InitializeComponent();
            private void FormRptArtist_Load(object sender, EventArgs e)
                try
                    ConnectionInfo connectionInfo = new ConnectionInfo();
                    connectionInfo.IntegratedSecurity = true;
                    connectionInfo.ServerName = Properties.Settings.Default.CrystalServer;   // SQLExpress
                    connectionInfo.DatabaseName = Properties.Settings.Default.CrystalDatabase;   // TriviaProd
                    SetDBLogonForReport(connectionInfo, crReportDocument);
                    SetDBLogonForSubreports(connectionInfo, crReportDocument);
                    crystalReportViewer1.ReportSource = crReportDocument;
                catch (Exception exp)
                    MessageBox.Show(exp.Message);
            private void SetDBLogonForSubreports(ConnectionInfo connectionInfo, ReportDocument reportDocument)
                Sections sections = reportDocument.ReportDefinition.Sections;
                foreach (Section section in sections)
                    ReportObjects reportObjects = section.ReportObjects;
                    foreach (ReportObject reportObject in reportObjects)
                        if (reportObject.Kind == ReportObjectKind.SubreportObject)
                            SubreportObject subreportObject = (SubreportObject)reportObject;
                            ReportDocument subReportDocument =
                                subreportObject.OpenSubreport(subreportObject.SubreportName);
                            SetDBLogonForReport(connectionInfo, subReportDocument);
            private void SetDBLogonForReport(ConnectionInfo connectionInfo, ReportDocument reportDocument)
                Tables tables = reportDocument.Database.Tables;
                foreach (CrystalDecisions.CrystalReports.Engine.Table table in tables)
                    TableLogOnInfo tableLogonInfo = table.LogOnInfo;
                    tableLogonInfo.ConnectionInfo = connectionInfo;
                    table.ApplyLogOnInfo(tableLogonInfo);

    Hello,
    Install the MS SQL Server Client tools on your PC and when setting location use the MS SQL Native 10 client as your database driver.
    Only one MS supports for Server 2008, there is a MS Kbase on this, you can't use MDAC version of the SQL Client engine.
    Then update your app to use RAS and search in this forum on ReplaceConnection_click and you'll find my sample code on how to set location to use the new DB server and connection properties.
    If that doesn't work then try hard coding the log on info rather than using variables. At the same time, unfortunately SQL Express doesn't have the Management Console, you want to watch the server using Profiler to see what your app is actually sending to the Server. If you have a full version of SQL 2008 then you can monitor what is going on. If not then you'll ahve to find some other tool you can use.
    Try ODBC, you can enable ODBC Trace to see is all other options are not available.
    If that doesn't work post to MS's forum and ask them why you connection info isn't working.
    Thank you
    Don

  • Deployment of JavaFX Web application on client machine(Windows OS.)

    Problem Statement:
    Deployment of JavaFX Web application on client machine(Windows OS.)
    Error: unable to load the native libarary(JNI Windows dll) i.e. throws java.lang.UnsatisfiedLinkError exception.
    Problem Description:
    I have create the JavaFX application which have dependency on Native library written in Java Native Interface(JNI).
    When the application is deployed on Apache 6.0 Tomcat Server(Copied .html file *.jnlp file and .jar file) and when client machine hit the html page in internet explorer version 8.0 its throws the following error(java.lang.UnsatisfiedLinkError: no JNIHelloWorld in java.library.path)
    Note:
    I have created the jar file which have my "JNIHelloWorld' native library dll in root directory. I have signed the jar with same signature which i have used for signing for my application Jar file.
    I have mentioned the native library jar in JNLP file resource keyword as follows:
    <resources os=Windows>
    <nativelib href="JNIHelloWorld.jar" download="eager" />
    </resources>
    The complete jnlp file content is in "JavaFXApplication.jnlp file:" section below.
    The description of error is as follows:
    Match: beginTraversal
    Match: digest selected JREDesc: JREDesc[version 1.6+, heap=-1--1, args=null, href=http://java.sun.com/products/autodl/j2se, sel=false, null, null], JREInfo: JREInfo for index 0:
    platform is: 1.7
    product is: 1.7.0_07
    location is: http://java.sun.com/products/autodl/j2se
    path is: C:\Program Files\Java\jre7\bin\javaw.exe
    args is: null
    native platform is: Windows, x86 [ x86, 32bit ]
    JavaFX runtime is: JavaFX 2.2.1 found at C:\Program Files\Java\jre7\
    enabled is: true
    registered is: true
    system is: true
         Match: ignoring maxHeap: -1
         Match: ignoring InitHeap: -1
         Match: digesting vmargs: null
         Match: digested vmargs: [JVMParameters: isSecure: true, args: ]
         Match: JVM args after accumulation: [JVMParameters: isSecure: true, args: ]
         Match: digest LaunchDesc: http://10.187.143.68:8282/KPIT/JavaFXApplication20.jnlp
         Match: digest properties: []
         Match: JVM args: [JVMParameters: isSecure: true, args: ]
         Match: endTraversal ..
         Match: JVM args final:
         Match: Running JREInfo Version match: 1.7.0.07 == 1.7.0.07
         *Match: Running JVM args match: have:<> satisfy want:<>*
    *java.lang.UnsatisfiedLinkError: no JNIHelloWorld in java.library.path*
    *     at java.lang.ClassLoader.loadLibrary(Unknown Source)*
    *     at java.lang.Runtime.loadLibrary0(Unknown Source)*
    *     at java.lang.System.loadLibrary(Unknown Source)*     at javafxapplication20.JavaFXApplication20.<clinit>(JavaFXApplication20.java:41)
         at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
         at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
         at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
         at java.lang.reflect.Constructor.newInstance(Unknown Source)
         at java.lang.Class.newInstance0(Unknown Source)
         at java.lang.Class.newInstance(Unknown Source)
         at com.sun.javafx.applet.FXApplet2.init(FXApplet2.java:63)
         at com.sun.deploy.uitoolkit.impl.fx.FXApplet2Adapter.init(FXApplet2Adapter.java:207)
         at sun.plugin2.applet.Plugin2Manager$AppletExecutionRunnable.run(Unknown Source)
         at java.lang.Thread.run(Unknown Source)
    Java Plug-in 10.7.2.11
    Using JRE version 1.7.0_07-b11 Java HotSpot(TM) Client VM
    User home directory = C:\Users\io839
    Please find my native library code and JavaFX application code:
    Native library JNI Code:
    JavaFXApplication.java:
    JNIEXPORT jstring JNICALL Java_javafxapplication_SampleController_printString(JNIEnv *env, jobject envObject)
         string str = "hello JNI";
         jstring jniStr = env->NewStringUTF(str.c_str());
         return jniStr;
    JavaFX Application code:
    JavaFXApplication.java:
    package javafxapplication;
    import javafx.application.Application;
    import javafx.fxml.FXMLLoader;
    import javafx.scene.Parent;
    import javafx.scene.Scene;
    import javafx.stage.Stage;
    public class JavaFXApplication extends Application {
    @Override
    public void start(Stage stage) throws Exception {
    Parent root = FXMLLoader.load(getClass().getResource("Sample.fxml"));
    Scene scene = new Scene(root);
    stage.setScene(scene);
    stage.show();
    * The main() method is ignored in correctly deployed JavaFX application.
    * main() serves only as fallback in case the application can not be
    * launched through deployment artifacts, e.g., in IDEs with limited FX
    * support. NetBeans ignores main().
    * @param args the command line arguments
    public static void main(String[] args) {
    launch(args);
    static{
    System.loadLibrary("JNIHelloWorld");
    SampleController.java file:
    package javafxapplication;
    import java.net.URL;
    import java.util.ResourceBundle;
    import javafx.event.ActionEvent;
    import javafx.fxml.FXML;
    import javafx.fxml.Initializable;
    import javafx.scene.control.Label;
    public class SampleController implements Initializable {
    @FXML
    private Label label;
    private native String printString();
    @FXML
    private void handleButtonAction(ActionEvent event) {
    System.out.println("You clicked me!");
    String str = printString();
    label.setText(str);
    @Override
    public void initialize(URL url, ResourceBundle rb) {
    // TODO
    //String str = printString();
    JavaFXApplication.jnlp file:
    <?xml version="1.0" encoding="utf-8"?>
    <jnlp spec="1.0" xmlns:jfx="http://javafx.com" href="JavaFXApplication.jnlp">
    <information>
    <title>JavaFXApplication20</title>
    <vendor>io839</vendor>
    <description>Sample JavaFX 2.0 application.</description>
    <offline-allowed/>
    </information>
    <resources>
    <jfx:javafx-runtime version="2.2+" href="http://javadl.sun.com/webapps/download/GetFile/javafx-latest/windows-i586/javafx2.jnlp"/>
    </resources>
    <resources>
    <j2se version="1.6+" href="http://java.sun.com/products/autodl/j2se"/>
    <jar href="JavaFXApplication.jar" size="20918" download="eager" />
    </resources>
    <resources os=Windows>
    <nativelib href="JNIHelloWorld.jar" download="eager" />
    </resources>
    <security>
    <all-permissions/>
    </security>
    <applet-desc width="800" height="600" main-class="com.javafx.main.NoJavaFXFallback" name="JavaFXApplication" >
    <param name="requiredFXVersion" value="2.2+"/>
    </applet-desc>
    <jfx:javafx-desc width="800" height="600" main-class="javafxapplication.JavaFXApplication" name="JavaFXApplication" />
    <update check="always"/>
    </jnlp>

    No problem.
    Make sure your resources are set at the proper location. Could be that tje jni.jar is under a 'lib' folder?
    Normally you don't have to worry about deployment a lot if you are using like Netbeans 7.2 or higher.
    When you press 'Clean and build' it creates your deployed files in the 'dist' folder.
    You can change specification by adapting the build.xml file.
    Of course lot of different possibilities are available for deployment!
    You can find lot of info here:
    [http://docs.oracle.com/javafx/2/deployment/jfxpub-deployment.htm|http://docs.oracle.com/javafx/2/deployment/jfxpub-deployment.htm]
    Important to know is if you want to work with
    - a standalone application (self-contained or not)
    - with webstart
    - or with applets
    (In my case I'm using webstart, but also Self-Contained Application Packaging (jre is also installed!)

  • Can Web Start call earlier installed versions on client machine?

    Can Web Start invoke earlier installed versions of the
    JRE on a client machine, without invoking a download?
    I ask because I have tried to so, unsuccessfully,
    using the versions attribute of the j2se element.
    In the usenet thread 'Jar test, with 1.4 VM?',
    Usenet Message ID:
    [email protected]
    http://groups.google.com/groups?selm=1170640609.025666.236030@s48g2000cws.googlegroups.com
    (follow the Google link at the top, to the thread)
    I was attempting to confirm that a Jar file I
    was deploying, was 1.4 compatible.
    The test failed, because despite that the (1)
    user who attempted it had a working 1.4.2 install,
    the JNLP file (which declared version='1.4'),
    was prompting for a download. The user was
    not prepared to do that, understandably -
    that was exactly what I was trying to avoid
    doing, myself.
    Since then, I did further testing locally -
    trying to get a 1.5 launch when my current
    Java is 1.6 - I have a number of 1.5 versions.
    No request for '1.5', '1.5.0_08' or '1.5*' worked
    (OK - that last one was just a WAG*), every time
    I was prompted for download (which also failed,
    as an aside!).
    What am I getting wrong?
    Do I misunderstand the intent of the j2se element
    finding earlier verions? Is it only versions that
    were installed by web start?
    Is my understanding of how to use the version
    attribute, incorrect?
    * Where are the detailed instructions on the
    allowable forms of the version attribute?
    Neither the spec. nor developers guide seem
    to go into it in any detail. Some of the forms
    I have seen around the forum were (AFAIR)..
    <!-- Suggests 1.4 preferred? -->
    version="1.4 1.5+"
    <!-- Suggests 1.4 only? -->
    version="1.4"
    <!-- Suggests 1.4.2 preferred, if microversion
    13+ is found, else 1.5+? -->
    version="1.4.2_13+ 1.5+"FWIW - here is the JNLP I am currently using
    for the test, it is 'live and public'..
    <?xml version='1.0' encoding='UTF-8' ?>
    <!--
    If you see this message in your browser, it means the
    browser is not correctly set up to handle the JNLP file
    type, that launches Java applications within a secure
    environment, that cannot access your computer, or data.
    To get the browser (and PC) correctly set up to handle
    this type of file, visit ..
      http://www.java.com/
    ..to install the free, secure, Java Plug-In made
    by Sun Microsystems.
    -->
    <jnlp spec='1.0'
        codebase='http://www.athompson.info/family/'
        href='thompson-1.4.jnlp'>
      <information>
        <title>Thompson Family Genealogy</title>
        <vendor>Andrew Thompson</vendor>
        <description kind='one-line'>
          The ancestors of William Robert Ramshaw Thompson
        </description>
        <offline-allowed />
        <shortcut online='false'>
          <desktop/>
        </shortcut>
      </information>
      <resources>
        <j2se
          version="1.4"
          href="http://java.sun.com/products/autodl/j2se" />
        <jar href='genj-applet.jar' main='true' />
      </resources>
      <applet-desc
        main-class='genj.applet.Applet'
        name='genealogy'
        codebase='./index.html'
        width='300'
        height='170'
        >
          <param name='GEDCOM' value='thompson.ged' />
          <param name='ZIP' value='thompson.zip' />
      </applet-desc>
    </jnlp>

    Using your tips, I was able to find the 1.5
    JRE's listed in the Java control panel
    (of an XP Pro box) and see they had no
    checkmark for 'enabled'.
    After enabling 1.5.0_08, I was successfully
    able to launch the application (OK - applet
    really) using the 1.5.0_08 JRE.
    Thanks.
    As an aside, I had to specify '1.5.0_08'
    exactly to get that JRE. This is fine for
    local testing, but sometimes it is handy
    to ask others to help test via the web,
    and it would be nice if I could make it less
    specific (e.g. '1.5', to get any installed
    and enabled JRE that is a 1.5 variant)
    Do I understand wrong? Should that work,
    to specify '1.5' and get a '1.5.0_08' JRE that
    is installed and enabled?

  • How to install and register CrystalDecisions.ReportAppServer.Controllers.dll on client machine

    Hi All,
    I have a windows application developed in visual studio 2010 and i have installed Crystal Report CRforVS_13_4 in my development machine. now when i install and try to run the crystal report i gives me below error :
    System.Runtime.InteropServices.COMException (0x80040154): Class not registered - ICRReportPrinterPageRange   at CrystalDecisions.ReportAppServer.Controllers.ISCRPrintReportOptions.AddPrinterPageRange(Int32 rangeStart, Int32 rangeEnd)   at TestApplicationClient.Reporting.PrintReport(String PrinterName, Int32 Copies)   at TestApplicationClient.frmReport.CreateReport()
    i also installed Crystal Report runtime at client side, but the error is still there, and i am also unable to find rystalDecisions.ReportAppServer.Controllers.dll at client machine at "C:\Program Files (x86)\SAP BusinessObjects\Crystal Reports for .NET Framework 4.0\Common\SAP BusinessObjects Enterprise XI 4.0\win32_x86\dotnet"
    please help me in solving this issue.

    PLEASE search first, lots of info and posts on how to deploy CR runtime.
    Don

  • How to capture the IP address of the client Machine.

    HI...
    I want to capture the ip address of the client machine and store it in a field.
    My client wants to capture the ip address so that he can easily trace out from
    which client system particular work is done.
    if there any pre defined function or syntax is there to get the IP address...
    with cheers
    sprity....

    Hi.....
    i have a attached the web_util.pll n web_util.olb and run the form...
    it is still staying web_util.clientinfo is not declared....
    i want to know where to attach the olb thru subclass...
    i tried in attaching the text item(ip_addr) property.After clicking the subclass it show the we_util.olb.
    but there is no value for in it for both object n property.
    i think if i get info on this then my work is done....
    anyone throw a light on my doubt...........
    with cheers
    sprity...

  • Where i find trail version of j2ee engine for client machine.

    Hi,
    I am new bee in sap netweaver . Now i have ecc 5.0 at my office. I need to make WebDyn pro application at my client side. For testing purpose i need to create java environment for running my dynpro applications. So please can any one tell me where i find trail version of j2ee engine for client machine.
    Please explain it and provide me paths where i download environment.
    Regards,
    Gurprit Bhatia

    "(also, my profile says that I'm running OS X 10.4.6, but I'm not really sure, that's just what one of the disks has written on it that came with my used and very cheap machine "
    Click on the blue Apple icon at the top left of your screen and choose About this Mac. That will tell you what your OS version is and what amount of RAM you have. The "More Info" button in the pop-up screen will give you the Apple System Profiler application and that will give you whole bunches of information on the drive space used etc.
    David

  • How to get client machine name and IP address

    Hi,
    In my office I have one SERVER which has FORMS & Report Server installed and all the clients are accessing that application thru the following URL :
    http://OraServer:8889/forms/frmservlet
    to get the machine name I have read into a global variable like this
    SELECT USERENV('TERMINAL' ) into :global.clientname FROM DUAL;
    but obviously all the time its returning the SERVER machine name...not the name where client is accessing the program....so how can I get the client machine name..
    thanks

    Hi Frank,
    Well I am using Developer Suite 10g Release (10.1.2.0.2) ..I've gone thru the link what you have sent me and noticed that whatever updations of conf file or classpath its already there so i guess needn't to modify cause I think my release 10.1.2.0.2 has did already as webutils been bundled with it.
    Well What i did is to double click on ATTACH LIBRARY and browse the location to find webutil.pll and finally attached it...even though its showing me all the procedures like clientinfo and others...
    on my block's canvas I've put a button and used this trigger to get client info function like this.
    when-button-pressed trigger of INFOBUTTON
    DECLARE
    o_clientinfo varchar2(50) := Webutil_clientinfo.GET_HOST_NAME ;
    begin
    message(o_clientinfo);
    end;
    but when I am trying to open this form its simply not showing up..strange thing is that there is no error as well...so plz kindly guide me how to get clientinfo hostname or ipaddress using that library function.
    thanks

  • Tracking hardware inventory of client machines

    hi experts
    Is there any mechanism in oracle forms or other technology( in oracle ) provides to get track hardware status of the client machines.
    or is there any other way to solve this thing.
    pl give me the solution
    Thanks in advande

    What would you like to track?
    Local IP?
    Computer name?
    MAC address?
    what type of information do you need?
    In java you can get some system info with this:
    // Get all system properties
    Properties props = System.getProperties();
    // Enumerate all system properties
    Enumeration enum = props.propertyNames();
    for (; enum.hasMoreElements(); ) {
    // Get property name
    String propName = (String)enum.nextElement();
    // Get property value
    String propValue = (String)props.get(propName); } this is my bean to read some information as PJC bean
    import oracle.forms.handler.IHandler;
    import oracle.forms.properties.*;
    import oracle.forms.ui.*;
    import java.net.InetAddress;
    public class ClientInfo extends VBean {
        private static final ID CLIENT_IP   = ID.registerProperty("CLIENT_IP");
        private static final ID CLIENT_NAME = ID.registerProperty("CLIENT_NAME");
        private static final ID CLIENT_OS   = ID.registerProperty("CLIENT_OS");
        private static final ID CLIENT_USER   = ID.registerProperty("CLIENT_USER");
        private IHandler mHandler;
        private String hostAddress = "";
        private String hostName = "";
        private String hostOs = "";
        private String hostUser="";
        public ClientInfo() {
            try {
                System.out.println("+----------------------+");
                System.out.println("+ClientInfro PJC       +");
                System.out.println("+Dat spr: 10.09.2007   +");
                System.out.println("+Dat spr: 04.07.2008   +");
                System.out.println("+Dat spr: 10.07.2008   +");
                System.out.println("+----------------------+\n");
                this.hostAddress = InetAddress.getLocalHost().getHostAddress();
                this.hostName = InetAddress.getLocalHost().getHostName();
                this.hostOs = System.getProperty("os.name");
                this.hostUser = System.getProperty("user.name");
                System.out.println("Host   adress: " + hostAddress);
                System.out.println("Host     name: " + hostAddress);
                System.out.println("Host op. syst: " + hostOs);
                System.out.println("Host username: " + hostUser);
            } catch (Exception e) {
                System.out.println("Napaka pri inicializaciji beana: " +
                    e.toString());
        public void init(IHandler handler) {
            super.init(handler);
            mHandler = handler;
            System.out.println("Bean initialized..");
        * metoda setira vrednost variable v formsih
        * @return
        * @param pid
        public Object getProperty(ID pid) {
            if (pid == CLIENT_IP) {
                System.out.println("Client IP: " + this.hostAddress);
                return ""+this.hostAddress;
            if (pid == CLIENT_NAME) {
                System.out.println("Client Name: " + this.hostName);
                return ""+this.hostName;
            if (pid == CLIENT_OS) {
                System.out.println("Client os: " + this.hostOs);
                return ""+this.hostOs;
            if (pid == CLIENT_USER) {
                System.out.println("Clientuser: " + this.hostUser);
                return ""+this.hostUser;
            return super.getProperty(pid);
    }You can also get other infor for example "motherboard serial number" as this
    import java.io.File;
    import java.io.FileWriter;
    import java.io.BufferedReader;
    import java.io.InputStreamReader;
    public class MiscUtils {
      private MiscUtils() {  }
      public static String getMotherboardSN() {
      String result = "";
        try {
          File file = File.createTempFile("realhowto",".vbs");
          file.deleteOnExit();
          FileWriter fw = new java.io.FileWriter(file);
          String vbs =
             "Set objWMIService = GetObject(\"winmgmts:\\\\.\\root\\cimv2\")\n"
            + "Set colItems = objWMIService.ExecQuery _ \n"
            + "   (\"Select * from Win32_BaseBoard\") \n"
            + "For Each objItem in colItems \n"
            + "    Wscript.Echo objItem.SerialNumber \n"
            + "    exit for  ' do the first cpu only! \n"
            + "Next \n";
          fw.write(vbs);
          fw.close();
          Process p = Runtime.getRuntime().exec("cscript //NoLogo " + file.getPath());
          BufferedReader input =
            new BufferedReader
              (new InputStreamReader(p.getInputStream()));
          String line;
          while ((line = input.readLine()) != null) {
             result += line;
          input.close();
        catch(Exception e){
            e.printStackTrace();
        return result.trim();
      public static void main(String[] args){
        String cpuId = MiscUtils.getMotherboardSN();
        javax.swing.JOptionPane.showConfirmDialog((java.awt.Component)
             null, cpuId, "Motherboard serial number",
             javax.swing.JOptionPane.DEFAULT_OPTION);
    }or hardisk serial number
    public static String getSerialNumber(String drive) {
      String result = "";
        try {
          File file = File.createTempFile("realhowto",".vbs");
          file.deleteOnExit();
          FileWriter fw = new java.io.FileWriter(file);
          String vbs = "Set objFSO = CreateObject(\"Scripting.FileSystemObject\")\n"
                      +"Set colDrives = objFSO.Drives\n"
                      +"Set objDrive = colDrives.item(\"" + drive + "\")\n"
                      +"Wscript.Echo objDrive.SerialNumber";  // see note
          fw.write(vbs);
          fw.close();
          Process p = Runtime.getRuntime().exec("cscript //NoLogo " + file.getPath());
          BufferedReader input =
            new BufferedReader
              (new InputStreamReader(p.getInputStream()));
          String line;
          while ((line = input.readLine()) != null) {
             result += line;
          input.close();
        catch(Exception e){
            e.printStackTrace();
        return result.trim();
      }Or you can write a DLL in C, C++ and use it in Java with jni..
    Edited by: Peterv6i on Aug 30, 2010 10:58 AM

  • Deployment status sucess but program does not run in client machine

    Hello Guys,
    I have created a package program to Run a batch script Install.bat
    Program Properties:
    Command Line: Install.bat
    Run: Normal
    After Running: No action required.
    Run Mode: Run with administrative rights (Allow interact with users)
    When i deploy this package i see Success in deployment status very soon, But the program doesnot run in client machine.
    Please find my batch script below for more info.(manually installed Install.bat in system context cmd, it works perrfectly )
    Please help me, where am going wrong
    rem ECHO OFF
    SETLOCAL
    SET WORKING=%~dp0
    echo Installing Office 365 pro plus NY package:
    echo ------------------------------------------
    %WORKING%setup.exe /configure %WORKING%install32ny.xml
    IF NOT EXIST "C:\Program Files\Microsoft Office 15\root\" (goto _ExitInstall)
    :_CopyingFile
    echo Copying Script to Office 365 INSTALLDIR:
    echo ----------------------------------------
    XCOPY %WORKING%Pin-Unpin.vbs "C:\Program Files\Microsoft Office 15\root" /C /F
    IF NOT EXIST "C:\Program Files\Microsoft Office 15\root\Pin-Unpin.vbs" (goto _ExitActivesetup)
    reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Active Setup\Installed Components\Office365ProPlusNY" /v "StubPath" /d "cscript.exe \"C:\Program Files\Microsoft Office 15\root\Pin-Unpin.vbs\""
    /t REG_SZ /f
    reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Active Setup\Installed Components\Office365ProPlusNY" /v "Version" /d "1.0" /t REG_SZ /f
    %WORKING%Launch.vbs
    exit /b %errorlevel%
    :_ExitInstall
    echo Aborting Installation:
    echo ----------------------
    echo Office 365 installation failed.
    echo %errorlevel%
    exit /b 3
    :_ExitActivesetup
    echo Aborting Installation:
    echo ----------------------
    echo Activesetup Script error to INSTALLDIR
    echo %errorlevel%
    exit /b 4

    It's just starting the command lines one after the other and after that simply returns a success of starting all the commands.  Two things you should do to successfully use a batch file like this:
    Use start-wait constructions, so the next action won't start before the previous action is finished. For the exact command lines see:
    http://technet.microsoft.com/en-us/library/bb491005.aspx;
    First test the batch file with psexec, to see how it behaves with SYSTEM credentials.
    My Blog: http://www.petervanderwoude.nl/
    Follow me on twitter: pvanderwoude

  • OS X Server files open as read only on client machines.

    Recently, users became unable to save changes to any file on our server or add any file to any folder on our server. The server folders and files are all opening as read only on the client machines. Currently, the users are all assigned to a group, we'll call it "companyusers", this group is granted full read/write access. On the Get Info dialog box for each file on the server, the group "companyusers" is accurately displayed under sharing and permissions with Read & Write privileges, however under the Get Info dialog box for each client machine, the group "companyusers" is non-existent. Only a name titled "(unknown)" and "everyone" is showing up. Any ideas on why the "companyusers" group is not showing up on the sharing and permissions section for the client machines?

    I think I found the fix. Looks like it works in my quick test.
    I read this post here:
    http://discussions.apple.com/thread.jspa?messageID=8278602&#8278602
    Basically in Server Admin, I went to the 'File Sharing Tab' at the top of the window
    Clicked on 'Share points'
    High-lighted my Share Point
    Below in the window, clicked on Share Point
    Clicked on Protocol Options...
    Clicked on SMB
    Clicked on Assign as Follows - and I made everything Read & Write.

  • Opening  a file from client machine

    Hi All ,
    I have a requirement .I need to <b>integrate / Open </b> an .exe file in the portal and this exe file will reside on every on every client machine from which portal is accessed . Can you suggest me some methods . I have tried with URL iview , but it is not working .
    Thanks
    Aneez
    <b>P.S Guaranteed points for helpful answers</b>

    Hi Aneez,
    In the registry the URL(s) that you add are for the source, not target. So you will have something like;
    URL1=http://<portal>:<port>
    of course this would allow any code run from your portal to open exe files without a warning; so you can add the URLs of individual iViews to your registry if you want a bit more control from a security point of view.
    Where you launch the apps;
    javascript:launchApp('c:\windows\notepad.exe c:\autoexec.bat')"
    I think you can only launch one app at a time, here you pass one string containing the paths to two apps, pass one at a time to the launchApp function.
    Also, try adding four '\' characters each time instead of two, one an escape character for the Java compiler and one an escape character for the JavaScript in the browser.
    Temporarily add
    alert(strCmdLine);
    to your launchApp function to see the exact path that the function is trying to launch, make sure that this path contains one and only one '\' character at each point, eg "C:\Windows\notepad.exe". You can also put the
    obj.LaunchApplication(.....
    line in a try/catch block, put an alert in the catch and see if there's a problem with the JavaScript code trying to launch the app or if the problem is elsewhere.
    As far as using XP goes...... I've used LaunchInIE at a few customer sites but I don't think that any were using XP so I can't say that I've seen this working under XP. Perhaps on the WhirlyWiryWeb website you can find some info about whether or not you can expect this to work under XP.
    Perhaps, if there's another PC in or near your office that has access to your portal but doesn't have XP installed you can try it from there yourself and see if your code is working on that machine but not yours with XP installed.
    I hope this helps,
    Patrick.
    Edit.
    Of course if you're running this from some HTML file on your own harddisk and not from the portal for testing purposes then in your registry the URL that you need to add should be localhost, 127.0.0.1.
    Message was edited by: Patrick O'Neill

  • PACKAGE PLSQL to control client machine

    Hi,
    Is there a PLSQL package ( JAVA encapsulated I thing ) to get some informations of client machine or print on client machine using IP address of the machine and/or printer.
    Thanks a lot
    Romeo.

    What client information?
    Remember that the database is a server. It can service any number of very different clients. It can be Delphi, Java, Powerbuilder or C# clients.. or command line clients like SQL*Plus... or developer clients like TOAD, Tora, SQL-Developer... and these clients can be running on Windows, Linux, Unix, Apple Mac.. and they can be using TCP, IPX or even LU6.2.
    Or the client could be a server.. like a Jboss or Weblogic server.. or another database server.
    Etc.
    Do the server need to know anything about the client in order to service the client? The server gets a SQL from a Powerbuilder app on Windows send via TCP. Does this SQL look different from a SQL from a SQL*Plus command line tool on an IBM mainframe, send via LU6.2?
    SQL is SQL. PL/SQL is PL/SQL. And that is what the Oracle server receives and executes. All clients are equal in the eyes of the Oracle server.
    Given this, why would the server need information about the client and why? The Oracle server session (shadow process) that services a client does not need to know anything about the client. No need.
    Even so, when the Oracle client connects, the connection string (from the client) contains some data about the client. This is added to the connection string by the client's Oracle driver (and of course, can be spoofed). This includes information like executable name, o/s user name and so on.
    When the Listener hands off the connection to Oracle (either by starting a dedicated server process or talking to a dispatcher process), it passes this connection data along. This is stored by these processes in the SGA - and can be viewed using the V$SESSION virtual view.
    Client data such as the following is stored as a 'for your information only':
    - Client Operating system client user name
    - Client Operating system client process ID
    - Client Operating system machine name
    - Client Operating system terminal name
    - Client Operating system program name
    The USERENV context can be used to get the client's IP address and Hostname, e.g.
    select SYS_CONTEXT( 'USERENV', 'HOST' ), SYS_CONTEXT( 'USERENV', 'IP_ADDRESS' ) from dual
    That in a nutshell is what client info is kept by an Oracle server process.
    As for PL/SQL code in Oracle using this data..? Yes, it can be useful as long as one remember that the client supplied it, and could have been lying. The data is untrusted data.
    As for using this data to make a connection to the client? Not a good idea. This changes the PL/SQL code into a client, and the client into a server. This can be problematic ito firewalls, network connectivity, security and so on.
    For example, for the PL/SQL to use the client's printer, the code will need to know what type of network shared printer it is. The PL/SQL code may very likely need to authenticate against the client (or a Windows Domain Controller) to access that client's printer.
    This makes the complexity of the PL/SQL (or Java stored procs) all the more complexed.
    Why?
    Surely it is the client application's responsibility and job to serve as interface between the database and the client platform! It is the application's job to take data from the database server and present that to the client. As a graph, shiny table with pretty colours.. or as a printout on the local printer.

  • How to pick wireless physical address of client machine

    Dear memebers,
    Using the follwoing tutorail, I have picked the network card address ( MAC Address ).
    [forms java beans|http://forms.pjc.bean.over-blog.com/article-15985856.html]
    but this code dont' display / return the MAC address of wireless network card.
    the java code is here:
    package oracle.forms.fd;
    import java.net.InetAddress;
    import java.io.InputStream;
    import java.io.BufferedInputStream;
    import java.io.IOException;
    import java.text.ParseException;
    import java.util.StringTokenizer;
    import oracle.forms.ui.VBean;
    import oracle.forms.handler.IHandler;
    import oracle.forms.properties.ID;
         * A Java Bean that returns Client machine info
         * code found on the java forum
         * http://forum.java.sun.com/thread.jspa?threadID=655913
         * @author Francois Degrelle (wrapper)
         * @version 1.1
    public final class ClientInfos extends VBean {
        private static final ID GETINFOS  = ID.registerProperty("GET_CLIENT_INFOS");
        private static final ID GETINFO   = ID.registerProperty("GET_CLIENT_INFO");
        private static final ID Operating = ID.registerProperty("OPERATING");
        private static final ID architecture = ID.registerProperty("ARCHITECTURE");
        private static final ID osVersion = ID.registerProperty("OSVERSION");
        private static final ID IP = ID.registerProperty("IP");
        private static final ID MAC = ID.registerProperty("MAC");
        private static final ID javaVersion = ID.registerProperty("JAVAVERSION");
        private static final ID javaVendor = ID.registerProperty("JAVAVENDOR");
        private static final ID javaVendorUrl = ID.registerProperty("JAVAVENDORURL");
        private static final ID javaHome = ID.registerProperty("JAVAHOME");
        private static final ID javaVmSpecificationVersion = ID.registerProperty("JAVAVMSPECIFICATIONVERSION");
        private static final ID javaVmSpecificationVendor = ID.registerProperty("JAVAVMSPECIFICATIONVENDOR");
        private static final ID javaVmSpecificationName = ID.registerProperty("JAVAVMSPECIFICATIONNAME");
        private static final ID userName = ID.registerProperty("USERNAME");
        private static final ID userHome = ID.registerProperty("USERHOME");
              private     String sInfos = "";
              private     String sOperating = "";
              private     String sarchitecture = "";
              private     String sosVersion = "";
              private     String sIP = "";
              private     String sMAC = "";
              private     String sjavaVersion = "";
              private     String sjavaVendor = "";
              private     String sjavaVendorUrl = "";
              private     String sjavaHome = "";
              private     String sjavaVmSpecificationVersion = "";
              private     String sjavaVmSpecificationVendor = "";
              private     String sjavaVmSpecificationName = "";
              private     String suserName = "";
              private     String suserHome = "";
        private boolean bInit = false ;
        public void init(IHandler handler)
          super.init(handler);
               try {
                  sOperating = System.getProperty("os.name");
                  sarchitecture = System.getProperty("os.arch");
                  sosVersion = System.getProperty("os.version");
                  sIP = InetAddress.getLocalHost().getHostAddress();
                  sMAC = getMacAddress();
                  sjavaVersion = System.getProperty("java.version");
                  sjavaVendor = System.getProperty("java.vendor");
                  sjavaVendorUrl = System.getProperty("java.vendor.url");
                  sjavaHome = System.getProperty("java.home");
                  sjavaVmSpecificationVersion = System.getProperty("java.vm.specification.version");
                  sjavaVmSpecificationVendor = System.getProperty("java.vm.specification.vendor");
                  sjavaVmSpecificationName = System.getProperty("java.vm.specification.name");     
                  suserName = System.getProperty("user.name");
                  suserHome = System.getProperty("user.home");          
                } catch(Throwable t) {
                  t.printStackTrace();
          public Object getProperty(ID pId)
             if(pId == GETINFOS)
                sInfos = "Operating System:" + sOperating ;
                sInfos += "\nOperating system architecture:" + sarchitecture ;
                sInfos += "\nOperating system version:" + sosVersion ;
                sInfos += "\nIP/Localhost:" + sIP ;
                sInfos += "\nMAC Address:" + sMAC ;
                sInfos += "\nJava Version:" + sjavaVersion ;
                sInfos += "\nJava Vendor:" + sjavaVendor ;
                sInfos += "\nJava vendor URL:" + sjavaVendorUrl ;
                sInfos += "\nJava installation directory:" + sjavaHome ;
                sInfos += "\nJava Virtual Machine specification version:" + sjavaVmSpecificationVersion;
                sInfos += "\nJava Virtual Machine specification vendor:" + sjavaVmSpecificationVendor;
                sInfos += "\nJava Virtual Machine specification name:" + sjavaVmSpecificationName;     
                sInfos += "\nUser Name:" + suserName;
                sInfos += "\nUser's home directory:" + suserHome ;
                return sInfos ;
            else if(pId == Operating) return sOperating;  
            else if(pId == architecture) return sarchitecture ; 
            else if(pId == osVersion) return sosVersion ;
            else if(pId == IP) return sIP ;
            else if(pId == MAC) return sMAC ; 
            else if(pId == javaVersion) return sjavaVersion ;  
            else if(pId == javaVendor) return sjavaVendor ;  
            else if(pId == javaVendorUrl) return sjavaVendorUrl ;   
            else if(pId == javaHome) return sjavaHome ;   
            else if(pId == javaVmSpecificationVersion) return sjavaVmSpecificationVersion ; 
            else if(pId == javaVmSpecificationVendor) return sjavaVmSpecificationVendor ;   
            else if(pId == javaVmSpecificationName) return sjavaVmSpecificationName ; 
            else if(pId == userName) return suserName ; 
            else if(pId == userHome) return suserHome ;
             return super.getProperty(pId);
      private final static String getMacAddress() throws IOException {
              String os = System.getProperty("os.name");
              try {
                   if(os.startsWith("Windows")) {
                        return windowsParseMacAddress(windowsRunIpConfigCommand());
                   } else if(os.startsWith("Linux")) {
                        return linuxParseMacAddress(linuxRunIfConfigCommand());
                   } else {
                        throw new IOException("unknown operating system: " + os);
              } catch(ParseException ex) {
                   ex.printStackTrace();
                   throw new IOException(ex.getMessage());
          * Linux stuff
         private final static String linuxParseMacAddress(String ipConfigResponse) throws ParseException {
              String localHost = null;
              try {
                   localHost = InetAddress.getLocalHost().getHostAddress();
              } catch(java.net.UnknownHostException ex) {
                   ex.printStackTrace();
                   throw new ParseException(ex.getMessage(), 0);
              StringTokenizer tokenizer = new StringTokenizer(ipConfigResponse, "\n");
              String lastMacAddress = null;
              while(tokenizer.hasMoreTokens()) {
                   String line = tokenizer.nextToken().trim();
                   boolean containsLocalHost = line.indexOf(localHost) >= 0;
                   // see if line contains IP address
                   if(containsLocalHost && lastMacAddress != null) {
                        return lastMacAddress;
                   // see if line contains MAC address
                   int macAddressPosition = line.indexOf("HWaddr");
                   if(macAddressPosition <= 0) continue;
                   String macAddressCandidate = line.substring(macAddressPosition + 6).trim();
                   if(linuxIsMacAddress(macAddressCandidate)) {
                        lastMacAddress = macAddressCandidate;
                        continue;
              ParseException ex = new ParseException
                   ("cannot read MAC address for " + localHost + " from [" + ipConfigResponse + "]", 0);
              ex.printStackTrace();
              throw ex;
         private final static boolean linuxIsMacAddress(String macAddressCandidate) {
              // TODO: use a smart regular expression
              if(macAddressCandidate.length() != 17) return false;
              return true;
         private final static String linuxRunIfConfigCommand() throws IOException {
              Process p = Runtime.getRuntime().exec("ifconfig");
              InputStream stdoutStream = new BufferedInputStream(p.getInputStream());
              StringBuffer buffer= new StringBuffer();
              for (;;) {
                   int c = stdoutStream.read();
                   if (c == -1) break;
                   buffer.append((char)c);
              String outputText = buffer.toString();
              stdoutStream.close();
              return outputText;
          * Windows stuff
         private final static String windowsParseMacAddress(String ipConfigResponse) throws ParseException {
              String localHost = null;
              try {
                   localHost = InetAddress.getLocalHost().getHostAddress();
              } catch(java.net.UnknownHostException ex) {
                   ex.printStackTrace();
                   throw new ParseException(ex.getMessage(), 0);
              StringTokenizer tokenizer = new StringTokenizer(ipConfigResponse, "\n");
              String lastMacAddress = null;
              while(tokenizer.hasMoreTokens()) {
                   String line = tokenizer.nextToken().trim();
                   // see if line contains IP address
                   if(line.endsWith(localHost) && lastMacAddress != null) {
                        return lastMacAddress;
                   // see if line contains MAC address
                   int macAddressPosition = line.indexOf(":");
                   if(macAddressPosition <= 0) continue;
                   String macAddressCandidate = line.substring(macAddressPosition + 1).trim();
                   if(windowsIsMacAddress(macAddressCandidate)) {
                        lastMacAddress = macAddressCandidate;
                        continue;
              ParseException ex = new ParseException("cannot read MAC address from [" + ipConfigResponse + "]", 0);
              ex.printStackTrace();
              throw ex;
         private final static boolean windowsIsMacAddress(String macAddressCandidate) {
              // TODO: use a smart regular expression
              if(macAddressCandidate.length() != 17) return false;
              return true;
         private final static String windowsRunIpConfigCommand() throws IOException {
              Process p = Runtime.getRuntime().exec("ipconfig /all");
              InputStream stdoutStream = new BufferedInputStream(p.getInputStream());
              StringBuffer buffer= new StringBuffer();
              for (;;) {
                   int c = stdoutStream.read();
                   if (c == -1) break;
                   buffer.append((char)c);
              String outputText = buffer.toString();
              stdoutStream.close();
              return outputText;
    how to pick the wireless physical address?
    Regards:

    Hi !
    our request object, which is available to all the jsp pages can access ip address and host name of client through these calls.
    request.getRemoteAddr()
    request.getRemoteHost()
    Interface "ServletRequest"
    getRemoteAddr ----
    public java.lang.String getRemoteAddr()
    Returns the Internet Protocol (IP) address of the client that sent the request. For HTTP servlets, same as the value of the CGI variable REMOTE_ADDR.
    Returns:
    a String containing the IP address of the client that sent the request
    getRemoteHost
    public java.lang.String getRemoteHost()
    Returns the fully qualified name of the client that sent the request. If the engine cannot or chooses not to resolve the hostname (to improve performance), this method returns the dotted-string form of the IP address. For HTTP servlets, same as the value of the CGI variable REMOTE_HOST.
    Returns:
    a String containing the fully qualified name of the client
    All the Best!
    (Simmy)

  • Error while opening a report in FRstudio client machine.

    Hi,I'm getting below error while opening a report in FRstudio client machine. please help me if any of you resolved this issue earlier.
    client laptop: 64bit windows7
    hyperion version: 11.1.2.2
    error msg:
    "HARSnapin Initialize() Error -2147467259 - ; nested exception is:
         java.rmi.UnmarshalException: error unmarshalling return; nested exception is:
         java.io.InvalidClassException: com.hyperion.reporting.graphics.GridObject; local class incompatible: stream classdesc serialVersionUID = 5432192847655595077, local class serialVersionUID = -5245705824007679661"
    thanks

    I've seen umarshalling error when there is a difference between the client and server version. Is there a patch applied? I would recommend to uninstall the existing one and install if from Workspace. (this will ensure that you've the correct client version)
    Regards
    Celvin
    http://www.orahyplabs.com

Maybe you are looking for

  • Need help in creating webas abap system

    hi new to create jco and techinical system need help experts  i have few faqs on creating techinical system plz help me i have 4.7ee r/3  and portal 2004s  sp9 wer can i find these values plz give me navigation SID ==  ? MESG SEVER PORT ===? to add a

  • Im trying to log onto the internet, but it is not accepting the password. It did for my computer but its not for the ipod. any suggestions??

    I need some help. My ipod was working just fine with logging onto other peoples internet but for some reason i cant anymore. I know that the password is right because it worked with my computer but my ipod just keeps saying fail to connect every time

  • Internet sound issue

    Hi all, I have no idea if I am posting this in the right forum or not. So, feel free to redirect me. I have a 2Ghz PowerPC G5 running OS 10.4.10 with 103GB and change available on the hard drive. I'm having a problem playing websites with sound. When

  • Resizing Image objects to keep inline with JFrame width?

    Hi, just wondering if you had a GUI with an image in it, how you would code an image object to resize itself to keep its scale relative to the JFrame its in, if that frame was being resized by the GUI user? Thanks!

  • Widget problem in IE. Please Help!

    Hello, I have a page the utilizes the "Phatfusion Multibox" widget found in the extensions through Adobe.  After inserting the widget armed with advise from a previous thread I started, everything seemed to be going just fine... that is until I looke