How to execute a "real" VBS command in DIAdem script?

Hello,
I've some troubles to execute specific "real" VBS command lines in DIAdem script: 
e.g.: 
Workbooks.OpenText filname, DataType:=xlDelimited, tab:=True, DecimalSeparator:=",", ThousandsSeparator:="."  
Using other writings as
Workbooks.OpenText(filname, DataType:=xlDelimited, tab:=True, DecimalSeparator:=",", ThousandsSeparator:=".")Workbooks.OpenText filname, "DataType:=xlDelimited", "tab:=True", "DecimalSeparator:=','", "ThousandsSeparator:='.'"  
don't help, I always get error messages. It seams, that DIAdem has problems with recognition of  := .
How can I include such kind of VBS command line in a DIAdem script without getting problems?
Sven

Hi,
thanks for answer, but unfortunately its not over yet.
I tryed the following possibilities:
Set create_tabfile = Excel.Workbooks.OpenText(Filename,,,xlDelimited,,,True,,,,,,,,".",",",,True)Set create_tabfile = Excel.Workbooks.OpenText(Filename,,,xlDelimited,,,1,,,,,,,,".",",",,1) Set create_tabfile = Excel.Workbooks.OpenText(Filename,,,"xlDelimited",,,True,,,,,,,,".",",",,True)  Set create_tabfile = Excel.Workbooks.OpenText(Filename,,,"xlDelimited",,,1,,,,,,,,".",",",,1)  Set create_tabfile = Excel.Workbooks.OpenText(Filename,,,1,,,True,,,,,,,,".",",",,True)Set create_tabfile = Excel.Workbooks.OpenText(Filename,,,1,,,1,,,,,,,,".",",",,1)but always I get some error messages. I assume, that there is just a format error in the command line, may you help me out with some hints, how to do it right?
Regards
Sven

