Change the name of a file.

Hello, I don't how can I change the name of a file ?.
Somebody can help me, please?
For example : c:\out\prove1.csv to  c:\out\prove1_09112007_163001.csv
Thanks

Another way would be to use the FILE_COPY and
FILE_DELETE of the class CL_GUI_FRONTEND_SERVICES to first copy the file and then delete the other one.
REgards,
Rich Heilman

Similar Messages

  • BEx Brodcaster for Workbook - Cannot change the name of attachment file.

    Dear All Experts,
    I am using the BEx Broadcaster to distribute report of workbook via email. The name of attchament file in email is the technical of workbook. I want change the name of attchment file and found this thread
    [Broadcasting Workbook - Change attachment filename|Broadcasting Workbook - Change attachment filename] that reference to method in background process. Can I create customize program or method to change the name of file.
    Thank you and really appreciate your help.
    Zilla D.

    Hello Zilla,
    By SAP methods, this is not possible. There is no way to do that. May you can suggest it on our Community of Innovation. See note 11.
    This is not only your concern. Some customers already request this functionallity.
    Best Regards,
    Edward John

  • Trying to change the name of 1 file

    I have searched the topic and have not found a solution that works for me,
    I am trying to write an AppleScript that will change the name of a single file from path:old.txt to path:new.txt
    I have tried
    tell application "Finder"
    set name of file "work.txt" to PartA & PartG & ticker & ".txt"
    end tell
    among others and always either receive an error message, access denied or unable to set old file name to new file name

    You're missing the point.
    set name of file "work.txt" to PartA & PartG & ticker & ".txt"
    When you set the name of the file, the Finder needs two things - the original file that you're trying to rename, and the new name you want it to take.
    In your revised script you're specifying the existing name (not path) of the file you want to change, and specifying its path along with the new name. That's the wrong way around.
    Think of this command in the following manner:
    set name of (original file specification) to (new file name)
    Now, in the case of the 'original file specification' you need to provide enough information for the Finder to identify the file. You're just saying 'work.txt', but that is not enough (and that's why it's complaining). There could be a hundred 'work.txt' files spread around in different directories on your disk. How is the Finder supposed to know which one you want to change?
    A better format would be:
    tell application "Finder"
      set name of (file "work.txt" of path to desktop) to "ABC.txt"
    end tell
    In this way the Finder can absolutely identify which file you want to change (the file 'work.txt' that's on your desktop) and the new name you want it to take.
    Now, if the file is not on your desktop you can amend the script to include the relevant path, e.g.:
    tell application "Finder"
      set name of (file "work.txt" of folder "blah" of disk "disk name") to "ABC.txt"
    end tell
    This tells the Finder to look in the folder 'blah' on the specified disk.
    You can also do this by including the path to the file in the form:
    tell application "Finder"
      set name of (file "disk name:blah:work.txt) to "ABC.txt"
    end tell
    where you use : to delimit each folder in the path.
    Hope that helps.

  • How can i change the name of this file?

    In finder, the file under "desktop".

    Click on the file to highlite it, and hit the return key. Edit text/file name.
    You can not change the Places name: Desktop
    Message was edited by: leroydouglas

  • Logic changing the names of audio files when I drag and drop into arrange

    i am dropping some 44.1/24 bit files into logic and for some reason out of nowhere the names of the files are changed. it removes digits i have entered in the file for identification purposes, so i am no longer sure what they are, and seems to be replacing it with "#". could it have something to do with import settings? i have not changed any...

    This happens because until recently Logic didn't handle long filenames very well.
    Long filename support was added in Logic 9.1.x so I recommend upgrading to that version - or using shorter file/pathnames.
    The #7875 bit appended to the name is the number of the disk block the file is stored at...

  • How to open a file, change the name and write file

    Hi,
    I want to open an existing .dat-file in Labview, manipulate the data and save this data into a new file with a different file name.
    Though the name should be different I would like to use the old name and add something to it.
    (In my programm the .dat file containes the date and time the data was
    measured and I would like to keep this information in the filename.)
    For example: the original title is file1.dat now I want to save it as file1_manipulated.dat
    Is that possible? What is the best and easiest way to do it?
    Thanks a lot
    Chris

    Hi Mike,
    thanks for your help.
    This will give me my path in string format. But to open a new file and then write my data into it, I need a path format (see right side of png)
    Is that right?
    I attached a png, so you hopefully get an idea where this is going. (I know this won´t work yet)
    I open a file and this filename depends on the date and time the data was recorded. So I can´t work with a stringconstant.
    Sorry for this beginner questions - this stuff is absolutly new to me.
    Thanks in advance
    Chris
    Attachments:
    newfile.png ‏11 KB

  • Existing cross Reference: how to change the name of the file it refers to?

    Hi everybody,
    I am a professional translator.
    One client of mine sent me a complete FrameMaker 9 book file for translation.
    I translated the content via a CAT-Tool and now am in the process of checking if cross references and markers are ok directly into the file.
    I noticed that many cross references are linked to another file of the book. But in the process of translating each file separately, I gave them a slightly different name (I added the language at the end) so as to be able to recognise them eventually.
    Now I have this problem: I cannot find in the cross reference interface where to change the name of the file into the new one the cross reference is supposed to refer to.
    Am I right in wanting to change the file reference? If so, how do I do that?
    Or is it better to avoid this task and rename the translated file into their original names ? Would it work then?
    Thanks for your help.

    ... book file ...
    ...  each file separately, I gave  them a slightly different name (I added the language at the end) ...
    I'm guessing that you renamed the component files by means other than using the Edit > Rename File from the Book menu.
    If so, do over. Rename from the Book menu. It automatically revises all the cross-references in all the component files.
    In a Book, the only thing that's safe to rename with the file manager is the .book file itself.

  • How do I change the name of an empty album in my photo file?

    Could someone out there please tell me how to change the name on a photo file and or delete one?

    In the Photos app, go to the Albums list and tap the Edit button.  Pick an album, tap the red icon on the left and then tap the Delete button. 
    Don't think you can change the name of an album or a photo without relying on a computer.

  • How do I change the name property of a file in a document library?

    I am trying to come up with an Event Receiver that will change the name property of an file when it is uploaded. For instance when a file is uploaded into a document Library, currently the Title is being generated (which is fine)...I want to be able to
    change the "Name" property from whatever it is, to match exactly what is in the "Title" property. Are there any sample codes/blogs out there that I can take a look at? Has anyone  had any experience doing this? It seems like something
    that should be straight forward, to change the "Name" property to match what is in the "Tilte" property.

    Hi,     
    You can try the code below which use the SPFile.MoveTo() function to change the name of the file.
    EventFiringEnabled = false;
    SPFile f = properties.ListItem.File;
    string spfileExt = new FileInfo(f.Name).Extension;
    f.MoveTo(properties.ListItem.ParentList.RootFolder.Url +
    "/" + properties.ListItem["Title"]+ "_new" + spfileExt);
    f.Update();
    EventFiringEnabled = true;
    Here is a similar thread for your reference:
    http://social.technet.microsoft.com/Forums/sharepoint/en-US/5cafb8e4-bb85-4147-9bda-4ab42a4d4817/sharepoint-2013-event-receiver-to-rename-files-not-working?forum=sharepointdevelopment
    A link about rename uploaded file using Event Receiver for your reference:
    http://paulgalvinsoldblog.wordpress.com/2008/01/25/quick-easy-rename-uploaded-file-using-sharepoint-object-model-via-an-event-receiver/
    Best regards
    Patrick Liang
    TechNet Community Support

  • How do you change the name of a folder/file on an expansion drive

    How do you change the name of a folder/file on an expansion drive or external hard drive?

    The same way you change it on the internal drive; click on the name and wait a second or two for the field to drop into editing mode, then just type the new name. Or Get Info on the file/folder and change the name there.
    Regards.

  • Every time I download a file to my macbook pro, it saves it to downloads but changes the name and inserts % sign.  Please advise how to correct the name that it is saved under.

    Every time I download a file to my macbook pro, it saves it to downloads but changes the name and inserts % sign.  Please advise how to correct the name that it is saved under.

    Anything Downloaded with a Particular Apple ID is tied to that Apple ID and Cannot be Merged or Transferred to a Different Apple ID.
    Apple ID FAQs
    http://support.apple.com/kb/HE37

  • Changing the Name of Text Links to a File

    I happily discovered that iWeb will create download links to files such as text, spreadsheet, word processing, PDF, and the like, if you zip them. However, when I create a text link to a file, the linked text takes on the name of the file, such as YourDownload.zip, rather than keeping the description I entered when creating the link. So links to files don't work the same way that links to URLs or other web pages within a site do, in that the link path (the URL) is separate from the name or description of the link. Is there a way around this apart from using graphics objects for the links?
    Any advice would be most appreciated.

    Once the text link is created you can go back, select the text and change the name to anything you want. It doesn't have to the the name of the zipped file. An annoyance but easily overcome.
    OT

  • Changing the name of a uploaded excel file

    Hi everyone,
    I am being able to manage to change the name of a excel file when I am working on a scenario with a single file like this:
    http://imageshack.us/photo/my-images/204/67859086.jpg/
    Here goes the BUT, but when I am trying to upload several files at the same time, I am not being able to rename the files.
    http://imageshack.us/photo/my-images/694/16392664.jpg/
    When I do have several file the package works like this:
    It list all the excel files and stores them into a *.LST file, after that it stores the names on a table. After that it uses a wildcard excel file to put the info to be uploaded, the on the scenario it transforms the data and uploads it into the target tables, then I supposedly change the name but it does not work.
    Then It moves the file to another folder, and erase the name from the temp table….
    I do really appreciate your help and guidance.
    Please do not hesitate to contact me if any further information is required.
    Best regards.
    Jaison

    There is an interface as step 2. I had similar issue once when I wanted to delete Excel file that was just used via Windows ODBC driver in a step before. Solution there was to create two packages, one doing the job and a wait step at the end the other one just deletes the file. Now put the two into a master package and run it from there.
    Probably the ODBC driver has the *.xls file still in some kind of stale/cached access.

  • How to change the name of a pdf file in iBooks on ipad

    I have a number of appliance and tool manuals  as pdf files uploaded to my iPad. In order to identify them easier I would like to change the names of the files. I changed them in iTunes on my computer but they do not change on the iPad2 when I sync. Is there a  way to do this?

    Greg,
    I had been working on this a while and found what worked.  Save the pdf to your desktop with the file name as you want it.  Open up itunes on half of your monitor.  Drag the file to the library section of itunes (music, videos, books, movies etc...).  When you drag to the library section, it will put it the book section of itunes.  Sync and you will see the file in ibooks on your ipad.  Give it shot.
    Scott

  • Change the name of an image file in Photos app

    Just wondering how you change the name of an image file in the new 2015 Photos app?

    The only way to change the filename of an image is to export the image with a new filename:  When exporting you can select the title a s a new filename.
    Then reimport the renamed file to Photos and delete the original version.

Maybe you are looking for