Unzip rar file by using ssis

Hi
i need to extract the rar file by using execute process task
for this i used the executaables as C:\PROGRAM FILES\WinRAR\WinRAR.exe
arguments  -e c:\users\sbattula\desktop\newfolder\ACC01_q_20120609.PART01.RAR -O+
-o+
warning window is displayed , NO ARCHIVE FOUND I PRESS THE OK BUTTONI GOT THE ERROR LIKE
[Execute Process Task] Error: In Executing "C:\Program Files\WinRAR\WinRAR.exe"
"e C:\Users\Desktop\New Folder\ZIPFILES\ACC01_Q_20120609.part01.rar -o+" at
"C:\Users\Desktop\New Folder", The process exit code was "1" while the expected was "0".

Doesn't appear to be a - before the e in your error window.  Are you sure your arguments says:
-e c:\users\sbattula\desktop\newfolder\ACC01_q_20120609.PART01.RAR -O+
And not
e c:\users\sbattula\desktop\newfolder\ACC01_q_20120609.PART01.RAR -O+
Also the path: c:\users\sbattula\desktop\newfolder\ACC01_q_20120609.PART01.RAR
Does not match what the error is returning
C:\Users\Desktop\New Folder\ZIPFILES\ACC01_Q_20120609.part01.rar
Chuck Pedretti | Magenic – North Region | magenic.com