Similar Messages

  • How to execute some code in command line, and read its output?

    I'v found here http://www.sap-advisor.com/abap-coding/how-to-execute-operating-system-commands-from-within-sap/ that I can execute commands from the windows command line for example inside SAP.
    But I want to take it one step further and read its output. is it possible?

    Hi RagnaRock,
    one possible approach can be outputting the results of the command into a text file (i.e. "command >result.txt"), and then read this file from SAP/ABAP.
    I hope this helps. Kind regards,
    Alvaro

  • How to execute IDC services from command line

    Hey Guys,
    is there some way we can execute IDC Services from command prompt.
    your any pointers will be highly appriciated.
    regards,
    sapan
    Edited by: sapan on Mar 9, 2009 7:26 AM

    Hey sapan,
    You can use IdcCommand to execute services from the command line. The process is as follows:
    1. Create a text file with the services calls you want to make, the definitions are in hda format:
    @Properties LocalData
    IdcService=UPDATE_DOCINFO
    dID=1
    dDocName=000001
    dDocType=MyType
    dSecurityGroup=Public
    dRevLabel=1
    dDocAuthor=sysadmin
    dDocTitle=My Title
    @end
    <<EOD>>
    (Note: for multiple entries in the file <<EOD>> is very important)
    2. Execute IdcCommand from the <content server install>/bin directory:
    IdcCommand -f image_update.hda -u sysadmin -l c:\idccommand.log
    Options:
    -f = file with service definitions
    -u = user to run as
    -l (lowercase L) = location for log of execution
    More detailed documentation can be found in the Idc Command Reference (idc_command_reference_10en.pdf).
    Hope that helps,
    Andy Weaver - Software Consultant
    Fishbowl Solutions < http://www.fishbowlsolutions.com?WT.mc_id=L_Oracle_Consulting_amw >

  • How to execute a select statement in unix shell script

    Hi,
    How to execute the below statement in unix shell .
    select count( ID) into v_count from tbl_data1
    where ID =V_ID;
    thanks
    BCJ

    Thanks for the reply.
    few more doubts,
    the V_ID value is a user input getting inside the unix script, so how can i pass the value in to the a.sql.
    also needs the v_count value inside the unix script for further process.actual requirement is like,
    declare
    v_count number;
    begin
    select count( ID) into v_count from tbl_data1
    where ID =$V_ID;
    if v_count>1 then
    process 1;
    else
    process2;
    end if;
    end;
    thanks a lot

  • How to call a HP-UX command or shell script from Forms 4.5

    Does anybody know how to call a unix command or shell script to get a files list of HP-UX server from Oracle Forms 4.5 on client side? I tried to use DBMS_PIPE package to get it done but I failed. Please let me have the solution if anybody knows how. Very urgent!

    I tried the host command before and it just let me shell to the DOS environment but not HP-UX environment as Forms was running on Windows platform. So, I could not run a unix command or a shell script. Is DBMS_PIPE the only way to get it done?

  • How to execute more than one command in a Process

    Hello all,
    I would like to change the user in my application by
    using the unix command su user and then execute some commands as this user.My code is the following, my problem is to execute other commands after execute the su command.
    public static void main(String [] args)
    try
    Runtime r = Runtime.getRuntime();
    String msg = "";
    String emsg = "";
    int len = 0;
    byte buffer [] = new byte[100];
    Process p1 = r.exec(new String [] "su","user"});
    InputStream input = p1.getErrorStream();
    len = input.read(buffer);
    System.out.println(new String(buffer,0,len));
    OutputStream out = p1.getOutputStream(); String password = "password";     
    out.write(password.getBytes());
    out.flush();
    out.close();
    System.out.println(password);
    p1.destroy();
    catch(Exception e)
    System.out.println(e.toString());

    For those of you who are "shell challenged", here's a Java program that will tell you how the shell interprets the command and argument you give it:
    public class RuntimeHelper {
        public static void main(String[] args) {
            for (int i = 0; i < args.length; i++)
                System.out.println(args);
    When you run the program with
    java RuntimeHelper su username -c "cmd arg1 arg2"
    the output is:
    su
    username
    -c
    cmd arg1 arg2
    Each line shows one argument that the shell passed to the java command.

  • How to execute a unix/dos command in Java

    Hi,
    I want to execute dos/unix commands in my java program. Can anyone tell me how to do this. Say I want to restart my httpd daemon using the command: "service httpd restart" or test my httpd.conf file using the command "testparn"
    thanks in advance
    Hugo Hendriks

    hallo,
    test this:
    Process p = Runtime.getRuntime().exec(Your_Programm);
    p.waitFor();
    LineNumberReader lnr = new LineNumberReader(new InputStreamReader(p.getInputStream()));
    Your_Programm must be a shellscript. regard that your java programm must have the right to start the httpd!
    Carsten Bluetner

  • How to execute ODI scenarios from command line in Unix

    Hi Friends,
    I am using ODI 11g.
    I want to execute ODI senarios using the command line argument in Unix.
    Please let me know how to proceed with this.
    Thanks,
    Lony

    Hi,
    unser the /your_ODI_HOME/agent/bin folder.
    Excute this
    sh startscen.sh REFRESH_ID 001 GLOBAL 5 -NAME=agent_ODI
    REFRESH_ID=Your Scenario name
    001:Version
    GLOBAL:Context name
    5=Log Level
    agent_ODI=Your agent name
    Regards

  • How to execute solaris lpd printing command from java code

    hi folk,
    I want to print a post script file on a network printer (my java code will receive the Printer's IP Address and the filename ) , i'm using the solaris lpd printing command :
    lpadmin -p banana_ps -o protocol=bsd,dest=IP -v /dev/null
    -m netstandard -T PS -I postscript
    my question is how execute this command from the java code :)
    i really appreciate ur advices

    Hi,
    See RunTime.getRuntime ().exec (...).
    Hope that help,
    Jack

  • How to execute batch files or command in JSP environment

    Hi,
    I am new to Java in general and JSP too.
    I have an application that uses JSP code i need to make it run or execute a number of batch files that run under command prompt (ms-dos)?
    Can you provide me with sample code on how to do this?

    Simply put, you can't do that.
    (Outputs from executing .BATs can be used in a response strings, though.)
    Learn Java and JSP/Servlet basics.

  • Any ideas on how to execute a DOS prompt command

    I am trying to do the following and need help :
    Step#1 :
    Accepting fields on a screen (which I know how to do)
    Step#2 :
    After editing, when the user presses the Submit button, I want to trigger a command to run in the Dos environment at a command line, then return ??
    Can this be done using Java ?
    Thank you.

    Process is a class in the java.lang.Process package.
    The windows is just a variable that I have to check what is the Operating System running my Java Application.
    You need to look at the API for the Runtime class.
    This class has a method for excecuting commands.

  • How to execute FTP server put command!

    Hi,
    i am uploading a flatfile into the application server using FTP !
    for that i had logged into the respective application server in CMD prompt and
    enter the following statement  ( OS : WINDOWS XP )
    PUT  filepath\filename
    But i am not able to upload the file.
    is it correct ? or am i missing something?
    Thanks,
    Ravi

    Hai Ravi,
       Follow these steps for setting up FTP on Windows XP
    For any Windows workstation to be able to accept FTP connections, an FTP server must be installed and active.
    <b>Windows 2000 and XP</b>
    Setting up an FTP server in Windows XP Professional or in Windows 2000 involves the installation of Internet Information Services (IIS). This suite of Windows components handles all the functions formerly handled by NT's Peer Web Services. IIS, and consequently FTP server capability, is not included in Windows XP Home Edition.
    Note: IIS is known to have serious security flaws and has been targeted by several computer viruses, including Code Red and Nimda. If you install IIS on your computer, UITS strongly advises that you also install any security update patches available from Microsoft. The appropriate patches for Windows 2000 are available at the following URL:
    http://www.microsoft.com/windows2000/downloads/critical/q300972/default.asp
    Microsoft claims that Windows XP already blocks the viruses in question, but you should check frequently for any updates that may be released. See the following site for IIS updates:
    http://www.microsoft.com/technet/treeview/default.asp?url=/technet/prodtechnol/iis/Default.asp
    <b>Installing IIS</b>
    For Windows XP Professional systems running in the default Start menu configuration, click Start, then Control Panel, then Add or Remove Programs. In Windows 2000 (or in XP if it is set to classic Start menu view), click Start, then Settings, then Control Panel, then double-click Add/Remove Programs.
    Note: In Windows XP, the default desktop view and Start menu are quite different than they are in the Windows Classic View (e.g., in Windows 2000). Therefore, navigating to certain items may be different in XP; for example, the path from the Start menu to the Control Panel in the default XP view is simply Start, then Control Panel, whereas in the Classic View it is Start, then Settings, then Control Panel. In the interest of broad applicability, most instructions in the Knowledge Base assume that you are using the Classic View. There are several steps you can take to switch from the Windows XP default view to the Windows Classic View. For more information, see the Knowledge Base document In Windows XP, how do I switch to the Windows Classic View, Classic theme, or Classic Control Panel?
    <b>Click Add/Remove Windows Components.</b>
    Double-click Internet Information Services. This will open another window listing the IIS subcomponents.
    Check the box next to File Transfer Protocol (FTP) Server. The Common Files and Internet Information Services Snap-In boxes will also check by default. Make sure no other boxes are checked, then click OK.
    Note: Windows may prompt you for your Windows CD at this point.
    <b>Configuring the FTP Server</b>
    On the desktop, double-click My Computer, then double-click the hard drive on which you have Windows installed.
    Open the folder inetpub. Right-click the ftproot folder and select Properties.
    Click the Sharing tab. Select the radio button Share this folder, then click Permissions. From the list that appears, select Everyone, and then click Remove.
    Click the Add... button. In the drop-down list, select your computer's name. In the list of user groups that appears in the center scroll box, select Users, then click Add, followed by OK. In the Permissions window, set the access level. If a user only needs to download files from your computer, set the access to Read. To give upload permission, also check Change. Click OK.
    Create User accounts for each of the individuals who will need to access your server. You can do so by opening the Control Panel, then double-clicking the Users and Passwords icon. For each user, you will need to provide a username and domain.
    In the main Control Panel window, double-click Administrative Tools, then double-click the Computer Management icon. A new window will open. On the left, beside Services and Applications, click the + (plus sign), and then click the + (plus sign) beside Internet Information Services.
    Right-click Default FTP server and select Properties. Under "Services", make sure that Allow anonymous connections is not checked. This will prevent unauthorized access to your workstation. Click OK, then close all windows.
    After that,
    Go to cmd.
    type     >ftp
              >open
              >to hostname or ipaddr
              >give uid & pwd
              >put sourceFilename targetFilename
    I hope it will be useful for u..
    Thanks & Regards,
    Gopinathan.T

  • How to Execute a cmd file in my ps script?

    Hi All,
    I have a cmd file which calls an msi and passes paramters. I am calling this deploy.cmd file from a powershell script. How can i achive this? I am trying the following but it does not work.
    Invoke-Command {&
    "D:\deploy\ABC_Installed\ETRM
    (QA)_1.0.7.2\en-us\ABC_QA.cmd"}
    It tends to just print the contents of the cmd but does not execute it. So, is it possible to execute a cmd
    from with in PS, if so, how?
    Walk_Man... Share the joy... 'Propose as Answer' if the post helps.

    Hey mate,
    I get the following error message when i run this,
    $proc
    =
    [diagnostics.process]::Start("cmd.exe",
    "/c"D:\deploy\ABC_Installed\ETRM
    (QA)_1.0.7.2\en-us\ABC_QA.cmd")
    Missing ')' in method call.
    At :line:12 char:53
    + $proc = [diagnostics.process]::Start("cmd.exe", "/c"D <<<< :\deploy\ABC_Installed\ETRM (QA)_1.0.7.2\en-us\ABC_QA.cmd")
    Walk_Man... Share the joy... 'Propose as Answer' if the post helps.

  • How to execute any cmd command from java application?

    Hi all,
    How to execute or call any command of cmd from java application??
    Is there any method to do so??
    Or, is it possible to do it using Runtime.exec() ??? And if so, how to use it, please explain with ab example...
    I'll highly appreciate....
    Thank you.

    If google would be the best option, then I would not be on Sun's forums and I would not have asked experts like you, sir !! :-)
    Neway, I got the solution from PhHein !!
    Good link indeed..
    Cheers..

  • How to execute a cvs command using System Call?

    hi all,
    how to execute a cvs login command using system call ?
    thanks,
    dam

    To anyone that reached this post and still dont have a hint, try this small sample - it logs on CVS using installed CVSNT and execute a fake update:
    package testeCVS;
    import java.io.BufferedReader;
    import java.io.File;
    import java.io.IOException;
    import java.io.InputStreamReader;
    import java.io.OutputStreamWriter;
    import java.io.PrintWriter;
    public class execCMD
        String password="yourPassword";
        String directory="C:\\CVS\\yourPathToProject";
        //send commands to CVS and shows the resulting screen
        public int sendCMD(String[] command) throws IOException, InterruptedException
            ProcessBuilder pb = new ProcessBuilder(command);
            pb.directory(new File(directory));
            pb.redirectErrorStream(true); // merge stdout and stderr
            Process p = pb.start();
            InputStreamReader isr = new  InputStreamReader(p.getInputStream());
            BufferedReader br = new BufferedReader(isr);
            String lineRead;
            StringBuilder buffer=new StringBuilder();
            System.out.println("Return of shell:");
            while ((lineRead = br.readLine()) != null)
                buffer.append(lineRead + "\n");
            System.out.println(buffer.toString());
            return p.waitFor();
        //send commands to CVS, send the password after the prompt and show the resulting screen
        public int sendDialogCMD(String[] command) throws IOException, InterruptedException
            ProcessBuilder pb = new ProcessBuilder(command);
            pb.directory(new File(directory));
            pb.redirectErrorStream(true); // merge stdout and stderr
            Process p = pb.start();
            PrintWriter writer = new PrintWriter( new OutputStreamWriter( p.getOutputStream() ));
            writer.println( password );
            writer.flush();
            InputStreamReader isr = new  InputStreamReader(p.getInputStream());
            BufferedReader br = new BufferedReader(isr);
            String lineRead;
            StringBuilder buffer=new StringBuilder();
            System.out.println("Return of shell:");
            while ((lineRead = br.readLine()) != null)
                buffer.append(lineRead + "\n");
            System.out.println(buffer.toString());
            return  p.waitFor();
        public static void main(String a[]) throws IOException, InterruptedException
            execCMD e=new execCMD();
            String[] command = new String[5];
            command[0] = "cvs";
            command[1] = "-q";
            command[2] = "-d";
            command[3] = ":pserver:yourUserID@localhost:2402/path/of/yourProject"; //in this case using CVS port 2402
            command[4] = "login";
            System.out.println("exit value=" + e.sendDialogCMD(command));
            command = new String[8];
            command[0] = "cvs";
            command[1] = "-q";
            command[2] = "-d";
            command[3] = ":pserver:yourUserID@localhost:2402/path/of/yourProject";
            command[4] = "-n";
            command[5] = "-q";
            command[6] = "update";
            command[7] = "-dA";
            System.out.println("exit value=" + e.sendCMD(command));
    }It is possible to send the password on the same command, but I had problems when the password had the character '@' because CVSNT took it as the separator between the username and server name. In that case the command is: ":pserver:yourUserID:yourPassword@localhost:2402/path/of/yourProject"

Maybe you are looking for