Log4J not creating any output file

Hi,
I've just started looking at log4j and following a simple example online.
I have the folowing properties file
log4j.rootLogger=INFO, stdout, logfile
[color=#444444]
log4j.appender.stdout=org.apache.log4j.ConsoleAppender
log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
log4j.appender.stdout.layout.ConversionPattern=%d %p [%c] - <%m>%n
log4j.appender.logfile=org.apache.log4j.FileAppender
log4j.appender.logfile.File=c:/mylog.log
log4j.appender.logfile.MaxFileSize=512KB
# Keep three backup files.
log4j.appender.logfile.MaxBackupIndex=3
# Pattern to output: date priority [category] - message
log4j.appender.logfile.layout=org.apache.log4j.PatternLayout
log4j.appender.logfile.layout.ConversionPattern=%d %p [%c] - %m%n
[color]
I have the properties file in my classpath.
Problem is the file never gets created. The output goes to the console alright. What step might I be missing? I just followed this tutorial.
http://vegdave.wordpress.com/2006/08/31/how-to-con...n-tomcat-for-one-of-your-apps/
looks very simple but can't get it to work, no errors being thrown in the console

user13477955 wrote:
I have the properties file in my classpath.Runtime classpath?

Similar Messages

  • Should not create any output file when invalid input source schema

    I have a xslt file, which I have make code to check the order status value.
    If OrderStatus != 'Reject' --> create attribute, element for output file
    Else OrderStatus = 'Reject' --> do not create attribute/element ==> output is the empty file.
    Requirement: if OrderStatus = 'Reject' --> do not create any output file.
    how to do with this requirement?

    I'd ask them over here.
    http://forums.asp.net/
    Regards, Dave Patrick ....
    Microsoft Certified Professional
    Microsoft MVP [Windows]
    Disclaimer: This posting is provided "AS IS" with no warranties or guarantees , and confers no rights.

  • I want XSLT do not create any output file

    I have a xslt file.
     <xsl:variable name="var:InValidReceiptCount">
    .... In here. I want xslt do not create any output file, also an empty file
    </xsl:variable>
    Thanks for helping :)

    If you can tell us your application scenario and why you are trying to control the output name only with xslt, then we can drive you towards correct direction. Remember you cannot control output path with xslt. 
    if you are using bizTalk, you have to use xslt with maps and set the output path at ports
    if you are using .net, you have to control it from your dotnet code.
    Xslt alone cannot control the output path.
    Please mark the post as answer if this answers your question. If this post is helpful, please vote as helpful by clicking the upward arrow mark next to my reply.

  • Should not create any output file when transform with xslt file

    I have a xslt file, which I have make code to check the order status value.
    If OrderStatus != 'Reject' --> create attribute, element for output file
    Else OrderStatus = 'Reject' --> do not create attribute/element ==> output is the empty file.
    Requirement: if OrderStatus = 'Reject' --> do not create any output file.
    how to do with this requirement?
    any help will be appreciated!

    Do you mean the xslt file always return the output file?
    I have tested this xslt file following (only xslt file, not run in BizTalk project):
    Create a blank console application using visual studio and add attached xslt file to newly created console app. Next open the XSLT file and select input file and output files and start xslt debugging to create output file.
    I want to edit the xslt file how to cannot create output file in the case OrderStatus = Reject.
    I don't say in particualr xslt file, its actually your map as a whole that returns a output message on successful execution.
    since you are testing the xslt file as individual file, you are able to control it as per need.  i mean you can write incomplete code or any kind of output elements that are not present even in schema. But when you set the map properties to use external
    xslt , map completely relies on xslt and xslt has to produce output that matches the output schema structure.
    So you better test your xslt by  setting it to your map. Once you set map properties to use xslt, you can test your map by right clicking on map and choosing test map.
    Please mark the post as answer if this answers your question. If this post is helpful, please vote as helpful by clicking the upward arrow mark next to my reply.

  • The system could not create any outputs for mv type 561

    Hi,
    I tried to print out a goods receipt others in MIGO and i received "The system could not create any outputs" when i tick on output control. I tried to follow the steps in How to print the material document in MB1C movement 561 I stuck at step 4 where i cannot find MvT 561. Please help
    Chk your setting as below to get GR print out.
    . Maintain the Printer Name in MM->Inv Mgmt and Phy Inv->Print Control-> Gen Settings-> Printer Setting Enter the local printer where you want to print your Goods posting document
    2. Ensure that in MM->Inv Mgmt and Phy Inv->Print Control->Gen Settings->Item Print Indicator, 1 stands for Matl Doc print out
    3. In MM->Inv Mgmt and Phy Inv->Print Control->Gen Settings->Print Version, maintain Print Version 2
    4. In MM->Inv Mgmt and Phy Inv->Print Control->Maintain Print Indicator for Goods Receipt/GI/Transfer Posting Documents
    Here for Particular mvt type 101,201,121,311,313,501,521,561 etcu2026 Maintain the Print item as 1--Material document printout
    5. In MM->Inv Mgmt and Phy Inv->Output Determination->Maintain Output Types, for the Output types WE01, WE02 and WE03, ensure the following--
    Select the particular Output type then goto Details
    a. Default Values: Dispatch Time is 3 or 4 as per reqmt. and Transmission medium is 1
    b. Print Parameter is 7
    6. In MM->Inv Mgmt and Phy Inv->Output Determination->Printer Det->Printer Determination by Plant/Str Loc , Maintain the Output device for all your Plants
    7. Go to MN21, for Tr Type WE, Print Version 3, maintain Print Item as 1.
    Now the settings are ready for Printing Material doc
    8. While doing MIGO, ensure that in General Tab, you get "3 Collective Slip" beside the Print Indicator and you tick mark the field.
    9. Now depending on the setting in 5a, the Matl doc is printed. If it is 3, you have to print it using MB90. If it is 4, it is printed immediately.

    issue is resolved

  • Report RCCLROUT does not create any output

    Hi experts,
    I hope someonw can help me on the following incident:
    Running report RCCLROUT from se80, I do not get any output.
    However, the report#s description says:
    *& Creation of routing IDOCs to a given selection                      *
    *& This program selects to an input given via the selection screen the *
    *& corresponding routing data from the database. Then the function     *
    *& module for creation of routing idocs is called.                     *
    *& In general this report is called from the report RCCLMDAT, but it   *
    *& can also be used for its own.                                       *
    I read the source code an found out, that the selection is not used.
    In my simple understanding, just the function call should be un-commended.
    *&   Event START-OF-SELECTION
    START-OF-SELECTION.
    *CALL FUNCTION 'CLOI_ROUTING_READ'
    *     EXPORTING
    *          date_fr   =  date_fr
    *          date_to   =  date_to
    *          lot_fr    =  lot_fr
    *          lot_to    =  lot_to
    *          mestyp    =  mestyp
    *          logsys    =  opt_sys
    *     TABLES
    *          matnr_ro  =  matnr_ro
    *          werks_ro  =  werks_ro
    *          rout_data =  t_mapl
    *     EXCEPTIONS
    *          others    = 1.
    *&   Event END-OF-SELECTION
    end-of-selection.
    As nobody changed the report and it is last used by SAP, I woder myself about how to get my LOIROUT02 EDI File....
    BTW: all of the other reports in this development class are working fine.
    I'd be thankefull for any response...
    Data of SAP: 4.6C;
    Data of Report:
    Title       Generate Routing IDocs                                     
    Original language      DE   German                                                                               
    Created                29.01.1997       SAP                            
    Last changed by        01.04.1998       SAP                            
    Status                 Active                                                                               
    Type                  Executable program                              
    Status                                                                
    Application           PPC                                             
    Authorization groups                                                  
    Development class     CLOI                  for logistics optimization
    Logical database                                                      
    Selection screen

    Thank you very much for your quick response.
    I have implemented Userexits for Planed Order, Production Order and Work Center to fill my extension segments.
    The Settings are defined correct and the Data (Files) are created for the above and the BOM Files.
    (BOM s are also used in standard)
    Only the Routings (in Standard) are not working correct.
    I have no RFC components and therefore nothing to configure. All of the other settings did work (at least) for
    - LOPLO01
    - LOPRO01
    - LOIBOM01
    - LOIWCS01
    I will try to use FUB CLOI_ROUTING_SEND instead.
    If this works, than it's a bug of the report as far as is see.
    FUB CLOI_ROUTING_SEND works fine!!!
    Any ideas?
    kind regards
    Christoph
    Edited by: Christoph Huber on Dec 1, 2008 10:21 AM

  • Keynote 6.2 foes not open any previous files. Even the one created 1 week ago.

    Keynote 6.2 foes not open any previous files. Even the one created 1 week ago.
    I have 2 computers and both gives the same bug.
    Either Keynote says that the file cannot be opened or it crashes.
    What can I do?

    Check you are using the correct version of Keynote to open the files; right click the file and select Open With > Keynote 6.2.

  • Creating an output  file using 'GUI_DOWNLOAD' function

    Hi SapAll.
    when i try to create an out put text file using the FM 'GUI_DOWNLOAD' by wiring the follwoing below source code
    CONCATENATE 'ASORT' c_tab 'ASORTYP' c_tab
                    'VKORG' c_tab 'DATAB' c_tab
                    'DATBI' INTO outtab-txt.
    iam not able to create the text file with more than 16 fields.i have tried to create an out put file with 24 fields but i can only see 16 fields in it.so could any body help me in finding out how i can create an Output file with more than 16 fields in the file.
    your help will be appreciated.
    regards.
    Varma

    check your output definition....are you doing something like below?  SAP will transfer 1024 bytes per line with GUI_DOWNLOAD.    After you download, how do you view the data?  Be sure you're looking at the data with something that will show all 1024 bytes, and not jsut 256 or 512.
    types: begin of outline,
               txt(1024),
             end of outline.
    data: outtab type table of outline,
             ls_out type outline.

  • How to create multiple output files using TrAX?

    I am new in this field. I'm trying to create multiple xml output files using TrAX. I have to parse a xml source file and output it to multiple xml files. My problem is that it only creates one output file and puts all the parsed data there. When i use saxon and run xsl and xml files, it works fine and creates multiple files...it has something to do with my java code...Any help is greatly appreciated.
    Here's my XSL file
    <?xml version="1.0"?>
    <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.1"
    <xsl:template match="data_order">
    <data_order>
         <xsl:copy-of select="contact_address"/>
         <xsl:copy-of select="shipping_address"/>
         <xsl:apply-templates select="ds"/>
    </data_order>
    </xsl:template>
    <xsl:template match="ds">
    <xsl:variable name="file" select="concat('order', position(),'.xml')"/>
    <order number="{position()}" href="{$file}"/>
    <xsl:document href="{$file}">
    <xsl:copy-of select="."/>     
    </xsl:document>
    </xsl:template>
    </xsl:stylesheet>
    xml source file
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE operation SYSTEM 'data_order.dtd'>
    <data_order job_id='00-00-000' origin='PM-ESIP'>
         <contact_address>
              <first_name>ssssss</first_name>
              <last_name>sssss></last_name>
              <phone>2323232</phone>
              <email>dfdfdsaf</email>
         </contact_address>
         <ds ds_short_name ='mif13tbs'>
              <output>
                   <media_format>neither</media_format>
                   <media_type>FTP</media_type>
                   <output_format>GIF</output_format>
              </output>
         </ds>
              <ds ds_short_name ='mif15tbs'>
              <output>
                   <media_format>neither</media_format>
                   <media_type>FTP</media_type>
                   <output_format>GIF</output_format>
              </output>
         </ds>
    </data_order>
    My java file
    import javax.xml.transform.*;
    import javax.xml.transform.stream.*;
    import java.io.*;
    public class FileTransform {
    public static void main(String[] args)
    throws Exception {
    File source = new File(args[0]);
    File style = new File(args[1]);
    File out = new File(args[2]);
    TransformerFactory factory = TransformerFactory.newInstance();
    Transformer t = factory.newTransformer(new StreamSource(style));
    t.transform(new StreamSource(source), new StreamResult(out));

    Saxon has specific extensions. In this case it is <xsl:document>. That looks like a standard XSLT element, but it actually isn't. The history behind it is this: There was a proposal to create a new version of XSLT, called XSLT 1.1. One of the new features of this version was to be this xsl:document element. The author of the Saxon product, Michael Kay, is one of the people on the W3C committee directing the evolution of XSLT, so he upgraded his product to implement XSLT 1.1. But then the committee decided to drop XSLT 1.1 as a recommendation. So that left Saxon in the strange position of implementing a non-existent extension to XSLT.
    The other outcome of this process was that XSLT (1.0) does not have a way of producing more than one output file from an input file. And so the short answer to your question is "Trax can't do that." However, XSLT 2.0 will be able to do that, although it is not yet a formal W3C recommendation, and when it does become one it will take a while before there are good implementations of it. (I predict that Saxon will be the first good implementation.)
    One of the problems with XML and XSLT is that what you knew a year ago is probably obsolete now, because of all the evolution going on. So being new in the field is not a disadvantage, unless you get stung by reading obsolete tutorials or magazine articles.

  • Parameter issue - report not generating any pdf files

    Hi All,
    I'm trying to run a report which generates pdf files. Is there any limitation on the parameter string size? For one of the parameter values - '11F EA Accept nonhonor ASnSOMnSON_20091201090150846' the report is not generating any pdf files. I assumed the reason is of the keyword 'AS' in it and created another parameter value - '11F EA Accept nonhonor AnS-SOM-SON_20091202074331997', but it is also not generating any pdf files. I get this message from Adobe Reader " There was an error opening this document. This file cannot be opened because it has no pages. " The report is working normally when i hardcode the same parameter values into the logic. Any suggestions on this?
    Thanks.
    Edited by: user1049091 on Dec 2, 2009 9:17 AM
    Edited by: user1049091 on Dec 2, 2009 12:37 PM

    Tim,
    That report is working normally for all the parameter values, except this one. It is not working only if i pass the value - ''11F EA Accept nonhonor ASnSOMnSON_20091201090150846' as a parameter. It is generating the pdf files when i hardcode the same value into sql query logic in the data template, instead of passing it as a parameter. Please advise.
    Thanks.

  • Since upgrading to windows 8.1 I can not see any local files in the files window.

    I have recently upgraded to windows 8.1 and can no longer see my local files in the files window. All remote files for all remote sites are visable.
    If I change sites under local view get error thet dreamweaver can not update cache

    Thanks Nancy
    It certainly worked in windows 8.
    I have deactivated and am trying to reload software inside of windows 8.1.
    Will let you know.
    Thanks again
    Terry
    Date: Fri, 1 Nov 2013 12:13:57 -0700
    From: [email protected]
    To: [email protected]
    Subject: Since upgrading to windows 8.1 I can not see any local files in the files window.
        Re: Since upgrading to windows 8.1 I can not see any local files in the files window.
        created by Nancy O. in Dreamweaver support forum - View the full discussion
    I honestly don't know if DW CS5 is compatible with Win 8.1.  The OS compatibility FAQ only mentions DW CS6 & CC.
    http://helpx.adobe.com/x-productkb/global/windows-8-1-compatability.ht ml
    Maybe someone else can shed more light on this.
      Nancy O.
         Please note that the Adobe Forums do not accept email attachments. If you want to embed a screen image in your message please visit the thread in the forum to embed the image at http://forums.adobe.com/message/5807551#5807551
         Replies to this message go to everyone subscribed to this thread, not directly to the person who posted the message. To post a reply, either reply to this email or visit the message page: http://forums.adobe.com/message/5807551#5807551
         To unsubscribe from this thread, please visit the message page at http://forums.adobe.com/message/5807551#5807551. In the Actions box on the right, click the Stop Email Notifications link.
               Start a new discussion in Dreamweaver support forum at Adobe Community
      For more information about maintaining your forum email notifications please go to http://forums.adobe.com/message/2936746#2936746.

  • Problem with ghostscript ['Distiller' did not produce the output file ]

    Hi,
    We are trying to convert the checked in files to pdf using ghostscript.
    The Steps i have followed in installing the Distiller
    First I have installed gs8.64 and configure distiller
    Refinery server--> Conversion settings --> Third-party Application Settings --> Distiller Engine --> options -->
    Use GhostScript and provided the path to install dierctory as C:/Program Files/gs/gs8.64/
    Installed Printer as per the pdf
    Conversion Settings --> Primary web redention --> convert to pdf using third party applications
    Server details:
    CS: 10gr3
    ghost script 8.64
    Plz find the below logs details
    Error Log...
    Copying c:/ucm/server2/vault/~convert/idc/2/2.txt to c:/ucm/server2/vault/~convert/idc/2/temp.ps
    Waiting for exclusive access on c:/ucm/server2/vault/~convert/idc/2/temp.ps
    Obtained exclusive access on c:/ucm/server2/vault/~convert/idc/2/temp.ps
    Waiting on Distiller
    Check for file c:/ucm/server2/vault/~convert/idc/2/temp.pdf failed
    'Distiller' did not produce the output file 'c:/ucm/server2/vault/~convert/idc/2/temp.pdf'.
    Exception type is 'java.lang.Throwable'. Details
    An error has occurred. The stack trace below shows more information.
    !$Copying c:/ucm/server2/vault/~convert/idc/2/2.txt to c:/ucm/server2/vault/~convert/idc/2/temp.ps <br>Waiting for exclusive access on c:/ucm/server2/vault/~convert/idc/2/temp.ps <br>Obtained exclusive access on c:/ucm/server2/vault/~convert/idc/2/temp.ps <br>Waiting on Distiller <br>Check for file c:/ucm/server2/vault/~convert/idc/2/temp.pdf failed <br>'Distiller' did not produce the output file 'c:/ucm/server2/vault/~convert/idc/2/temp.pdf'. <br>!syExceptionType,java.lang.Throwable
    java.lang.Throwable
         at intradoc.common.IdcLogWriter.doMessageAppend(Unknown Source)
         at intradoc.common.Log.addMessage(Unknown Source)
         at intradoc.common.Log.errorEx2(Unknown Source)
         at intradoc.common.Log.errorEx(Unknown Source)
         at docrefinery.agent.Logger.logError(Logger.java:138)
         at docrefinery.convert.StepHandler.executeStepByName(StepHandler.java:140)
         at docrefinery.convert.ConversionDriver.processSteps(ConversionDriver.java:231)
         at docrefinery.convert.ConversionDriver.convertDocument(ConversionDriver.java:144)
         at docrefinery.convert.ConversionDriver.processSubConversion(ConversionDriver.java:165)
         at docrefinery.convert.StepHandler.executeStepByName(StepHandler.java:109)
         at docrefinery.convert.ConversionDriver.processSteps(ConversionDriver.java:231)
         at docrefinery.convert.ConversionDriver.convertDocument(ConversionDriver.java:144)
         at docrefinery.queue.PreConvertedRefineryQueueMonitor.handleCurrentQueueItem(PreConvertedRefineryQueueMonitor.java:204)
         at docrefinery.queue.PreConvertedRefineryQueueMonitor.monitorRefineryPreConverterQueue(PreConvertedRefineryQueueMonitor.java:125)
         at docrefinery.queue.PreConvertedRefineryQueueMonitor$1.run(PreConvertedRefineryQueueMonitor.java:93)
         at java.lang.Thread.run(Thread.java:595)
    Conversion completed -- Step PostscriptToPDF forced conversion failure by conversion engine because of error: ''Distiller' did not produce the output file 'c:/ucm/server2/vault/~convert/idc/8/temp.pdf'.'. Exception type is 'java.lang.Throwable'.
    Please suggest me where i am going wrong...
    Thanks in advance,
    Prasad V.

    Hi Srinath,
    Thanks for your reply. It worked fine with 8.63 version.
    Is there any other way to get it worked with out installing ghostscript.exe as the client doesnt want to instal any exe file on the server as it has broader impact on other instances also, can we acheive the conversion by copying the extracted zip files of ghostscript-8.63.tar.gz .....
    We tried with extracted zip files by following the below settings
    Refinery server--> Conversion settings --> Third-party Application Settings --> Distiller Engine --> options -->
    deselected Use GhostScript and provided the Path to generic PostScript to PDF engine D:\ghostscript\ghostscript\lib\ps2pdf14.bat
    Parameters to pass to generic PostScript to PDF engine.
    <$postscriptFile$> <$pdfFile$>
    Path to generic PDF optimization engine.
    D:\ghostscript\ghostscript\lib\pdfopt.bat
    Parameters to pass to generic PDF optimization engine.
    <$pdfFile$> <$optimizedPdfFile$>
    Installed Printer as per the pdf
    Conversion Settings --> Primary web redention --> convert to pdf using third party applications
    We are getting the below error:
    Waiting for exclusive access on c:/temp/idcoutput.ps
    Obtained exclusive access on c:/temp/idcoutput.ps
    Waiting on Distiller
    Error Distilling
    Exception type is 'java.lang.Throwable'. [ Details ]
    An error has occurred. The stack trace below shows more information.
    !$Waiting for exclusive access on c:/temp/idcoutput.ps <br>Obtained exclusive access on c:/temp/idcoutput.ps <br>Waiting on Distiller <br>Error Distilling <br>!syExceptionType,java.lang.Throwable
    java.lang.Throwable
         at intradoc.common.IdcLogWriter.doMessageAppend(Unknown Source)
         at intradoc.common.Log.addMessage(Unknown Source)
         at intradoc.common.Log.errorEx2(Unknown Source)
         at intradoc.common.Log.errorEx(Unknown Source)
         at docrefinery.agent.Logger.logError(Logger.java:138)
         at docrefinery.convert.StepHandler.executeStepByName(StepHandler.java:140)
         at docrefinery.convert.ConversionDriver.processSteps(ConversionDriver.java:231)
         at docrefinery.convert.ConversionDriver.convertDocument(ConversionDriver.java:144)
         at docrefinery.queue.PreConvertedRefineryQueueMonitor.handleCurrentQueueItem(PreConvertedRefineryQueueMonitor.java:204)
         at docrefinery.queue.PreConvertedRefineryQueueMonitor.monitorRefineryPreConverterQueue(PreConvertedRefineryQueueMonitor.java:125)
         at docrefinery.queue.PreConvertedRefineryQueueMonitor$1.run(PreConvertedRefineryQueueMonitor.java:93)
         at java.lang.Thread.run(Thread.java:595)
    Conversion completed -- Step PostscriptToPDF forced conversion failure by conversion engine because of error: 'Error Distilling'. Exception type is 'java.lang.Throwable'.
    Plz let us know if it is possible to convert the docs to pdf with out installing the ghostscript.exe file on server.
    Thanks in advance,
    Prasad V.

  • Question about creating multiple output  files from same query

    I have a query like this:
    select * from emp;
    ename empno deptno
    Scott 10001 10
    Tiger 10002 10
    Hanson 10003 20
    Jason 10004 30
    I need to create multiple output files in xml format for each dept
    example:
    emp_dept_10.xml
    emp_dept_20.xml
    emp_dept_30.xml
    each file will have the information for employees in different departmemts.
    The reason I need to do this is to avoid executing the same query 200 times for generating the same output for different departments. Please let me know if it is practically possible to do this.
    Any input is greatly appreciated.
    Thanks a lot!!

    You can write a shell script to generate the multiple spools files for the same output. Below script may helps you.
    #====================
    #!/bin/bash
    n=0
    while [ $n -le 20 ]
    do
    n=`expr $n + 1`
    sqlplus -s system/manager <<EOF
    spool emp_dept_$n.xml
    select count(1) from tab;
    spool off
    EOF
    done
    #====================

  • "Cannot evaluate parameter 'NewName' because its argument input did not produce any output." error received

    I need to rename a set of files with a subset of the files' original name. I wrote this script:
    dir | rename-item -newname {if ($_.name -match '\d{4,5}\-\d{5}\s\-\s(.+)\s\-\s.+\s\-\s.+'){$name=$matches[1]; -replace '.+', "$name";}}
    This works in that the file and/or directory names are changed, but it also gives me the error:
    Rename-Item : Cannot evaluate parameter 'NewName' because its argument input did not produce any output.
    At C:\...\FileStrip.ps1:1 char:28
    + dir | rename-item -newname {if ($_.name -match '\d{4,5}\-\d{5}\s\-\s(.+)\s\-\s.+ ...
    + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        + CategoryInfo          : InvalidArgument: (Vivek Shyam:PSObject) [Rename-Item], ParameterBindingException
        + FullyQualifiedErrorId : ScriptBlockArgumentNoOutput,Microsoft.PowerShell.Commands.RenameItemCommand
    I'm not sure how to fix this. Any assistance would be appreciated.

    ok, thanks.
    You've avoided the whole 'use the piped data implicitly' thing by the explicit ForEach. I'm ok with that, but I'm still curious how to get the non-ForEach version to not error.
    Anyway, what you provided almost worked. I modified to be this:
    dir -file |
       Where{$_.name -match '\d{4,5}\-\d{5}\s\-\s(.+)\s\-\s.+\s\-\s.+'} |
       ForEach-Object{
            $match=$matches[1]
            $newname=$_.Name -replace '.+', "$match"
            Rename-item $_ $newname
    to get it working properly.
    But it looks like the simplest form is:
    dir -file |
       Where{$_.name -match '\d{4,5}\-\d{5}\s\-\s(.+)\s\-\s.+\s\-\s.+'} |
       ForEach-Object{
            Rename-item $_ $matches[1]

  • Error: Outlook could not create the work file. Office 2013

    I was having issues with Windows 8.1 store apps not working and it was suggested to sync my account licenses.  I did that but it did not correct my problem.  I then ran the troubleshooter app. The troubleshooter found several issues that it
    fixed but I cannot remember what they were.
    So here's my problem.  Now, when I open Outlook (2013) I get the error "Outlook could not create the work file."  
    Any suggestions?

    Glad to hear that you have found a solution and thank you for sharing it here, it will be helpful to other community members who have same questions.
    Cheers,
    Steve Fan
    TechNet Community Support

Maybe you are looking for

  • Alternative Payee set up in vendor master record for payments....

    Hi all, I am facing the problem on alternative payee set up in vendor master record. I have done the following settings but its not working. 1) Created alternative payee vendor (XYZ) and blocked for posting. 2) Created main vendor (ABCD) and given al

  • 5th G. Ipod 60GBs, Major Problem

    Hello everyone, I own a 3 or more years old 5th G. Ipod, with 60GBs, i wasn´t having any problems until today, my friend took my ipod and connected to his pc, then HE DISCONNECTED it, i am not sure if he safely removed or he forced it... anyways.. no

  • Measurement Studio Visual C++ 6.0 Multithreads

    I want to use the dialog editor to add NI controls to a dialog (or CFormView) and want to set CNiInterface to SingleThreaded. How do I do this. I do not want to create the controls dynamically because I do not want to deal with license strings. I get

  • Truncated error messages

    I'm using Firefox 10.0 with Yahoo edition 1.8. I'm getting an error message saying "this message is truncated" in 3 of 4 Yahoo recipients (not in 1 other Yahoo, nor in 1 non-Yahoo). The message body contains only a copy/pasted type-only image that co

  • Saving and finder

    I'm not sure how to ask this question and not ramble, does Iphoto 6 save the photos different in Finder then Iphoto 5 did? Before if I clicked on finder, pictures, then iphoto, it would drop down the years, now it doesn't give me any current pictures