Similar Messages

  • Since upgrading to LION, stuffit doesn't work (get message Power Pc apps no longer supported)  So, how to I unzip RAR files now?!?

    since upgrading to LION, stuffit doesn't work (get message Power Pc apps no longer supported) So, how do I unzip .RAR files now?!?

    Use the current version of Stuffit Expander.
    (63916)

  • Unzipping *.rar files

    What is the correct procedure to unzip *.rar files from command line in Solaris?

    http://www.rarlab.com/rar_add.htm

  • Can a .rar file be used to zip a Mac file?

    I've got a bunch of .rar files that are supposed to make up one big Mac file, but I've never heard of that being possible..always thought that's only a PC zip format....anyone know otherwise? If so, how do you unzip 'em? thanks

    There is one caveat: certain types of ‘legacy’ files, from Mac OS 9 and earlier—those with resource forks—can’t be safely stored in non-Mac-aware archives. Font suitcases, for example, are completely lost (become empty files); 68k-compatible applications are ruined; non-native image formats lose their previews. The only exception of which I am aware is a Zip archive created by OS X’s tool and equivalents, which use a special workaround to save resources and Finder Info in such a way that they can reconstitute the original file structure on extraction. Windows users +et al.+ just see an extra directory in these archives. AFAIK this isn’t available for rar, tar, gzip and other such compression formats—and if implemented by a particular Mac-aware utility, would require that a similar program be used for unpacking the archives.

  • Please suggest how can we verify file format using SSIS 2008 .

    We have ragged files placed in directory which need to be loaded into DB. Before loading we need to validate the file format before loading.
    The file schema is as follows.
    01 XREF_RCD.
    05 XR_JOB PIC X(4).
    05 XR_PHASE PIC X(2).
    05 XR_DATE PIC X(6).
    05 XR_ST_CHECK_NO PIC S9(8)
    05 XR_END_CHECK_NO PIC S9(8)
    05 XR_ST_SERIAL PIC S9(8)
    05 XR_END_SERIAL PIC S9(8)
    05 XR_AMOUNT PIC S9(7)V99
    05 XR_ISSUE_DATE PIC X(6).
    05 XR_CONTENT_FLAG PIC X.
    05 XR_XREF_CARD_PROCESSED PIC X.
    Could you please suggest how can we validate using SSIS 2008  and
    invalid value in header (alpha character for numeric field), more than 20% of records with errors, format is not correct also need to validated.

    Before we load the data we need to verify  invalid value in header (alpha character for numeric field),
    more than 20% of records with errors,
    format is not correct (values starting or ending in wrong position),  if the above validation pass then only the data can be loaded.  please suggest how can we achieve in SSIS .  The FileFormat and filedata is available below.  
    please find the file contents.
    49530110050230088937300889393008893730088939000036714100506
    54000110050230089190300894103008919030089410000066614100506
    73880110050230090564300907593009056430090759000104503100506
    73880110050230090564300907593009056430090759000104503100506
    45980110050230088829300888793008882930088879000033453100506
    58160110050230089820300898263008982030089826000058278100506
    41680110050130088623300886413008862330088641000035877100506
    41680110050241683471416834714168347141683471000000949100505
    82900110050230093642300936633009364230093663000069407100506
    54520110050230089411300894193008941130089419000048629100506
    83580110050230093664300936683009366430093668000083136100506
    56320110050230089556300895613008955630089561000073072100506
    74160110050230090760300907983009076030090798000099724100506
    57920110050230089562300895823008956230089582000079256100506
    45950110050230088649300888283008864930088828000185937100506
    81770110050230092335300928073009233530092807000118370100506
    70760110050230089827300899233008982730089923000083451100506
    74200110050230090799300908493009079930090849000047305100506
    84450110050230093699300937153009369930093715000076723100506
    83930110050230093669300936983009366930093698000043699100506
    75120110050230091002300910043009100230091004000034908100506
    10100110050230088620300886223008862030088622000194662100506
    79600110050230091402300914093009140230091409000119741100506
    58110110050230089583300897633008958330089763000140539100506
    58117710050230089764300897643008976430089764000047663100506
    52460110050230088940300891893008894030089189000097617100506
    48820110050230088928300889343008892830088934000142420100506
    48824110050230088935300889363008893530088936000144862100506
    82810110050230093510300936413009351030093641000156790100506
    76090110050230091060300911413009106030091141000111451100506
    74210110050230090850300909943009085030090994000130955100506
    75760110050230091030300910323009103030091032000075843100506
    File Layout
     XR_JOB PIC X(4).
     XR_PHASE PIC X(2).
     XR_DATE PIC X(6).
     XR_ST_CHECK_NO PIC S9(8) 
    XR_END_CHECK_NO PIC S9(8) 
    XR_ST_SERIAL PIC S9(8)
    XR_END_SERIAL PIC S9(8) 
    XR_AMOUNT PIC S9(7)V99 
    XR_ISSUE_DATE PIC X(6).
     XR_CONTENT_FLAG PIC X.
     XR_XREF_CARD_PROCESSED PIC X

  • How to add specific header and footer to flat file using SSIS 2008

    The SSIS package need to create file  with headers, totals and adds a status to position one of the records.
    Header: "$$ADD ID=ENTK0557 BID='IA   HBZAC14HBZACHRYCORP' PASSWORD='CUSTOMER        ' %AU HBZAC14" is added.
    $$ADD = Static
    ID=ENTK0557 = Static
    BID='IA   HBZAC14HBZACHRYCORP' = "HBZAC14" is the company, "HBZACHRYCORP" is company name
    PASSWORD='CUSTOMER        '  = static
    HBZAC14 = company
    Control Totals:
    T010533343 000050 0002659604 000000 0000000000
    T = Totals
    010533343 = Account Number
    000050 = Total records
    0002659604 = Total checks
    000000 = TBD
    0000000000 = TBD
    Data for the file
    DECLARE
    @T AS
    TABLE
    [BR-ISSUE-VOID-IND] [char]
    (1)
    NULL,
    [BR-ACCT-NBR] [varchar]
    (9)
    NULL,
    [FILLER1] [char]
    (1)
    NULL,
    [BR-SERIAL-NBR] [varchar]
    (8000)
    NULL,
    [BR-CHECK-AMT] [varchar]
    (8000)
    NULL,
    [BR-CK-ISSUE-DATE] [varchar]
    (6)
    NULL
    INSERT
    INTO @T
    [BR-ISSUE-VOID-IND]
    [BR-ACCT-NBR]
    [FILLER1]
    [BR-SERIAL-NBR]
    [BR-CHECK-AMT]
    [BR-CK-ISSUE-DATE]
    SELECT
    'C'
    ,NULL,' ',30090072,2114.39,100502
    UNION
    ALL
    SELECT
    'C'
    ,NULL,' ',30090190,430.58,100502
    UNION
    ALL
    SELECT
    'C'
    ,NULL,' ',30092371,589.93,100502
    UNION
    ALL
    SELECT
    'C'
    ,NULL,' ',30092550,1198.6,100502
    SELECT
    FROM @T
    File SnapShot.

    Using SSIS its difficult unless you use a script task after the data flow to add the header footer bits.
    A much better option in this case would be bcp as you can generate query with values in the order you want and bcp it out
    http://msdn.microsoft.com/en-us/library/ms162802.aspx
    Please Mark This As Answer if it solved your issue
    Please Mark This As Helpful if it helps to solve your issue
    Visakh
    My MSDN Page
    My Personal Blog
    My Facebook Page

  • NoClassDefFoundError error when deploying a resource adapter rar file

    Hi,
    Iam trying to deploy a resource adapter(RA) rar file which uses orabpel.jar.
    1. When i dont package the orabpel.jar along with the adapter, i get the following error during deployment
    [Apr 19, 2007 8:05:00 PM] Connector Module Deployer for BRMAdapter STARTS.
    [Apr 19, 2007 8:05:00 PM] Copy the archive to E:\product\10.1.3.1\OracleAS_1\j2ee\home\connectors\BRMAdapter\BRMAdapter.rar
    [Apr 19, 2007 8:05:00 PM] Unpacking BRMAdapter.rar
    [Apr 19, 2007 8:05:00 PM] Done unpacking BRMAdapter.rar
    [Apr 19, 2007 8:05:00 PM] Starting up resource adapter
    [Apr 19, 2007 8:05:00 PM] Exception: NoClassDefFoundError: oracle/tip/adapter/api/exception/PCRetriableResourceException
    [Apr 19, 2007 8:05:00 PM] Operation failed with error: oracle/tip/adapter/api/exception/PCRetriableResourceException
    2. If i package the orabpel.jar file along with the RA, i get ClassCastException.
    3. I tried including the imported-shared-libraries section in the packaged oc4j-ra.xml, but this gets overwritten as part of the deployment.
    4. I removed the above class which gave NoClassDefFoundError and then tried deploying and got the following error
    [Apr 19, 2007 7:49:07 PM] Connector Module Deployer for BRMAdapter STARTS.
    [Apr 19, 2007 7:49:07 PM] Copy the archive to E:\product\10.1.3.1\OracleAS_1\j2ee\home\connectors\BRMAdapter\BRMAdapter.rar
    [Apr 19, 2007 7:49:07 PM] Unpacking BRMAdapter.rar
    [Apr 19, 2007 7:49:07 PM] Done unpacking BRMAdapter.rar
    [Apr 19, 2007 7:49:07 PM] Starting up resource adapter
    [Apr 19, 2007 7:49:07 PM] Exception: NoClassDefFoundError: Missing class: oracle.tip.adapter.api.OracleConnectionFactory Dependent class: oracle.tip.adapter.brm.BRMConnectionFactory Loader: BRMAdapter:0.0.0 Code-Source: /E:/product/10.1.3.1/OracleAS_1/j2ee/home/connectors/BRMAdapter/BRMAdapter/BRMAdapter.jar Configuration: in E:\product\10.1.3.1\OracleAS_1\j2ee\home\connectors\BRMAdapter\BRMAdapter The missing class is available from the following locations: 1. Code-Source: /E:/product/10.1.3.1/OracleAS_1/bpel/lib/orabpel.jar (from in /E:/product/10.1.3.1/OracleAS_1/j2ee/home/config/server.xml) This code-source is available in loader oracle.bpel.common:10.1.3.
    [Apr 19, 2007 7:49:07 PM] Operation failed with error: Missing class: oracle.tip.adapter.api.OracleConnectionFactory Dependent class: oracle.tip.adapter.brm.BRMConnectionFactory Loader: BRMAdapter:0.0.0 Code-Source: /E:/product/10.1.3.1/OracleAS_1/j2ee/home/connectors/BRMAdapter/BRMAdapter/BRMAdapter.jar Configuration: in E:\product\10.1.3.1\OracleAS_1\j2ee\home\connectors\BRMAdapter\BRMAdapter The missing class is available from the following locations: 1. Code-Source: /E:/product/10.1.3.1/OracleAS_1/bpel/lib/orabpel.jar (from in /E:/product/10.1.3.1/OracleAS_1/j2ee/home/config/server.xml) This code-source is available in loader oracle.bpel.common:10.1.3.
    Here is the oc4j-ra.xml i package:
    <?xml version="1.0"?>
    <oc4j-connector-factories xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://www.oracle.com/technology/oracleas/schema/oc4j-connector-factories-10_0.xsd"
    schema-major-version="10" schema-minor-version="0">
    <imported-shared-libraries>
    <import-shared-library name="oracle.bpel.common"></import-shared-library>
    </imported-shared-libraries>
    <connector-factory location="eis/BRM" connector-name="OracleBRMAdapter">
    <config-property name="ConnectionString" value="ip blrhpdv3 12006"></config-property>
    <config-property name="DBNumber" value="1"></config-property>
    <connection-pooling use="none"/>
    <security-config use="none"/>
    <connectionfactory-interface>
    javax.resource.cci.ConnectionFactory
    </connectionfactory-interface>
    </connector-factory>
    </oc4j-connector-factories>
    Currently i package orabpel.jar file along with the RA rar file, deploy, later go and modify the oc4j-ra.xml from application-deployments/... to include the imported-shared-libraries, remove the orabpel.jar from the connectors/BRMAdapter directory, restart the AS and it works
    Iam using Oracle AS 10.1.3 as part of the SOA Suite.
    Any help would be appreciated.

    Found a soln, add the codesource to the j2ee instance application.xml
    eg adding the following
    <imported-shared-libraries>
    <import-shared-library name="oracle.bpel.common"/>
    </imported-shared-libraries>
    solves the problem. Make sure the shared libraries are installed and is added to the instance server.xml
    This is described in "Oracle® Containers for J2EE Developer’s Guide 10g (10.1.3.1.0)"
    But not sure if the end customers need to be told to edit the configuration file manually.

  • How to create SAP RAR file using NWDS 7.31: ResourceBundle issue

    Hello everybody,
    I successfully create SAP JCA Connector project for .java / .class files.
    When I try to use ResourceBundle in connector project, it isn't exported to JAR / RAR / EAR files.
    What should I do?
    The only builders are:
    * org.eclipse.jdt.core.javabuilder
    * org.eclipse.wst.common.project.facet.core.builder
    * org.eclipse.wst.validation.validationbuilder
    When I try to export connector project to SAP RAR file, I can switch between binary-only or binary with sources, not any checkbox for *.properties.
    Thank you in advance for any point.

    Here patching info.
    Source getting script:
    echo off
    set JN=com.sap.ide.j2ee.servicelayer_1.0.1.140801063136.jar
    set JAR=C:\NWDSsp12.p3\plugins\%JN%
    set FERN=C:\sap\fernflower.jar
    set UNZIP="C:\Program Files\7-Zip\7z.exe"
    java -jar %FERN% %JAR%  .
    mkdir src\com\sap\ide\j2ee\servicelayer\archive
    %UNZIP% x %JN% com\sap\ide\j2ee\servicelayer\archive\BuildRar*java
    move com\sap\ide\j2ee\servicelayer\archive\BuildRar*java src\com\sap\ide\j2ee\servicelayer\archive\
    rmdir /s/q com
    echo **************************************************************************
    echo *                                                                        *
    echo *                                                                        *
    echo *                                                                        *
    echo * Now fix BuildRar.createArchiveDescriptorForProjectWithPattern() method *
    echo * look for "if(sAddJavaFiles)" condition                                *
    echo *                                                                        *
    echo * if (sAddJavaFiles)                            =: if (true)            *
    echo * IPattern javaPattern = Pattern.getPattern(2); =: .getPattern(3)        *
    echo *                                                                        *
    echo **************************************************************************
    pause
    Classpath file:
    <?xml version="1.0" encoding="UTF-8"?>
    <classpath>
    <classpathentry kind="src" path="src"/>
    <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.6"/>
    <classpathentry kind="var" path="ECLIPSE_HOME/plugins/org.eclipse.equinox.common_3.5.1.R35x_v20090807-1100.jar"/>
    <classpathentry kind="var" path="ECLIPSE_HOME/plugins/org.eclipse.core.jobs_3.4.100.v20090429-1800.jar"/>
    <classpathentry kind="var" path="ECLIPSE_HOME/plugins/org.eclipse.core.resources_3.5.2.R35x_v20091203-1235.jar"/>
    <classpathentry kind="var" path="ECLIPSE_HOME/plugins/org.eclipse.core.runtime_3.5.0.v20090525.jar"/>
    <classpathentry kind="var" path="ECLIPSE_HOME/plugins/com.sap.ide.j2ee.servicelayer_1.0.1.140801063136.jar"/>
    <classpathentry kind="var" path="ECLIPSE_HOME/plugins/com.sap.ide.j2ee.adapter.ext.ra_1.0.1.140801063136.jar"/>
    <classpathentry kind="var" path="ECLIPSE_HOME/plugins/com.sap.ide.j2ee.extensionpoints_1.0.1.140801063136.jar"/>
    <classpathentry kind="var" path="ECLIPSE_HOME/plugins/com.sap.ide.j2ee.util_1.0.1.140801063136.jar"/>
    <classpathentry kind="var" path="ECLIPSE_HOME/plugins/com.sap.ide.j2ee.adapter.web_1.0.1.140801063136.jar"/>
    <classpathentry kind="var" path="ECLIPSE_HOME/plugins/com.tssap.util.core_2.0.0.140801063136.jar"/>
    <classpathentry kind="var" path="ECLIPSE_HOME/plugins/com.tssap.util.trace_1.0.0.140801063136.jar"/>
    <classpathentry kind="var" path="ECLIPSE_HOME/plugins/com.tssap.tools_2.0.0.140801063136/lib/com.tssap.tools_api.jar"/>
    <classpathentry kind="var" path="ECLIPSE_HOME/plugins/com.sap.ide.j2ee.adapter.core_1.0.1.140801063136.jar"/>
    <classpathentry kind="var" path="ECLIPSE_HOME/plugins/com.sap.ide.eclipse.jarsap_2.0.0.140801063136/lib/com.sap.ide.eclipse.jarsap_api.jar"/>
    <classpathentry kind="var" path="ECLIPSE_HOME/plugins/com.sap.ide.j2ee.adapter.ear_1.0.1.140801063136.jar"/>
    <classpathentry kind="var" path="ECLIPSE_HOME/plugins/com.sap.ide.j2ee.adapter.client_1.0.1.140801063136.jar"/>
    <classpathentry kind="var" path="ECLIPSE_HOME/plugins/com.sap.ide.j2ee.adapter.ejb_1.0.1.140801063136.jar"/>
    <classpathentry kind="var" path="ECLIPSE_HOME/plugins/com.sap.ide.j2ee.adapter.ext.client_1.0.1.140801063136.jar"/>
    <classpathentry kind="var" path="ECLIPSE_HOME/plugins/com.sap.ide.j2ee.adapter.ext.cmpejb_1.0.1.140801063136.jar"/>
    <classpathentry kind="var" path="ECLIPSE_HOME/plugins/com.sap.ide.j2ee.adapter.ext.core_1.0.1.140801063136.jar"/>
    <classpathentry kind="var" path="ECLIPSE_HOME/plugins/com.sap.ide.j2ee.adapter.ext.ear_1.0.1.140801063136.jar"/>
    <classpathentry kind="var" path="ECLIPSE_HOME/plugins/com.sap.ide.j2ee.adapter.ext.ejb_1.0.1.140801063136.jar"/>
    <classpathentry kind="var" path="ECLIPSE_HOME/plugins/com.sap.ide.j2ee.adapter.ext.web_1.0.1.140801063136.jar"/>
    <classpathentry kind="var" path="ECLIPSE_HOME/plugins/com.sap.ide.j2ee.adapter.ra_1.0.1.140801063136.jar"/>
    <classpathentry kind="var" path="ECLIPSE_HOME/plugins/com.sap.ide.j2ee.ui_1.0.1.140801073130.jar"/>
    <classpathentry kind="var" path="ECLIPSE_HOME/plugins/com.tssap.util.sdk.ui_2.0.0.140801063136/lib/com.tssap.util.sdk.ui_api.jar"/>
    <classpathentry kind="var" path="ECLIPSE_HOME/plugins/org.eclipse.jdt.core_3.5.2.v_981_R35x.jar"/>
    <classpathentry kind="var" path="ECLIPSE_HOME/plugins/org.eclipse.jst.j2ee_1.1.302.v201004131604.jar"/>
    <classpathentry kind="var" path="ECLIPSE_HOME/plugins/org.eclipse.jem.workbench_2.0.201.v200911302230.jar"/>
    <classpathentry kind="var" path="ECLIPSE_HOME/plugins/org.eclipse.jem.util_2.0.201.v201001252130.jar"/>
    <classpathentry kind="var" path="ECLIPSE_HOME/plugins/org.eclipse.ui.workbench_3.5.2.M20100113-0800.jar"/>
    <classpathentry kind="var" path="ECLIPSE_HOME/plugins/org.eclipse.jst.j2ee.core_1.1.301.v200911302230.jar"/>
    <classpathentry kind="var" path="ECLIPSE_HOME/plugins/org.eclipse.jface_3.5.2.M20100120-0800.jar"/>
    <classpathentry kind="var" path="ECLIPSE_HOME/plugins/org.eclipse.ltk.core.refactoring_3.5.0.v20090513-2000.jar"/>
    <classpathentry kind="var" path="ECLIPSE_HOME/plugins/org.eclipse.wst.common.modulecore_1.1.301.v201001252130.jar"/>
    <classpathentry kind="var" path="ECLIPSE_HOME/plugins/org.eclipse.wst.common.project.facet.core_1.4.1.v200911141735.jar"/>
    <classpathentry kind="output" path="bin"/>
    </classpath>
    Patching:
    @echo off
    set JN=com.sap.ide.j2ee.servicelayer_1.0.1.140801063136.jar
    set JAR=C:\NWDSsp12.p3\plugins\%JN%
    set ZIP="C:\Program Files\7-Zip\7z.exe"
    set BLD=bin\com\sap\ide\j2ee\servicelayer\archive
    copy/b %JAR% .
    cd bin && %ZIP% a ..\%JN% com\sap\ide\j2ee\servicelayer\archive\*class
    echo **************************************************************************
    echo * Now replace:
    echo * %JAR%
    echo * with with .\%JN%
    echo **************************************************************************
    pause
    Attached: some scripts and project files.
    Also see NWDS_PatchRAR at google disc.

  • SSIS Execute Process Task to Unzip Remote Files

    I have created an SSIS Execute Process Task to unzip files on a remote server.
    Executable: \\servername\c$\Program Files (x86)\7-Zip\7z.exe
    Arguments: -o\\servername\d$\DBFiles\ -y x \\servername\d$\DBFiles\somefile.zip
    The zip file size is about 40MB.
    The SSIS task runs very slowly, close to 5 minutes. I know it should not take this long. When I remote logon to the server and run the 7z program to unzip the same file, it unzips in less than 10 seconds.
    It seems that the way it is set up now, it constantly sending instructions back and forth from my PC to the server when I run the SSIS package on my PC.  
    I have 50 files of varying sizes that need to be processed daily. The SSIS unzip task takes 2 hours just to unzip these files.
    How should I set up the SSIS Execute Process Task so that it can unzip files on remote server efficiently?
    Many thanks in advance

    The reason is that the files contain data that need to be loaded to the database. So, the zipped data files are copied to the server where the database lives. The SSIS package unzips the files and loads the database. The SSIS package is stored on the same
    server. The server lives in the remote data centre.
    My team run the SSIS package using Managament Studio running their PCs in the office, which is a different location to the data centre.
    Since the package and files live on the same remote server, I would have thought that that would not be an issue. But the fact that we run the package locally means that the package is executed locally.
    My goal is to put the zipped data files on the server, unzip the files, load data to a database on a remote server. I need to allow my team of 4 to be able to use Management Studio to run the SSIS packages to do the above. Would I be better off Remote
    Desktop connecting to the server and execute the package there?
    I will check out the PowerShell option.

  • How to unzip/open .rar file?

    Hello guys,
    I have just received a download I have purchased. (I have purchased audio files for film score editing, so the resulting files should be audio files).
    But the downloaded file I have received is 700 mb .rar file.
    When I double click it, it tries to open DivX converter, but I only had a trial version, which is now expired.
    Is there any other way of unzipping/opening this .rar file? Ot is DivX the only application?
    Thank you so much for your help.

    Hello, I am not positive but there may be a command line option to un-rar items. I use an App called Macpar deluxe
    http://www.xs4all.nl/~gp/Site/MacPAR_deLuxe.html
    From the menu bar of Macpar, choose process the unrar. It will then let you search for the file. If you have a .ro1, .ro2..... it will highlight the start rar.
    Cheers,
    Glynn

  • How to get the most current file based on date and time stamp using SSIS?

    Hello,
    Let us assume that files get copied in a specific directory. We need to pick up a file and load data. Can you guys let me know how to get the most current file based on date and time stamp using SSIS?
    Thanks
    thx regards dinesh vv

    hi simon
    i excuted this script it is giving error..
       Microsoft SQL Server Integration Services Script Task
       Write scripts using Microsoft Visual C# 2008.
       The ScriptMain is the entry point class of the script.
    using System;
    using System.Data;
    using Microsoft.SqlServer.Dts.Runtime;
    using System.Windows.Forms;
    namespace ST_9a6d985a04b249c2addd766b58fee890.csproj
        [System.AddIn.AddIn("ScriptMain", Version = "1.0", Publisher = "", Description = "")]
        public partial class ScriptMain : Microsoft.SqlServer.Dts.Tasks.ScriptTask.VSTARTScriptObjectModelBase
            #region VSTA generated code
            enum ScriptResults
                Success = Microsoft.SqlServer.Dts.Runtime.DTSExecResult.Success,
                Failure = Microsoft.SqlServer.Dts.Runtime.DTSExecResult.Failure
            #endregion
            The execution engine calls this method when the task executes.
            To access the object model, use the Dts property. Connections, variables, events,
            and logging features are available as members of the Dts property as shown in the following examples.
            To reference a variable, call Dts.Variables["MyCaseSensitiveVariableName"].Value;
            To post a log entry, call Dts.Log("This is my log text", 999, null);
            To fire an event, call Dts.Events.FireInformation(99, "test", "hit the help message", "", 0, true);
            To use the connections collection use something like the following:
            ConnectionManager cm = Dts.Connections.Add("OLEDB");
            cm.ConnectionString = "Data Source=localhost;Initial Catalog=AdventureWorks;Provider=SQLNCLI10;Integrated Security=SSPI;Auto Translate=False;";
            Before returning from this method, set the value of Dts.TaskResult to indicate success or failure.
            To open Help, press F1.
            public void Main()
                string file = Dts.Variables["User::FolderName"].Value.ToString();
                string[] files = System.IO.Directory.GetFiles(Dts.Variables["User::FolderName"].Value.ToString());
                System.IO.FileInfo finf;
                DateTime currentDate = new DateTime();
                string lastFile = string.Empty;
                foreach (string f in files)
                    finf = new System.IO.FileInfo(f);
                    if (finf.CreationTime >= currentDate)
                        currentDate = finf.CreationTime;
                        lastFile = f;
                Dts.Variables["User::LastFile"].Value = lastFile;
                Dts.TaskResult = (int)ScriptResults.Success;
    thx regards dinesh vv

  • Using SQL stored procedures How to get the list of .rar files from e:\Tempbackup directories from the different remote desktop windows server and delete the .rar files which contains the current month and date

    Concept:
    Every month i need to find the list of .rar files from the
    E:/TempBackup directory from the different environments (remote desktop servers) and i need to delete the current month
    .rar files alone from the respective (E:/TempBackup) directory. below is example files structure inside the
    E:/TempBackup.
    example:
    zDROP_2014_08_31_Backups.rar
    zDROP_2014_09_31_Backups.rar
    zDROP_2014_10_31_Backups.rar
    from the above list i need to delete the zDROP_2014_08_31_Backups.rar(current month) file alone and also logs should be capture for this deletion.
    key words for this are zDROP and Current month and date.
    i need a stored procedure for this concept. could you please help on this.

    Hello,
    You can schedule an operating system task (Control Panel -> Schedule task) to either call a batch file or a PowerShell script.
    Please read the following resources for examples:
    http://social.technet.microsoft.com/Forums/windowsserver/en-US/61373719-fffb-4d94-bdbe-7d8ed8620b44/delete-filesfolders-on-remote-servers-using-powershell?forum=winserverpowershell
    http://www.networknet.nl/apps/wp/archives/943
    http://jeffwouters.nl/index.php/2011/10/powershell-script-to-delete-files-older-that-a-week/
    Hope this helps.
    Regards,
    Alberto Morillo
    SQLCoffee.com

  • I downloaded a rar. file of gradients I want to use with illustrator how do I install it so I can use it?

    I downloaded a rar. file of gradients how do I install it in illustrator to use it.

    have you expanded it to look at the contents?
    actually, let's start at the beginning just in case. do you know what a .rar file is? it's like a .zip, a container for compressing a file or folder. to open it, you need WinRAR or some other OS-specific app.
    once you've done that, you can look at/make use of what it contains. a file for gradients is probably a swatch file, which could have the extension .ai or .ase. you open one of those from the swatch palette menu (Open Swatch Library > Other Library).
    it might be a graphic style library, which you'd open similarly from the graphic styles palette (but it's more likely to be swatches).
    I guess it could be just a page arranged with various gradients, but that would be a messy way of doing things.
    or it could even be a bunch of different files. you're the only one with the file, so you'll have to see what you've got.

  • Unzip GZ files using Powershell

    I have  Windows 2008 Server with some GZ type files in a folder. I would like to script unzipping them using Powershell, can someone tell me if this is possible and how I would do it?
    The folder is d:\data_files\ and I'd like to uncompress all the .gz files in there
    I've searched around on the Net but can't find much that deals with GZ files specifically. The files are all named data-1.gz, data-2.gz etc
    Hello
    I have  Windows 2008 Server with some GZ type files in a folder. I would like to script unzipping them using Powershell, can someone tell me if this is possible and how I would do it?
    The folder is d:\data_files\ and I'd like to uncompress all the .gz files in there
    I've searched around on the Net but can't find much that deals with GZ files specifically.

    I also found that .Net 2.0 and above has native code for dealing with gzip files.
    Function DeGZip-File{
    Param(
    $infile,
    $outfile = ($infile -replace '\.gz$','')
    $input = New-Object System.IO.FileStream $inFile, ([IO.FileMode]::Open), ([IO.FileAccess]::Read), ([IO.FileShare]::Read)
    $output = New-Object System.IO.FileStream $outFile, ([IO.FileMode]::Create), ([IO.FileAccess]::Write), ([IO.FileShare]::None)
    $gzipStream = New-Object System.IO.Compression.GzipStream $input, ([IO.Compression.CompressionMode]::Decompress)
    $buffer = New-Object byte[](1024)
    while($true){
    $read = $gzipstream.Read($buffer, 0, 1024)
    if ($read -le 0){break}
    $output.Write($buffer, 0, $read)
    $gzipStream.Close()
    $output.Close()
    $input.Close()
    $infile='C:\Temp\DECfpc1new.csv.gz'
    $outfile='c:\temp\DECfpc1new.csv'
    DeGZip-File $infile $outfile
    You can supply the function with the full path of the file to be unzipped, and the full path of the unzipped file.
    If you don't supply the unzipped file path, the function will unzip the file into the same folder as the source, and remove the .gz extension.
    Inspired by Heineken.

  • Problem using payloadZipBean to unzip a file

    I would like to run OS command to zip large amount of xml into one zip file before XI pick it up, then use unzip option in payloadZipBean to unzip all the xml files so XI can process them one by one from memory, this will reduce lots file I/O time.
    But I am getting this warning message:
    Warning Zip: message is empty or has no payload
    But if I display this message in RWB, the only payload is this zip file.
    Why the payloadZipBean is not unzipping this file as supposed to.

    Did you check this blog
    /people/stefan.grube/blog/2007/02/20/working-with-the-payloadzipbean-module-of-the-xi-adapter-framework
    Sameer

Maybe you are looking for