Append a file with date and name in the output file

I am running a script which produce an output in excel file, I would like the server name and the date in the output file,  Both the servername and date has declared at the beginning of the script as 
$server = test1
$date = Get-Date -uformat %Y-%m-%d
I am able to append either server or date but not both. Could you please help me out on this.
I would like the output file as '
server_report_date.xls

I got this working by 
"C:\Aravind\Scripts\$server-"+"Report-" +"$Date"+".xls"
Thanks!!

Similar Messages

  • Project Server 2010 - Modification date and name of the person who made the last change in the project

    Hello everybody
    I'm with a doubt.
    I got in the business
    environment Project Server 2010 and
    would like to get the publication date,modification
    date and name
    of the person who made
    the last change in
    the project. It is possible
    to doby the native
    resources or is
    there any query in
    SQL Server to perform a
    query of this information.
    Thank you.
    Obrigado por contactar o fórum Microsoft Technet!

    Hi Hezequias,
    You can get the ProjectModifiedDate column in MSP_EPMProject_userView in the Reporting DB where you can
    get the data based on the projectUID. 
    The "last saved" date in the draft DB (be aware that querying in the draft DB is not supported by MS).
    For the "last modified by", I think it is not stored in any place.
    But you can develop custom code upon publishing the project (Event BeforePublish), writing the current
    date and username automatically into a custom enterprise field.
    Hope this helps,
    Guillaume Rouyre, MBA, MCP, MCTS |

  • HT5252 I tried to change my metadata date and got this   Aperture was not able to adjust the date and time of the original file "01769_p_h13ajyrm4bm0944.jpg" because it is locked or you do not have permission to modify it.

    I tried to change the metadata date.  It changed the date on my photo, but when I checked the box that said "also change my original file", it gave me this error message.
    Unable to change original file.  Aperture was not able to adjust the date and time of the original file “01769_p_h13ajyrm4bm0944.jpg” because it is locked or you do not have permission to modify it.
    Wassup?

    What is your Aperture version? The older versions of Aperture 3 had a problem to apply Metadata changes to the original file.
    If you are using the current version Aperture 3.4.5, try to repair the permissions on your Aperture library, if you have not already done so:
    Launch Aperture with the key combination ⌥⌘ held down and select "Repair Permissions" from the First Aid PAnel, that will appear.
    If that does not help, post back with more information on your original files - are the referenced or managed? Where is your Aperture library located? Since when do you have this problem? And what did you do directly before noticed the problem for the first time?
    Regards
    Léonie

  • Aperture was not able to adjust the date and time of the master file "2008-06-22 at 14-41-14.jpg" because it has a format that does not permit date modification.

    I can't seem to find a way to update the date/time of a master file. There is a format issue but I can't seem to figure out how to correct it.
    Aperture was not able to adjust the date and time of the master file “2008-06-22 at 14-41-14.jpg” because it has a format that does not permit date modification.

    Can you post an ipconfig /all from the server and the DC?
    Robert Pearman SBS MVP
    itauthority.co.uk |
    Title(Required)
    Facebook |
    Twitter |
    Linked in |
    Google+

  • Need to rescue Garage Band Files with Data Rescue II - what kind of files?

    Hi all -
    After a particularly gruesome computer crash, I am trying to reconstruct my lost files using Data Rescue II..... This program goes into the damaged hard drive and downloads all intact files it can find, but it is NOT able to label everything correctly. All it can do is divide things into folders - Audio files, document files, images, mail, misc., and movies. And within these folders are other folders - for instance, in the "Audio" rescued folder, there are hundreds of AIFF files, AIFF1 files, AIFF2, MP3, WAV, m4a, and m4p files.
    My question is: can someone please tell me what the heck a Garage Band project file is? That would save me a lot of time in digging through all this material trying to find one....
    (Don't get me wrong... I'm grateful to have stuff to dig through! I just hope my Garage Band files are intact and recoverable.)
    Has anyone had success saving Garage Band files with Data Rescue II?
    Thanks in advance.

    Aaaagh!
    I spoke too soon. Yes,I did indeed find the file that contained all the files I needed to retrieve (using Disk Rescue II). When my 6-hour download of the 78 GB folder finished, I check the files again, and they weren't located in the orphaned section, but in the Hard Drive section under the normal directory, in a folder called .Trashes - within that there was another folder called "501", which contained all the Garageband files I needed to retrieve. However, when I tried to open the downloaded "rescued" files, they were inside a folder called "Macintosh HD", which could not be opened, and I got a message that said "Could not be opened because you do not have sufficient access privileges." Not only that, but even after 6 hours of (apparently) downloading the 78 GB folder, my hard drive, which had close to 83 GB of free space, said STILL had almost that same amount.
    So did it download anything or not? What was it doing all those 6 hours? I have a file that I can't open, but apparently it's going to be empty anyway.
    Here's the full story, for anyone with the patience to listen and offer advice. It looks like now I'm looking for a way to 1) get the permissions to open the .trashes file so that I can download everything, or 2) figure out a way to get Disk Rescue II to open the files and download them regardless of the permissions.
    Full Story -
    I am pretty sure that my computer crash was caused by working with the newest version of Garageband 08. Ever since buying it and loading it, my computer has been acting funny whenever I use the Garage Band program - I could only record about one in three attempts since the computer kept freezing as soon as I finished recording a line. I would have to use force restart to get going again.
    The day the computer crashed, I was working on a Garage Band project, which kept crashing, and I was also using Finale, Microsoft Word, and iTunes -- all of which are my normal procedure and I'd never had any problems with anything before loading the new Garage Band 08. (See my posts on other discussion topics for more details). After the last freeze, the computer crashed totally and could not be restarted - it would get to the gray screen with the spinning gear and just sit there while the fans ramped up to overload.
    I used Disk Warrior to rescue whatever files I could onto an external hard drive, and I started to download all the Garage Band files. However, the "estimated time to completion" said over 6 hours , so I stopped the download after a minute or so and went on to rescue all the other files that were smaller in size and easier to download - I figured I'd set Disk Warrior to download the whole 78 GB set of Garage Band files overnight while I slept. But....when I went back to begin the download again, I noticed that the directory of Garage Band files went only to the letter "C" instead of all the way to "Z" like my original files had done during that earlier attempt to download. I am assuming that somehow, the directory for the files I download before aborting the attempt (A-C) got exchanged with the directories of the original version (A-Z), but the original directory was no where to be found.
    I decided to try an archive install in the hopes that I could just restart my computer and get the files out by hand. The archive install went fine, and the computer started up fine and got to the log-in screen, which had changed. I now had two blanks - one for user name and one for password, instead of the choices of names. I tried all my user names and passwords, and asked my wife for her names and passcodes, but nothing worked. The computer had apparently re-set all its permissions and User accounts. I tried using Disk Utility to reset the password in its opening screens, but instead of getting several User options, the only one it allowed me to attempt was "System Administrator (root)", and even that wouldn't let me in to change any passwords.
    That's when I downloaded Data Rescue II, which does seem to do a good job of locating lost files. However, since I didn't have permissions to open the computer the last time, I am still apparently facing the same thing when I try to access files copies OFF the computer.
    So I'm not out of the woods yet. I can see the files on the Data Rescue screen, but I don't know whether they have permissions tied to them or not, and if they do, whether the system would let me since I don't know what the passwords and user names have defaulted back to.
    Any advice? Please?

  • What is the correct way to format file paths and names in the structapp file?

    I am trying to create a structured application to export fm files as xml, and probably read the xml back to fm.
    In the structured application file (structapp), I need to specify the locations of the various files (DTD, read/write, template, etc). I would like to place these files on a shared server so others can use the same structapp file (that is, a cop of it). What is the correct way to format the file paths and names? Can folders folder names and file names have spaces in them? I tried the following, for example:
    \\serverName\shareName\folder 1\folder 2\file name.dtd
    I use the same format for the template file and the read/write rules file.
    When I try to save an fm file to xml, FrameMaker says that it cannot read the DTD; however, the resulting xml file appears to be well-formed. The DOCTYPE element in the resulting xml is formatted with forward slashes and spaces replaced with %20.
    I tried using forward slashes and replacing spaces with %20, but then I get an error about reading the read/write rules.
    NOTE: I have another structured application to read xml into fm. This application does not have a DTD file. The template and read/write rules files are specified as above. Except for complaining about a lack of a DTD, the application works fine; it even applies an XSLT in the process. Again, when I DO add a DTD to this latter application, I get the same complaint about not being able to read the DTD.
    I am using fully patched FrameMaker 9 in Windows XP.
    Thanks,
    Van

    Hi Van,
    The XML parser and FrameMaker are not the same thing. The Error Log says which component created which message. The XSL processor is another option that can throw messages. The "\\server\path\some.dtd" syntax in structapps.fm seems to be fine for some tools, as Internet Explorer with XML tools successfully finds the DTD which appears as "//server/path/some.dtd" in the XML. But apparently Xerxes, the XML parser bundled with FrameMaker, does not like this notation.
    If you have a path with a drive letter, "H:\path\some.dtd", FrameMaker turns that into "file:///H:/path/some.dtd". It seems, Xerces would like to see "file:/" in front of absolute paths.
    This is what I have in structapps.fm:
    Template: \\server\path\projecttemplate.fm
    DTD: some.dtd
    Read/write rules: \\server\path\projectrules.txt
    DOCTYPE: …
    Entity locations
      Entity search paths
        1: \\server\path\
    In the structapps.fm I have the DTD without path information. The resulting XML (without XSL postprocessing) then contains just the file name with a relative path back to the book folder (when saving a book as XML). It therefore requires the DTD to be available at this place. I handle this using an event script that fires for NotePreSaveXml and copies the DTD to the folder of the original document.
    As I always use XSL postprocessing and using XSLT1 it is not possible to have the doctype-system as a parameter I have this in my XSL stylesheet:
    <xsl:output doctype-system="some.dtd" />
    For the resulting XML the DTD is expected to be in the same folder as the XML file. This is handled by the same event script as above, it therefore copies the DTD to the source and the target folder.
    Bottom line: If you want/have to use UNC paths, you have to do some programming to work around a FrameMaker bug.
    - Michael

  • Header Name in the output file using content conversion

    Dear All,
    I want to have a text file with a header in the output. I have given the following values for content conversion:
    RecordSet structure = Record,Row
    Record.fieldSeparator='nl'
    Row.endSeparator='nl'
    Row.fieldSeparator=','
    Row.addHeaderLine=1
    but still I am not getting header in the output file. Please tell me where I am making a mistake in getting the header.
    Reg,
    NJ

    hi chirag,
    thnx for replying.
    i m getting the required output file without any error but i m not getting header. i hve added "addHeaderLine" parameter in content conversion but still i m not getting header in the output file.
    reg,
    nj

  • Input file should be deleted only after the output file is successful.

    Hi Experts,
    Could you pleas solve the below issue.
                           In  a file to file scenario, the input file will be picked from a directory location and after processing output file will be placed in the output directory location specified in the receiver communication channel.
    In the sender communication channel for the scenario mentioned above, if the processing mode is given as delete, the input file will be delete as soon as the file was successfully read by the adapter, but this will not ensure that the file processing is complete and the output file is being created.
    If we have a scenario in such as way that the input file should be deleted from the input folder only if the complete process is successful and the output is generated. how can we achieve this functionality?.
    And one more thing if we got the successful output the output file should be placed in one folder. and the if the output file is having errors it should be placed in other folder.

    Hi,
    In Receiver communication channel I have used the below command in Run Operating System
    .And I have kept the processing mode of sender communication channel as test.
    cmd.exe: /C "del /Leela/test.xml"
    You are running the comman line program configured in the receiver File Adapter,but in command line you mentioned the Sender File Folder , So i guess it's not getting processed.
    Try this:
    Try to run the command line in the Sender File Adapter Side
    "Place this in " --> Run OS Command After Message Processing.
    Hope this would work and get in parrallel with u r requirement.
    regards
    Srini

  • VB Script to move a file with date in name

    I'm so stuck but I know Im close.  So its friday and I'm brain dead and I'm asking for some help please.
    I have FILES starting with dates
    140729HDF0.835
    140730HES0.835
    140731UHG0.835
    and I need to move the files that are dated in the file's 2 days back.
    Dim ObjFso
    Dim SourceLocation
    Dim DestinationLocation
    Dim FileName
    Set ObjFso = CreateObject("Scripting.FileSystemObject")
    dteYesterday = DateAdd("d", -1, Date)
    SourceLocation = "c:\835old"
    DestinationLocation = "c:\835new"
    FileName = (Year(dteYesterday), 2) & Right("0" & Month(dteYesterday), 2) & Right("0" & Day(dteYesterday), 2) & ".835"
    ObjFso.MoveFile SourceLocation & "\" & FileName, DestinationLocation & "\"
    It's something in my FileName= because if I simply change it to
    FileName = "*.835"
    its works.  Can anyone help please??

    This approximates what you need to do:
    Set fso = CreateObject("Scripting.FileSystemObject")
    strFileDate = Right(Year(Now-1),2) & Right("0" & Month(Now-1),2) & Right("0" & Day(Now-1),2)
    source = "c:\835old"
    destination = "c:\835new"
    folder = fso.GetFolder(source)
    For Each fi In folder.Files
    If Left(fi.Name,6) = strFileDate Then
    fso.MoveFile fi, destination
    End If
    Next
    ¯\_(ツ)_/¯

  • How to capture file modification date and time over the web

    HI!
    I am creating a web based application and I am using webutil package for al lot of my work being that I ma working with renamin,deleting and uploading files for a users machine to the database. There is one functionality thing that I have to do in this application that webutil does not take care of and that is capturing the modification date and time from a file on the users machine. Please help me capture the date and time of a file on the users machine.
    Thanks!

    Since webutil allows you to write file on client PC directory, then you first create a directive file, then host that directive file. the directive file content is just the command lines when you manually do it on PC.
    Refer the ideas--just the ideas not the same built-ins in this URL:
    Hyperlink in forms

  • When I create a calendar, in iphoto 8, I had an information pane lower left corner with date and time of the picture. Can it possibly be that the iphoto developers forgot about that in iphoto 9? This was very helpful when placing images according to date.

    Today I updated to the latest iphoto version. The update itself went smooth and nice as one is used to from Apple. But when I wanted to finish my already started calendar, I have encountered two problems. The first is that I can't view the aperture library anymore directly from iphoto. Instead I have to open the iphtoto library in aperture but then my calendar isn't there. So now I have to copy images back and forth. No problem.
    However, the old iphoto had a small information area in the lower left corner which was very nice to place images on an exact date. This seems to be gone...?? Really? How am I supposed to sort images according to date and time when I have to back to the library view every time? That's not very convenient..Or am I missing something?
    Thanks for ANY help!
    Patrick

    The first is that I can't view the aperture library anymore directly from iphoto.
    THat is exceeding strange since iPhoto '08 could not open or share an Aperture library - that ability was first introduced in iPhoto '11 - with the latest version of iPhoto and or Aperture you can open the same library with either application - http://support.apple.com/kb/HT5043
    In the current version of iPhoto the photos are sorted by date in the film strip - I've not recently done a calendar so do not remember the specifics -
    LN

  • Date and Time in the flat file

    Hi All,
    I am trying to design a flow which will get data from a flat file. The file has a field which contains both the time and date. How can I handle this in BW? Do I need to creat 2 infoobjects and split the flat file field in start routine or transfer rule? Or is there any stadard infoobject which can hold both the data and time?
    Also, the client asked me if I want a .CSV file or .XLS file. Which one is better for uploading into BW? Any PROS and CONS?
    Best Regards,

    Hi,
    There is no single Data Type which accepts the Date and Time. Other way is to look the data as CHAR. Else the Update Routine/Formula is the Best
    In the Update Rule or Transfer Rule use the Formula
    Let the Info Objects be
    0date
    0Time
    The Transfer Rule/ Update Rule Formulas Be
    0Date --> LEFT( 8, 'DateTime' )
    0Time --> RIGHT(6, 'DateTime')
    Then CSV is the best Option to accept the Data as it is ready for Upload
    Regards
    Happy Tony

  • Can I present a keynote file with video and audio over the internet? If so how?

    I have tried this with Adobe Connect but it' not ideal since the frame rates drop dramatically and there is no sound. I can upload powerpoint files directly to Adobe connect but there is no option to upload Keynote files. I know I can export Keynote fiels to power point but this work-around is ugly.
    -Idotel

    Keynote takes over complete control of the graphics system to play the presentation, therefore the display that is not showing the presentation will be black.
    The only time the  monitor not showing the presentation can show video, is when using Presenter Diisplay in Keynote.

  • How to output a postscript file with .ps extension name in jsp?

    Hi,
    I could use a servlet to output a postscript file with .ps file extension name. But I tried to do the same with jsp, for some reason, jsp always outputs a file with .jsp extension name though the content is postscript. Could anyone help me on this? Here is my jsp code:
    <%@page contentType="application/postscript"%>
    <%@page pageEncoding="UTF-8"%>
    <%@page import="java.util.*" %>
    <%@page import="java.io.*" %>
    <jsp:useBean id="corresv" class="oiintranet.CorresVBean" scope="request"/>
    <%
    response.setContentType("application/postscript");
    String corresId = request.getParameter("Id");
    corresv.setCorresId(corresId);
    PrintWriter output = response.getWriter();
    output = corresv.getResult(output);
    output.flush();
    %>
    In the bean corresv:
    public class CorresVBean extends BaseBean {
    private String corresId;
    public void setCorresId(String s) {
    this.corresId = s;
    public PrintWriter getResult(PrintWriter output) {
    //get postscript file content from a socket, one string line each time until reaches "X_END"
    String str;
    while ((str = in.readLine()) != null) {
    if (str.equals("X_END")) break;
    output.println (str);
    output.close();
    }catch(Exception e) {
    e.printStackTrace();
    return output;
    Thank you in advance.
    Geraldine

    Hi
    Every time u want to make a file u need to make its extension. I am talking
    about general scenario like word, excel so even when u make spool file
    so u need to give extension.
    like
    Spool temp.sql
    it will save u r file as sql file.
    hope it will help
    regards

  • DataMart Interface - Date and time of the transferred data

    Hello,
    We have a requirement to build a datamart (cube to cube) between two BW systems, using deltas; this is OK and should not present any issue. However a further requirement has arisen, requiring to provide date and time of the created files to outbound systems. I have been looking to RS* and RO* tables for finding out the details of the delta queue.
    Table RSDMDELTA provides the Data Mart Delta Management: could this table be used to provide required details? Or are there any other relevant tables containing this info?
    Thanks&Regards,
    Begonia

    Hi,
    Thanks for your quick response. We are not using openhubs, but a direct cube to cube datamart - by generating the cube as exporting datasource.
    Is there any equivalent table in this case?
    Thanks&Regards,
    Begonia

Maybe you are looking for

  • Error in XML Publisher File Reporting

    Hi, I am getting following error on XML publisher report. Error generating report output : (235,2309) PSXP_RPTDEFNMANA GER.ReportDefn.OnExecute Name :ProcessReport PCPC: 97120 Statement:2012 Called from:APP_Engine.Repor t.GBL.default.1900-01-01.Step0

  • Are there any tools available to find the Server's availability?

    I have been trying to find out a tool/script to figure out the server's complete availability. Please be noted that I need to find only the complete availability for the whole month say July-2014, And there are many other reasons that some of these s

  • Can the font of Portrait content listing be changed?

    I found that I can only change the title, but not the listing. Can this be done? I wish to use a child-like font as this is a book for kids.

  • Classpath read only

    hi , I import configuration and tried to create project for existing Dc but i got error as classpath is read only. It is also showing name clash against class path file in DTR perspective. even when i tried to sync same DC i got following error . How

  • WCCP with Catalyst6500 version 12.2(33)SXH1

    recently I deployed WAAS 4.1.1c with Catalyst6500. We have several different L3 vlan interfaces configured as wccp 61/62 redirect in. The L3 vlan interface connected to the direct servers is normal. However, I found that L3 vlan interface connected t