The command line redirection

Hello

I wrote a simple command line batch file that needs to compress a file using 7 - zip.
This work is great!
However, now I need to do the following:
-Once the first command line has created archive compressed (using 7 - zip), I have to compress this file again.
My problem is the following:
1. I don't know how to tell windows to wait that the first line of the command is complete.
2. take the name of the file to archive and redirect/inject into another command line.
I know I have to use the redirect command but<& or="">< or="" anything...="" there="" i'm="" lost...="">
could you help me?
THX

Hi Alain,

The issue of Windows is more complex than what is generally answered in the Microsoft Community Forums. Appropriate in the TechNet Forums. Please post your question in the TechNet Forums.

You can check the link to post your question:

http://social.technet.Microsoft.com/forums/en-us/category/scripting

I hope that helps!

Tags: Windows

Similar Questions

  • The application has failed to start because its side-by-side configuration is incorrect. See the application event log or use the command-line sxstrace.exe for more details

    Hello

    I can t open Google Earth or Microsoft Office programs because I get this message - the application could not start because its side-by-side configuration is incorrect. Please see the application event log or use the command-line sxstrace.exe for more details.

    A few days ago I could open all what programs. I put t know what is the problem.

    I did sxstrace and that's what I have-

    =================
    Launch the activation context generation.
    Input parameter:
    Flags = 0
    ProcessorArchitecture = Wow32
    CultureFallBacks = en-US; en
    ManifestPath = C:\Program Files (x 86) \Google\Google Earth\client\googleearth.exe
    AssemblyDirectory = C:\Program Files (x 86) \Google\Google Earth\client\
    Application configuration file =
    -----------------
    INFO: File analysis shows C:\Program Files (x 86) \Google\Google Earth\client\googleearth.exe.
    INFO: Manifest definition identity is (null).
    INFO: Reference: Microsoft.VC80.CRT, processorArchitecture = "x 86" publicKeyToken = "1fc8b3b9a1e18e3b", type = "win32", version = "8.0.50727.4053"
    INFO: Resolving reference Microsoft.VC80.CRT, processorArchitecture = "x 86" publicKeyToken = "1fc8b3b9a1e18e3b", type = "win32", version = "8.0.50727.4053".
    INFO: Resolving reference for ProcessorArchitecture WOW64.
    INFO: Resolving reference for the neutral culture.
    INFO: Application binding policy.
    INFO: No found publisher policy.
    INFO: No redirect political connection is found.
    INFO: Start the detection of assembly.
    INFO: Can't find the assembly in WinSxS.
    NEWS: Try to detect manifest to C:\Windows\assembly\GAC_32\Microsoft.VC80.CRT\8.0.50727.4053__1fc8b3b9a1e18e3b\Microsoft.VC80.CRT.DLL.
    INFO: Found no manifesto for the neutral culture.
    INFO: End detection of assembly.
    INFO: Resolving reference for ProcessorArchitecture x 86.
    INFO: Resolving reference for the neutral culture.
    INFO: Application binding policy.
    NEWS: Control strategy of the Publisher C:\Windows\WinSxS\manifests\x86_policy.8.0.microsoft.vc80.crt_1fc8b3b9a1e18e3b_8.0.50727.5592_none_517247830f45081d.manifest
    INFO: Start the detection of assembly.
    INFO: End detection of assembly.
    ERROR: Activation context generation failed.
    End activation context generation.

    Help, please!

    This type of error can be caused if the Visual C++ library runtime components are missing or because of a third-party software.

    Follow the steps below:
     
    Method 1:
    If the problem is caused by the lack of Visual C++ libraries, you can download and install the Runtime components of Visual C++ libraries from the link below:
     
    This error can occur when the Microsoft .NET Framework installation on the computer is damaged or is missing.

    Try it out below step to reinstall and repair installation of Microsoft .NET Framework on the computer, then check if you can install the software.

    (a) click the Start button, select Control Panel, click programs and then click on 'Turn Windows has or not.' If you are prompted for an administrator password or a confirmation, type the password or provide confirmation.

    (b) search for Microsoft .NET framework 3.5.1 uncheck, click OK and restart the computer.

    (c) after the reboot, open again "Turn Windows features on or off" and place a check next to Microsoft .NET framework 3.5.1 and restart the computer.

    Step 2

    If the previous step fails, then I suggest that you manually download and install Microsoft Visual C++ 2005 and 2008 Redistributable Package and check to see if you can install the software.

    In programs and features, you do not show that you have installed Microsoft Visual C++ 2005 Redistributable and Microsoft Visual C++ 2008 Redistributable? If this is not the case, download the links here.
     
    Package redistributable Visual C++ 2005 (X 86)
     http://www.Microsoft.com/downloads/en/details.aspx?FamilyId=32BC1BEE-A3F9-4C13-9C99-220B62A191EE&displaylang=en
     
    Visual C++ 2005 (x 64) redistributable package manager
     http://www.Microsoft.com/downloads/en/details.aspx?FamilyId=eb4ebe2d-33c0-4A47-9dd4-b9a6d7bd44da&displaylang=en

    Package redistributable Microsoft Visual C++ 2008 (x 86)

    http://www.Microsoft.com/downloads/en/details.aspx?FamilyId=9B2DA534-3E03-4391-8A4D-074B9F2BC1BF&displaylang=en

    Package redistributable Visual C++ 2008 SP1 (x 64)
     http://www.Microsoft.com/downloads/en/details.aspx?FamilyId=BA9257CA-337F-4B40-8C14-157CFDFFEE4E&displaylang=en

    I hope this helps.

  • Hello, how is it possible to create the FAT32 BOOTCAMP on CoreStorage partition via the command line interface?

    Hello, how is it possible to create the FAT32 BOOTCAMP on CoreStorage partition via the command line interface?

    I mean ' diskutil cs * " and so on..."

    Yes, you must use the resizeStack command. Please see Re: how to repair fsck "your drive could not be partitioned..." Bootcamp does not as an example.

  • How to reset Firefox from the command line (without a mouse) on Linux?

    I use Firefox for automated desktop screenshots xvfb virtual. There is no mouse. So I need to reset Firefox from the command line. Uninstall a re - install led again to the window "reset".
    I use Ubuntu Server Edition 13.04.

    Otherwise, without a keyboard and a mouse, you can just reinstall and delete. / mozilla folder.

  • How can I enter in the start page of the command line "firefox.exe"?

    I want to write a script to use firefox to download information about a series of addresses on a street. For example: 101 State St, 102, 103 State St State St,... etc. The script will travel addresses and streets, on interest. Firefox.exe accepts command line parameters that define a web page specific and data to be filled in this page?

    You can start Firefox to open a specific web page or a local file by adding the url to the command line, but you cannot specify the data to display, unless these data does not appear in the page source.

  • 10.11.5 only stops the command line

    I have an iMac late 2013 and since the public beta 1, up to the final version of the published 10.11.5 today, my computer just stops or restarts from the command line. There is no problem on 10.11.4.

    Please, what can I do?

    Quit all applications and then disconnect all external devices except the mouse and keyboard and try a stop

  • How to reduce or hide the webroot toolbar upward under the command line?

    Browser = Firefox; Virus program = Webroot security; on the firefox browser, a white line will appear on the command line, followed by the logo of webroot with 'tools webroot' my webroot and 'sign-in '. can it be lost. the Explorer windows or chrome show these. It's a waste of screen for me.

    I should have mentioned that you could click next to the menu, the '+' (new tab) button or in a box empty after the address button to access the pop-up window and turn off the display of the individual toolbars on and outside. It works with the Webroot toolbar?

  • 10.11.4 update has failed because of the command line tools

    The 10.11.4 update fails with a message on the command line tools.

    I found this in system.log.

    Memento kernel [0]: sandbox: softwareupdated (329) deny system (1) - 682f fsctl

    181Mb Command Line Tool for Xcode 7.3 keeps reappearing in the section "updates" from the App Store, 10.11.4, as well as the global update apparently cannot continue.

    Normally, you should be able to select the updates separately (click on "More... »). If this does not work for some reason, you can download the 10.11.4 update by itself: download OS X El Capitan 10.11.4 updated

    (Combo version: Download OS X El Capitan 10.11.4 Combo Update)

  • How to list the devices and the format of the command line?

    Hello

    Is there a guide reference CLI or procedure to the list of devices and devices from the command line format but also create volumes? I get failures from the GUI without specific error or log messages, said just that the volume creation failed.

    The Setup is as follows

    Flex-Raid RAID5 3x160GB Bay 1-3 devices with an SSD shore in Bay 4, I want to create a new volume on the SSD drive. I should be able to do this with Flex-RAID as I understand.

    I could solve this problem. I ended up restarting the NAS and the volume was recognized and usable.

  • Is there a Bluetooth utility available on the command line

    Is there a bluetooth utility available at the command line, which would allow something as "bluetooth " to send a file that is specific to a specific phone?

    Thank you!

    I'm afraid I can't tell you whether or not such a tool exists. At least for Windows. For Linux / Unix, I know it's possible, but this is why I am not an expert in this.

    But why would you do? The only thing that comes to mind would be self selbsttötung tasks.

  • Unicode character on the command line

    I have a folder that contains a non-ASCII character, "registered sign" (®), which can be typed in a Terminal by using the-r option.

    It is U + 00AE, and as an 8-bit character, it is 174 decimal. I want to be able to enter this character on the command line without

    typing Option, because I have to build a Terminal command using an application that

    is not respectful of Unicode. So option-r helps me create a string that contains this character.

    For example, in the Terminal, I made a folder in ~ with as its name in full (I typed a r while pressing the option key):

    > mkdir ~ /.

    I can list help

    > ls ~ /.

    but I have to be able to do so * without using any modifier key * (as option).

    I thought I could use something like (after cd ~)

    > ls \302\256

    or

    > ls \u00AE

    or

    > ls \xc2\xae

    but I could not do the shell to interpret what I type as registered r symbol. Everything what I enter is interpreted

    literally as individual characters rather that, for example, the \xC2 is considered a single character. I also tried different combinations

    quotes as double the backslash, but I continue get "No such file or directory".

    How can I represent this character on the command line without modifier keys? I'm on El Capitan, OS X 10.11.2, running bash 3.2.

    Have you tried zsh instead of bash?

    I think bash supports \u starting only 4.2

  • Access iCloud drive via the command line

    I wanted to write a small script to access iCloud by car via the command line, and to my surprise, this seems to be a very special place that is not displayed in /Volumes or even in my home directory is Dropbox.

    Veterinarians here know the way, if not to enlightenment, then to iCloud drive?

    Thanks in advance.

    It is actually a rather interesting problem. I did research I should have done before I came here and found that iCloud Drive is accessible here:

    ~/Library/Mobile\ Documents

    What is interesting is that the many, many interesting things found in this directory when you reveal all the files through ls - al, is that custom directories seem to appear. Even more interesting, in the Finder, select go > go to folder... and that type path and it does not recognize the path. Type ~/Library/, and then of course that's fine and see you the directory of Documents Mobile...

  • Start an application saved on the command line

    Hello

    first of all that I do not know how I can start my data .exe on the command line, I know that. I need a few more tips.

    My problem is that I start my program and set values in my interface and then I save my interface. You can say that I am creating some options with different parameters (option 1, option 2, option3). Now, I would like to open this option on the command line. So first of all the program begins with option1 when this option is over that option 2 should start (I will also create a handler of signals which gives me a feedback if the option before closing).

    It should be like this:
    Path\Application.exe option1 option2 option3

    But know that I have a problem. When I save my slab (SavePanelState) I can not open such a Panel is saved with the command "LoadPanel". In help, there is also information that you can load only such a panel with the RecallPanelState command, but with this command you only update the interface. Now my question is, how can I savel a panel with its States and call it with the command LoadPanel? Or is the only way to load a group of experts and to recall the values the command of RecallPanelState?

    Best regards

    Unortunately there is no way to directly open a control panel preconfigured with controls other than in their default state. You have already discovered it and I can confirm that this can not be changed. However, if you call LoadPanel and RecallPanelState front showing the Panel, that the user will directly see the Panel custom, which is more or less what you are looking for.

  • Analyzer of sequence running from the command line in TestStand 2010

    Hello

    I would like to be able to run and control the stand-alone command line sequence Analyzer.  I can do that in 2014 TS (and it seems that I could patch versions as soon as 2012 TS to give them this ability), as described here: http://digital.ni.com/public.nsf/allkb/B927893F26BFB64A86257ECE006E442D

    However, I work with a large existing codebase in 2010 TS (with no intention to migrate to a newer version, in the foreseeable future).  Is it possible to get the same functionality from command line in the 2010 version of the parser?

    I know that I can open the command line parser, but are the commands, I am interested in: analyze, report, / save, /clearMessagesOnSave, / minimize, / help, / / leave.

    Thank you!

    Thanks Ryan, Jigg,

    Yes, I can run the parser (and opened a project), but basically, I can't run anything.

    I realized what I do by writing a TestStand sequence that calls the parser to sequence through its API (attached).  I can then run TestStand (and call this sequence) from the command line.

  • Change the command line parameters without having to restart LabVIEW

    Is it possible to change the command line parameters passed to a VI WITHOUT having to restart LabVIEW?  Maybe I'm used to how it works just about any other development environment, but to have to do is quite frustrating.

    ronbrown,

    Unfortunately, you'll have to close LabVIEW to pass parameters in a VI of the command prompt. You can build your VI in an executable file, and then pass parameters from the command prompt.  Because the program is its own executable file, it is not dependent on wheter LabVIEW is open.

Maybe you are looking for

  • IMac-formatted external hard drive is not detected in the window computer

    I had formatted my drive external hard seagate new with the imac. now the problem is that it is detected in the iMac and not in my computer window. kindly help me in the detection of seagate in my computer window

  • G550 - shortcuts no longer work

    Forgive if I am posting this in the wrong place. Please advise if I should post this elsewhere. I have a G550, and it's been great. But today, all my shortcuts to my apps stopped working. 2 questions/examples: (1) if I try to run a web browser from m

  • Any other player Sansa play files FLAC?

    I got a SanDisk Sansa Clip 4 GB MP3 player thinking he would play files FLAC, but they are being denied when I try and drop them in the drive. One of the players play files FLAC? Thank you.

  • Solution: How can I disable IE9 asking if I want to save the file when I click on a video link?

    It happened once before, but I don't remember the solution. A few days ago started IE9 conventional if I want to save a file when I click on a video link.  I want to happen is for Windows Media Player to view the video.  I don't want to save on my co

  • Video card driver missing on Vista laptop

    HelloI did a scan of my laptop to check how his work... I have always the problem with my screen going into hybernation... in any case I found that there is a driver that is missing from my device manager (or something like that), this missing driver