Command line of WinRAR with system Exec.vi

I'm trying to code a program that will RAR a a folder that contains many subfolders with files in them.  WinRAR allows for codes of the command line to send to the WinRAR control via the command prompt (I have it works well).  What I want to do, is to integrate a vi of this code of command via the command prompt line.  I tried to use the Exec.vi system, but with very little luck.  I put the path for winrar tools to attend this repertoire and I used the string "cmd/c" before my entry so that LabVIEW knows that it is a DOS command.  I get an error message that says "'winrar' is not recognized as internal or external, command an executable program or batch file."  I tried to move the codes of the command line at the entrance standard and even winrar on this entry code as well (this one leaves the "cmd/c" as the command to send), still no dice.  Any suggestions would be most useful.  I can provide my code and a list of codes for WinRAR command line if you need it.  Other zip programs would be another option to take that I am open, as long as it can be controlled in the environment LabVIEW and the compression is the best.

Thanks in advance!

A

smercurio,

Thank you!  It really worked.  What I had to do to get this working was to modify the command enter exec system vi.

This is what it looks like:

""  "

Thanks again!  This will save a lot of time for me!

The great thing here I learned was the removal of the cmd /c for this.

A

Tags: NI Software

Similar Questions

  • Using FTPClient on a real time with system Exec.vi

    How can I tell FTPClient.exe address target when I start this executable with system Exec.vi in Labview?  I don't want to reinvent the file FTP utility used by MAX with targets in real time. I want to run this executable to a labview support utility without using MAX to do.

    Is this possible?

    Danny

    Thanks for the info.  Your "bad mood" response "suggests" a response to my question.  However, the full answer to my original question is that it is not possible to use FTPClient.exe outside MAX.  It is therefore not possible to spend in the address target at run time if the FTPClient.exe runs external to MAX.  FileZilla is a good choice - there are also other FTP clients out there, but you pointed out a solid choice.  Thank you.

  • Problem: Using the command 'msg' with 'system Exec.vi.

    I try to write to the LabView code that takes advantage of the 'Exec.vi System '. For the moment, I have tried to use it to ping machines, return the command ipconfig and run through the code example that provides NEITHER.

    I would use the "msg" command used on Windows operating systems to send a message to several machines on our network at a time. Warning that we're about to update a program and that they should disconnect, things like that.

    I tried to use the command 'msg' LabView maintains return errors. I also wrote a quick command as follows file:

    @echo we
    CD c:\Windows\System32\
    Msg.exe /server:localhost * test

    When I run the batch of windows, it runs. When I launch from LabView (using the Exec.vi system), it fails.

    Potential quirks:

    I discovered in a different place under a machine to receive these messages they need to have a registry entry:

    "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal Server" and have a DWord value called "AllowRemoteRPC' = 1.

    Note that "/ Server: localhost" might be "/ server: anycomputer" and the "*" is used as a wildcard character that sends a message to anyone who is connected to this computer. Also note that the 'test' is the message to send.

    Any ideas why I'm having a problem?

    TL; Dr.: "System Exec.vi" does not have the command "msg". Why is this?


  • Upgrade command-line VCenter fails with incorrect path in VCDatabaseUpgrade.exe

    I worked on a powershell script to upgrade the server vCenter (example below). I can upgrade the SS and the Service of inventory without any problem, but vCenter fails during the database upgrade step.

    Error:

    vcenterupgradeerror.png

    VC details:

    Windows Server 2012 R2 Standard

    8 GB RAM

    4 x Intel Core i7 960

    vCenter 5.5 build 1378901 installed (Yes, I copied the file OCSetup.exe and installed the ADLDS feature before installation).

    Cluster SQL

    Script I run below:

    
    
    
    
    Write-Host "Upgrading vCenter"
    
    
    
    $vCPath = "$InstallSource\vCenter-Server\VMware-vcserver.exe"
    
    
    
    $processInfo = New-Object System.Diagnostics.ProcessStartInfo $vCPath
    
    
    
    $processInfo.arguments = "/S /v`" /qr DB_EXISTING_VERSION=550 DB_USERNAME=$AdminUser DB_PASSWORD=$AdminPass LAUNCHWIZARD=1 VCS_DB_BACKUP=1 SSO_ADMIN_USER=$AdminUser SSO_ADMIN_PASSWORD=$AdminPass /L*v $env:temp\vmvcsvr.log`""
    
    
    
    $processEXE = New-Object System.Diagnostics.Process
    
    
    
    $processEXE.StartInfo = $processInfo
    
    
    
    $processEXE.Start() | Out-Null
    
    
    
    $processEXE.WaitforExit()
    
    
    
    
    
    
    
    
    
    if ($processEXE.ExitCode -ne 0) {
    
    
    
    
    Write-Host "The error code is:" $processEXE.ExitCode "Exiting!"
    
    
    
    
    exit
    
    
    
    }
    
    
    
    
    
    

    I have also included the vminst.log file.

    The log file and the screenshot show the wrong file path (missing one ' \') characters in the path. Any thoughts?

    I did some digging in the vmvcsr.log file and noticed that it changed the SetupDir and the SETUPEXEDIR to Z:\vCenter-Server instead of Z:\vCenter-Server\

    I added the SETUPEXEDIR = and SetupSource = command line options and the installer still changed their return. "So, I removed the v'" and put the directories all in escaped quotes. This solves the problem.

    I still think that the installer must put the correct path on its own source dir facility. It should be smart enough for that!

    Here's the line Arguments that worked:

    $processInfo.arguments = "/S /qr SourceDir=`"$sourceDir`" SETUPEXEDIR=`"$sourceDir`" DB_EXISTING_VERSION=550 DB_USERNAME=`"$AdminUser`" DB_PASSWORD=`"$AdminPass`" LAUNCHWIZARD=1 VCS_DB_BACKUP=1 SSO_ADMIN_USER=`"$AdminUser`" SSO_ADMIN_PASSWORD=`"$AdminPass`" /L*v $env:temp\vmvcsvr.log"

  • sqlplus connects well with SID on the command line, but not with setora

    I can connect to my database using sqlplus if I specify the SID on the command line; However, I get an error if I try to connect after using setora to set the SID. Any ideas on why this is happening?

    Oracle version is 10.2.4.0
    OS is SunOS 5.9 Generic_122300-46 sun4u sparc SUNW, Sun-Fire-V490
    MYDB resides on a host machine that is different from the one where I'm under sqlplus. We'll call this REMOTEHOST machine.
    I am sure that MYDB is running on REMOTEHOST
    MYUSER@MYHOST% setora MYDB
    MYUSER@MYHOST% sqlplus MYUSER
    
    SQL*Plus: Release 10.2.0.4.0 - Production on Mon Mar 8 09:38:58 2010
    
    Copyright (c) 1982, 2007, Oracle.  All Rights Reserved.
    
    Enter password:
    ERROR:
    ORA-01034: ORACLE not available
    ORA-27101: shared memory realm does not exist
    SVR4 Error: 2: No such file or directory
    
    
    Enter user-name: ^C^C
    MYUSER@MYHOST% sqlplus MYUSER@MYDB
    
    SQL*Plus: Release 10.2.0.4.0 - Production on Mon Mar 8 09:39:10 2010
    
    Copyright (c) 1982, 2007, Oracle.  All Rights Reserved.
    
    Enter password:
    
    Connected to:
    Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bit Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    
    SQL> quit
    Disconnected from Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bit Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    Oracle environment variables:
    MYUSER@MYHOST% env | grep -i ora
    PATH=/u01/home/bin:/u01/app/oracle/product/10.2.0/OPatch:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/opt/lib/cobol/bin:/usr/ccs/bin:/opt/SUNWspro/bin:/banvol/uncg/bin:/etc:/usr/openwin/bin:/opt/hsqr/ora/bin:/opt/hsqr/jre/jre141/bin:/u01/app/oracle/product/10.2.0/bin
    SQRDIR=/opt/hsqr/ora/bin
    LD_LIBRARY_PATH=/usr/ccs/lib:/opt/lib/cobol/lib:/opt/SUNWspro/lib/v9:/opt/SUNWspro/lib/v9:/opt/SUNWspro/lib:/u01/app/oracle/product/10.2.0/lib:/opt/hsqr/ora/bin:/opt/hsqr/jre/jre141/lib/sparce/native_threads:/opt/hsqr/jre/jre141/lib/sparc/client:/opt/hsqr/jre/jre141/lib/sparc:/u01/app/oracle/product/10.2.0/lib32
    ORACLE_BASE=/u01/app/oracle
    ORABIN=/u01/home/bin
    OWB_HOME=/u01/app/oracle/product/owb102
    ORACLE_SID=MYDB
    ORACLE_HOME=/u01/app/oracle/product/10.2.0
    TNSNAMES entry:
    MYDB =
      (DESCRIPTION =
        (ADDRESS_LIST =
          (ADDRESS = (PROTOCOL = TCP)(HOST = REMOTEHOST)(PORT = 1521))
        )
        (CONNECT_DATA =
          (SERVER = DEDICATED)
          (SERVICE_NAME = MYDB.MYDOMAIN.COM)
        )
      )

    TWO_TASK = MYDB
    Export TWO_TASK

  • Need the command line to restore the system to the Task Scheduler in Windows 7

    The task in the Task Scheduler to run the regular restore points has been removed. I need to re-create the task.

    I know that all settings other than the delivery of the program and options. That's what I need.

    It comes a host of Windows 7 Ultimate 64-bit.

    Thank you.

    For the record, I found the answer myself. It is within an article that lists as scheduled tasks in Vista. The KB is:

    http://support.microsoft.com/kb/939039 , "Description of the scheduled tasks in Windows Vista". The command line that I needed is:

    %windir%\System32\rundll32.exe c:\windows\system32\srrstr.dll, ExecuteScheduledSPPCreation

  • SDK Beta 3 command line compile errors with code QNXStageWebView

    Any help appreciated: this code compiled perfectly with Beta 2:

    import flash.display.Sprite;
    import flash.events.MouseEvent;
    import flash.filesystem.File;
    import flash.geom.Rectangle;
        
    Import qnx.media.QNXStageWebView;
    Import qnx.ui.buttons.LabelButton;
       
    [SWF (width = "1024" height = "600", backgroundColor = "#333333", frameRate = "30")]
    SerializableAttribute public class extends Sprite Complete
    {
            
    private var webView:QNXStageWebView = null;
            
    public void Rollback()
    {
                
              
    webView = new QNXStageWebView();
    webView.stage stage =;
    webView.autoFit = true;
    webView.viewPort = new Rectangle (0,0,stage.stageWidth,stage.stageHeight-50);
    webView.enableJavascript = true;
    webView.enableScrolling = true;
    webView.useCache = true;

    ..... }

    but with the beta 3, we get a lot of errors like this:

    amxmlc Complete.as

    Col: error 12: property may not set auto adjustment through a reference with static type qnx.media:QNXStageWebView.

    webView.autoFit = true;

    and once again for each of the other properties webView.  What should do?

    The QNXStageWebView class previously entirely undocumented has changed (as everyone should have expected).  Fortunately, there are actually the documentation for it now in new documents online.  First check here and update your code and see if it works again (it did for me).

  • WinRAR command line tools do not check an executable Windows Server 2012

    Hi all

    I have developed a VI in LabVIEW 8.6 using WinRAR command line tools (passed in the Exec.vi system) to archive data that takes place on 5 different computers on a network and stores on a server .rar files.  Executable file of the VI works perfectly on my computer (WinXP) development.  The data from each of the 5 machines are archived and .rar files are stored on the server.  However, when I move the executable on the server where the .rar files will be stored and run the executable file, the command window flashes on the screen as if WinRAR commands are running, but no data is archived on the server.  No errors are passed out of the Exec.vi of the system.  The server's operating system is Windows Server 2012 and I placed the Rar and UnRAR .exe in the folder system32 on the server.  The server firewall is disabled, and he is able to explore at the location of the data to arhived.  The server is logged in as a domain administrator account.

    Here is an example of one of the commands in command line that I spend in the Exec.vi system:

    cmd /c rar a - m5 \\selsacn11\viscom\selsvis01\15\07\20.rar \\selsvis01\Rep0\Archiv\15\07\20

    When I manually type this command in the command line on the server, the data is stored properly.  The problem occurs when I run the executable on the server.

    I tried to work around the problem by creating a batch of files containing the command above, then using the Exec.vi system to call this batch file.  Yet once, when I manually run the batch file, it works correctly, but when Exec.vi system in a LabVIEW executable file runs the command on the server file, I get the same result as described above - no data are archived on the server.  This batch file works on my development computer and on my laptop to the company.

    My only thought is that there is a problem with the access rights.  So far, the executable works fine on an older server (Windows Server 2003), the development computer (Win XP) and my laptop (Win7) company, but the executable archive not the data on the Server 2012 server or on another computer running WIndows 7.  I have all these machines connected under the same domain administrator account, but COMPUTER networks are certainly above my head, so I wanted to check here if anyone has seen this problem with WinRAR or the Exec.vi system.

    Thanks for any info!

    Success!

    Darin, I took your suggestions and after some more fighting with him, I have an error Code 2 on the Exec.vi system.  This led me in search of the forums where I fell on the following:

    http://forums.NI.com/T5/LabVIEW/problem-using-quot-MSG-quot-command-with-quot-system-exec-VI/m-p/153...

    Of course, all the machines that had been able to run the executable file are 32-bit.  All the machines that could not run the executable are a 64 bit system.  I placed the Rar.exe in the C:\Windows\SysWOW64 folder on the server and it works exactly as expected today.

    I fought with this for weeks, so I'm a little disappointed that it was something so simple, but I'm very happy to have finally work!

    Thank you all very much for the help!

  • MacOS OVFTool command line syntax

    Make mistakes of command line trying to export a VM Fusion (XP.vmwarevm) and the OVF file.

    # "/ Applications/VMware OVF tool/ovftool ' XP.ovf Machines/XP.vmwarevm

    Error: Is a directory

    #

    My feeling, if this ovftool help and the manual ovftool without providing simple examples that relate to the use of Mac/Fusion.

    VMware ovftool 3.0.1 (build 801290)

    VMware Fusion Professional Version 5.0.1 (825449)

    Mac OS X 10.7.5

    XP.vmwarevm is a single VM (the vmdk is integrated) created with 5.0.1 defined as 5 + compatible.  Have you tried 2-3 + compatible, too.

    If I run the ovftool by himself, he replied:

    Error: No source or target specified. Try 'ovftool --help' for more options.

    Completed with errors

    If execution helps ovftool - the upper part of the output shows:

    Usage: ovftool [options] []

    where

    : Source URL locator to an OVF package, VMX file, or virtual machine in

              vCenter or on ESX Server.

    : Destination URL locator which specifies either a file location, or a

              location in the vCenter inventory or on an ESX Server.

    If is not specified, information about the source is displayed to the

    console.

    The lower part of the output States:

    For more help, type: --help , where topics are:

    locators    : For detailed source and destination locator syntax

    examples    : For examples of use

    config      : For syntax of configuration files

    integration : For a list of options primarily used when ovftool is exec'ed

                   from another tool or shellscript.

    If it running ovftool - examples of help to the following example shown is applicable:

       ovftool /vms/my_vm.vmx /ovfs/my_vapp.ovf

       (.vmx file to .ovf file. Result is put in /ovfs/my_vapp.[ovf|vmdk])

    So as you can see, you need to point to the .vmx configuration file not the .vmwarevm Virtual Machine package.

    FusionH3 wrote: XP.vmwarevm is a single VM (the vmdk is built)

    By default the .vmwarevm extension is hidden and is a Virtual Machine package which is really nothing more then a folder, not an individual file, and because it is recorded with OS X Launch Services he treated differently then a file without the extension.

    Take a look on work with Virtual Machine packages , and then use the FQPN (full name path) to the .vmx configuration file for the .

    For example, here is the (fully qualified command line) FQCL on my system to create a .ovf file and the result.

    Computer:~ WKZ$ /Applications/VMware\ Fusion.app/Contents/Library/VMware\ OVF\ Tool/ovftool /Users/WKZ/Documents/Virtual\ Machines.localized/Windows\ XP\ Professional.vmwarevm/Windows\ XP\ Professional.vmx /Users/WKZ/Documents/Virtual\ Machines.localized/WinXP\ OVF/WinXP.ovf

    Opening VMX source: /Users/WKZ/Documents/Virtual Machines.localized/Windows XP Professional.vmwarevm/Windows XP Professional.vmx

    Opening OVF target: /Users/WKZ/Documents/Virtual Machines.localized/WinXP OVF/WinXP.ovf

    Writing OVF package: /Users/WKZ/Documents/Virtual Machines.localized/WinXP OVF/WinXP.ovf

    Transfer Completed                   

    Completed successfully

    Computer:~ WKZ$

    Research the " WinXP OVF " folder there are now three files, WinXP-disk1.vmdk , WinXP.mf and WinXP.ovf . "»

    That about covers it!

  • Command-line SQL appears then disappears

    I just installed the version 11g yesterday and I don't get a good start; can't run SQL command line.

    When I run the SQL command line (programs > Oracle Database 11g eXpress Edition > SQL command line) it appears for about a second then disappears
    SQL command line worked well during my first installation of Oracle Database 11 g eXpress Edition and I was able to connect as 'SYSTEM', but not after the reboot.

    Goes the same for the webpage to start; Now I get 'could not connect to 127.0.0.1:8080' when I go to programs > Oracle Database 11 g eXpress Edition > Get Started.
    Database of departure seems to work OK.

    When I run SQL * longer or Oracle SQL Developer, I get "ORA-12154: TNS: could not resolve the connect identifier specified" so this isn't really an option right now.

    Any thoughts on how to get the SQL command line work? Operating system is Windows XP, 32-bit.

    OracleServiceXE Windows service is started?

    From the command prompt:

    sqlplus / as sysdba

    SQL > startup

  • How to generate the report object list of command line BACK under 10g

    In the past, under 6i. I was able to generate a list of object using IFCMP60report. How do I get 10g?

    Thank you

    I guess it works as it does under 6i with the difference that the forms compiler renamed in frmcmp

    So (not tested) is the setting of forms_doc ?

    And by the way: you can display all available command line and switches with

    frmcmp help=Y
    

    This has also worked in 6i (help ifcmp60 = Y)

    see you soon

  • command-line exec VI entry system

    I'm evaluating a temperature probe. For this I must watch the thermocouple readings. Thermocouple is attached to the FP-TC-120 of temperature module. Moreover, I have to acquire data from the optical spectrum analyzer. I use 3650.VI to monitor the temperature and 86140 Trace_Screen Capture (2) B .llb o trace data of OSA. I want to combine these two screws and automate the process. I tried to use "invoke the node" to the call of the VI that traces the Spectrum Analyzer data, but I came face to face with the problem that I have explained in the link below. http://forums.NI.com/NI/board/message?board.ID=170&thread.ID=405775 if you can solve this problem using VI, I really appreciate it. Then another solution came to my mind. I set the screw inside the .llb as an executable file. But then I had trouble with the line of the system control ' exec.VI '. I got either error #267 or #2 despite the fact that I spelled the file path whenever I run the code. (annex 3650.VI) What should be the exec System command line input. VI? I should write cmd.exe or the path as a command line entry? (I'm using Labview 8.2)

    Thank you very much

    Answer in another thread.

    This thread should be closed.

  • Call a visual basic executable file with arguments command line using LABView

    Hi all

    I try to call a visual basic executable file with a command line using LABView 2014 argument. What I'm trying to accomplish executes an executable file that communicates with a device via a COM port. So, I would open the .exe with a command line argument to communicate via com 3 using the SYSTEM Exec VI. It seems that the command prompt window flashes and closes and then nothing happens. Not a lot of discussions about this on the forum. Any help would be greatly appreciated. Thank you.

    With some programs, instead of passing in the string:

    Somefile.exe

    Instead, you can use:

    cmd /c "C:\Full Path\to the EXE\Somefile.exe"

    Can you tell us what exactly you are trying to run?

  • Deployment of final application with the command line Question

    OK so I have my finished application.

    on a folder in my office called "CODBOUG".

    So I tried different methods to run the application and complete the test on the Simulator with the command line. But it's just too much. So I need your help community!

    I tried:

    BlackBerry-deploy-installApp-package CallofDutyBlackOpsUltimateG

    uide.bar - device 192.168.18.128

    I'm a little lost with the help of the command line, if someone could guide me on the right lane.

    I'm on windows, btw.

    Thank you.

    When you run a command, Windows will search in a series of directories for this program to run. The list of directories is stored in what is called an environment variable. You must add the path to the bin of the sdk at this variable directory (e.g. C:\Program Files (x 86) \Adobe\Adobe Flash Builder Burrito\sdks\blackberry-tablet-sdk-0.9.3\bin).

    You can access the path variable by right-clicking on my computer > properties. Select the Advanced tab and click on approx. Variables.

    Under System Variables, search PATH and edit it. Add the path to the sdk bin directory (make sure that there is a semicolon, that separates the directories).

    Open a command line window in the directory where your .bar file. When you run the command, Windows will look for blackberry - deploy and can be found in the directory that you have added to your PATH variable so to run it.

  • How to get the MAC address of the additional 10G NIC with command-line ILO

    How to get the MAC address of the additional 10G NIC with ILO command line?

    Thank you.

    Hi Bruce,.

    Out of what I can find on this network card is not available for the Mac without an operating system. I recommend get/burning a live CD/DVD of Ubuntu/Linux and run an Ifconfig in there.

    Hope this helps you.

Maybe you are looking for

  • Compaq Presario SR5605UK: WINDOWS 10

    Hi, actually I bought a downloadable version for windows 10, and I was wondering how can I do to set this up? I have a Compaq Presario SR5605UK sound very old desktop PC, and when I put my disk in my computer, I press the name of the file, it says th

  • January 8 new update for XBR65X900A PKG4.101AAA

    Just turned on the television and was informed of a new software update is available. PKG4.101AAA said that it was to improve reliability problems. A only took a minute or two to complete. Someone has an idea of what it improved or fixed? With THESE

  • laptop 15 - ac0 39TU: driver problems

    I installed Windows 10 yesterday, but after the installation, I found problems... as I installed the new bluetooth driver but this isn't the Device Manager, and I can't use bluetooth now... 2nd problem is I installed the wifi also drivers but still w

  • Can I update or as I unupdate faster

    Can I update or as I unupdate faster

  • Cannot uncheck the installation options

    Hello When you try to download the latest version of Skype, the installation window is too small and I can't uncheck options for default search engine BING, etc.. You cannot resize this window either. Anyone know a solution to this? Thank you