File Created time changes when file renamed to previously used name

Any ideas on this one would be very gratefully received:
I am trying to rename a file then create a new one with the original name, as part of a solution to roll over log files after x days. 
I found that the new file had the 'created time' of the original file, which messed up the logic badly. I tried to unpick this by creating the new file with a new name, then renaming it. The new file got the correct created time initially,
but as soon as I renamed it to the original name, the created time reverted to the created time of the earlier file.
I even tried simply deleting the old file altogether, but every attempt to get a new file with the original name resulted in the created time being that of the old file.
I have used different filesystemobject instantiations for the old and new files, and I even tried creating the new file in a different run of the script, and in a different cmd session. The only thing that worked was logging out and in again before
creating the new file!
Since the created time attribute is not writeable, I'm struggling to get round this.
Here is a stripped out version that demonstrates it. I have put 5 second waits in, so you can watch the created time get reset in front of your eyes when the new file gets renamed to the old name (might need to add a column for 'created time' to Windows
Explorer)
(OS is 2008 server R2 Enterprise)
$logdir = ".\"
$logfname = "roll.log"
$RollAtDays = 0 # for testing - so it always creates a new file
If ( -not ( test-path $logdir) ){ $newdir = New-Item $logdir -type directory } 
$logfile = $logdir+$logfname
$newlog = $logdir+$logfname+".new"
$fso = New-Object -comobject Scripting.FileSystemObject
$date = Get-Date
# if file exists, test whether it requires rolling over
If ( test-path $logfile ){
 $fo = $fso.GetFile( $logfile ) 
 $dc = $fo.DateCreated
 $RollDate = $dc.AddDays( $RollAtDays )
 # write-host "$dc $RollDate"
 If( $RollDate.CompareTo( $date ) -lt 0 ){
  write-host "Roll"
  $newPath = "$logdir$date-$logfname"
  $newPath = $newPath.Replace("/", "")
  $newPath = $newPath.Replace(" ", "-")
  $newPath = $newPath.Replace(":", "")
  $fo.Move( $newPath )
  #$fo.Delete( ) #tried both renaming and deleting the original file
  start-sleep -s 5
# some code to create a file if one doesn't exist
If ( -not ( test-path $logfile) ){
 $header = "Date"
 $fso1 = New-Object -comobject Scripting.FileSystemObject
 $ts1 = $fso1.CreateTextFile( $newlog, $True )
 $ts1.close()
 start-sleep -s 5
 $fo1 = $fso1.GetFile( $newlog ) 
 $fo1.Move( $logfile )  # this is where the created date gets changed back
 #add-content $logfile $header
# some code to add a line to the log
[string]$logline = "$date"
#add-content $logfile $logline

I have to disagree with the assessment that creation time is not writable:
Get-Item test1.txt | select creationtime
(Get-Item test1.txt).CreationTime = '07/03/2014'
Get-Item test1.txt | select creationtime
CreationTime
3/20/2014 1:15:43 PM
7/3/2014 12:00:00 AM
[string](0..33|%{[char][int](46+("686552495351636652556262185355647068516270555358646562655775 0645570").substring(($_*2),2))})-replace " "

Similar Messages

  • Why does the Date Created metadata change when images are exported?How do I stop it from changing?

    why does the Date Created metadata change when images are exported?  How do I stop it from changing? I must have a prefernce set up wrong.

    I don't know what OS you are using, or what application you are using to view the data about your exported files, but on Windows and using Windows Explorer the "Date Created" field relates only to the date that the exported file was created, i.e. if viewed immediately after export it will show the date created as being the same date. In order to view "Capture Date" in something like Explorer, you first have to ensure you have included the Metadata as Conrad outlined above, then you have to adjust the display properties of Explorer to show the "Date Taken" field. Here is an example, part of a folder I exported back on March 3rd, note the difference between that last two dates:

  • N8 calendar times change when in new time zone

    How do you stop the calendar times changing when you enter a new time zone? This is very frustrating, particularly when the calendar contains flight times etc which you have entered in the local time zone of place of departure. Then when you move into that time zone it automatically changes every calendar entry! Annoying! I realise I can deselect automatic time zones, but then I'm guessing when I do change the time zone manually to where I am (so that it shows the time of day, and I can set an alarm to wake me up, etc!!!) then the same thing will happen - all my calendar entries will change. Hope someone has worked it out already.

    the times are stored on the phone in absolute time, lets call it gmt. they are then displayed on your handset in local time.
    the times aren't actually changing as you change time zones. they are very much staying the same.
    to achieve what you re after you are just going to have to enter the times in one of the text fields.
    There's no dignity in begging for kudos. Do it for the karma.

  • I keep getting the "No such file or directory" error when files really

    I keep getting the "No such file or directory" error when files really
    i did some research online and found nothing yet, can anyone help, this has been happening with new files for like a week. thanks

    additional information needed.
    solely stating "i hav problemz plz halp" never leads to a solution
    read this:
    http://www.catb.org/~esr/faqs/smart-questions.html
    Last edited by robmaloy (2009-04-21 07:16:16)

  • I was not using my Iphone for some time and when i charged it for use the screen is not lighting up. the image is very dim . Please assist to correct this situation., I tried to increase the brightness.no use.

    Iphone 3 GS was not being used for some time. When I charged it for use the screen is not becomeing bright. The images are very dim although i increased the brightness. Pls assist.

    Since it's a new machine, contact Apple Service, iMac Service or Apple's Express Lane. Do note that if you have AppleCare's protection plan and you're within 50 miles (80 KM) of an Apple repair station, you're eligible for onsite repair since yours is a desktop machine. That also might apply to newly bought ones inside the first 90 days.
    FWIW, IMO, the AppleCare extended plan's the cheapest insurance you can get for your new desktop machine.

  • Group changes when file is created in the GUI

    Hello All,
    Here is a outline of my situation. On a 10.5 or 10.6 client machine if I go to System Prefs, Accounts and click on the "+" and change to "group" and add a new group called "video" and set the GID to 264, it will create the new group.
    Then I create a new user, right click on the user and go to Advanced Options, change the UID to the number below, and change the GID to 264.
    Now if I launch the terminal and create a new file from the terminal, and then ls -la that file all is well(see below). Then I go back to the desktop and open Text Edit, create a new file and save it, the new file belongs to the wheel group. ???
    I found some info that said to get the umask to work proper I needed to create a file in /etc called launchd-user.conf and add the entry "umask 0007" to it. I did that, and now the permissions seem to work proper, just not the group.
    Am I missing a step here somewhere along the way? Any help or ideas would be great!
    Thanks
    John
    On command line (Terminal):
    Last login: Wed Oct 27 15:58:47 on ttys000
    3032973:~ jnichol2$ cd Desktop
    3032973:Desktop jnichol2$
    3032973:Desktop jnichol2$ id -a
    uid=986638623(jnichol2) gid=264(video) groups=264(video),102(com.apple.sharepoint.group.2),9001(testgroup),101(com.app le.sharepoint.group.1),20(staff)
    3032973:Desktop jnichol2$ touch . foo
    3032973:Desktop jnichol2$ ls -ld foo
    -rw-rw---- 1 jnichol2 video 0 Oct 27 16:01 foo
    Everything looks good here, but....
    Launch GUI tool, e.g. Textedit; save file “bar”
    3032973:Desktop jnichol2$ ls -la bar.rtf
    -rw-rw----@ 1 jnichol2 wheel 318 Oct 27 16:01 bar.rtf
    Notice, the permissions and group are not what we expect. I hope this helps understand the problem. Let me know if you need more info.

    Two things are going on here.
    When a new file or folder is created, the group specified is inherited from its parent folder. So if some folder "foo" has the group "video" specified, then all new files created in that folder will also get group "video". It seems like you know this already.
    The problem you are having with TextEdit is that manner in which it saves new files. TextEdit creates a temporary directory first, saves the file there, and then moves the file to its proper destination folder as a final step. This is why it isn't getting the "video" group setting applied to it - it gets the "wheel" group from the temporary folder that it's really being created in. Some other Apple apps behave this way too - Safari when saving a web page to disk, for example.
    I have filed a bug report to Apple about this a long time ago. The report I filed was listed as a "duplicate". I don't know when, if ever, this will be fixed.

  • Renaming NEF file no longer changes JPG file automatically (NOT BATCH RENAMING)

    For the last year I have been able to select a file in Bridge under the 'Content' tab and in renaming an individual NEF file, Bridge would automatically change the corresponding JPG for me. Suddenly it no longer works and I have to change each file independently. Batch renaming still works fine, but I don't want to use that every time, as that is a bit conveluded to change one letter/number in the file.
    Not sure if it was an update that changed something since the updates are automatic. I'm not finding anything in the 'Preferences' or any other area to change the setting back. How do I get it back to the way it was???

    Hi Don, and a warm welcome to the forums!
    Could be many things, we should start with this...
    "Try Disk Utility
    1. Insert the Mac OS X Install disc, then restart the computer while holding the C key.
    2. When your computer finishes starting up from the disc, choose Disk Utility from the Installer menu. (In Mac OS X 10.4 or later, you must select your language first.)
    *Important: Do not click Continue in the first screen of the Installer. If you do, you must restart from the disc again to access Disk Utility.*
    3. Click the First Aid tab.
    4. Select your Mac OS X volume.
    5. Click Repair. Disk Utility checks and repairs the disk."
    http://docs.info.apple.com/article.html?artnum=106214
    Then try a Safe Boot, (holding Shift key down at bootup), run Disk Utility in Applications>Utilities, then highlight your drive, click on Repair Permissions, reboot when it completes.
    (Safe boot may stay on the gray radian for a long time, let it go, it's trying to repair the Hard Drive.)
    If perchance you can't find your install Disc, at least try it from the Safe Boot part onward.

  • JFileChooser's approve button text changes when file

    I have a JFileChooser used for loading some XML file(s). We want the approve button's text to be "Load". When I bring up the dialog, the button text initially reads "Load", when I select a directory, it reads "Open", if I select a file again, it goes back to "Load". So far, so good.
    The problem comes when using it in a non-English language. When I bring up the dialog, the button text initially reads the appropriately translated "Load". However, when I select a directory, it changes to the English "Open". I do not see a method to use to adjust this text. Am I missing something, or is this a bug?
    Any help is greatly appreciated.
    Jamie

    Here's some code I'll put into the public domain:
    package com.graphbuilder.desktop;
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    import java.util.Stack;
    import java.util.Vector;
    import java.util.StringTokenizer;
    import java.io.File;
    <p>Attempt to improve the behaviour of the JFileChooser.  Anyone who has used the
    the JFileChooser will probably remember that it lacks several useful features.
    The following features have been added:
    <ul>
    <li>Double click to choose a file</li>
    <li>Enter key to choose a file after typing the filename</li>
    <li>Enter key to change to a different directory after typing the filename</li>
    <li>Automatic rescanning of directories</li>
    <li>A getSelectedFiles method that returns the correct selected files</li>
    <li>Escape key cancels the dialog</li>
    <li>Access to common GUI components, such as the OK and Cancel buttons</li>
    <li>Removal of the useless Update and Help buttons in Motif L&F</li>
    </ul>
    <p>There are a lot more features that could be added to make the JFileChooser more
    user friendly.  For example, a drop-down combo-box as the user is typing the name of
    the file, a list of currently visited directories, user specified file filtering, etc.
    <p>The look and feels supported are Metal, Window and Motif.  Each look and feel
    puts the OK and Cancel buttons in different locations and unfortunately the JFileChooser
    doesn't provide direct access to them.  Thus, for each look-and-feel the buttons must
    be found.
    <p>The following are known issues:  Rescanning doesn't work when in Motif L&F.  Some
    L&Fs have components that don't become available until the user clicks a button.  For
    example, the Metal L&F has a JTable but only when viewing in details mode.  The double
    click to choose a file does not work in details mode.  There are probably more unknown
    issues, but the changes made so far should make the JFileChooser easier to use.
    public class FileChooserFixer implements ActionListener, KeyListener, MouseListener, Runnable {
         Had to make new buttons because when the original buttons are clicked
         they revert back to the original label text.  I.e. some programmer decided
         it would be a good idea to set the button text during an actionPerformed
         method.
         private JFileChooser fileChooser = null;
         private JButton okButton = new JButton("OK");
         private JButton cancelButton = new JButton("Cancel");
         private JList fileList = null;
         private JTextField filenameTextField = null;
         private ActionListener actionListener = null;
         private long rescanTime = 20000;
         public FileChooserFixer(JFileChooser fc, ActionListener a) {
              fileChooser = fc;
              actionListener = a;
              fileChooser.setFileSelectionMode(JFileChooser.DIRECTORIES_ONLY);
              okButton.setMnemonic('O');
              cancelButton.setMnemonic('C');
              JButton oldOKButton = null;
              JButton oldCancelButton = null;
              JTextField[] textField = getTextFields(fc);
              JButton[] button = getButtons(fc);
              JList[] list = getLists(fc);
              String laf = javax.swing.UIManager.getLookAndFeel().getClass().getName();
              if (laf.equals("javax.swing.plaf.metal.MetalLookAndFeel")) {
                   oldOKButton = button[0];
                   oldCancelButton = button[1];
                   filenameTextField = textField[0];
                   fileList = list[0];
              else if (laf.equals("com.sun.java.swing.plaf.windows.WindowsLookAndFeel")) {
                   oldOKButton = button[0];
                   oldCancelButton = button[1];
                   filenameTextField = textField[0];
                   fileList = list[0];
              else if (laf.equals("com.sun.java.swing.plaf.motif.MotifLookAndFeel")) {
                   oldOKButton = button[0];
                   oldCancelButton = button[2];
                   button[1].setVisible(false); // hides the do-nothing 'Update' button
                   button[3].setVisible(false); // hides the disabled 'Help' button
                   filenameTextField = textField[1];
                   fileList = list[0];
              fix(oldOKButton, okButton);
              fix(oldCancelButton, cancelButton);
              okButton.addActionListener(this);
              cancelButton.addActionListener(this);
              fileList.addMouseListener(this);
              addKeyListeners(fileChooser);
              new Thread(this).start(); // note: rescanning in Motif feel doesn't work
         public void run() {
              try {
                   while (true) {
                        Thread.sleep(rescanTime);
                        Window w = SwingUtilities.windowForComponent(fileChooser);
                        if (w != null && w.isVisible())
                             fileChooser.rescanCurrentDirectory();
              } catch (Throwable err) {}
         public long getRescanTime() {
              return rescanTime;
         public void setRescanTime(long t) {
              if (t < 200)
                   throw new IllegalArgumentException("Rescan time >= 200 required.");
              rescanTime = t;
         private void addKeyListeners(Container c) {
              for (int i = 0; i < c.getComponentCount(); i++) {
                   Component d = c.getComponent(i);
                   if (d instanceof Container)
                        addKeyListeners((Container) d);
                   d.addKeyListener(this);
         private static void fix(JButton oldButton, JButton newButton) {
              int index = getIndex(oldButton);
              Container c = oldButton.getParent();
              c.remove(index);
              c.add(newButton, index);
              newButton.setPreferredSize(oldButton.getPreferredSize());
              newButton.setMinimumSize(oldButton.getMinimumSize());
              newButton.setMaximumSize(oldButton.getMaximumSize());
         private static int getIndex(Component c) {
              Container p = c.getParent();
              for (int i = 0; i < p.getComponentCount(); i++) {
                   if (p.getComponent(i) == c)
                        return i;
              return -1;
         public JButton getOKButton() {
              return okButton;
         public JButton getCancelButton() {
              return cancelButton;
         public JList getFileList() {
              return fileList;
         public JTextField getFilenameTextField() {
              return     filenameTextField;
         public JFileChooser getFileChooser() {
              return fileChooser;
         protected JButton[] getButtons(JFileChooser fc) {
              Vector v = new Vector();
              Stack s = new Stack();
              s.push(fc);
              while (!s.isEmpty()) {
                   Component c = (Component) s.pop();
                   if (c instanceof Container) {
                        Container d = (Container) c;
                        for (int i = 0; i < d.getComponentCount(); i++) {
                             if (d.getComponent(i) instanceof JButton)
                                  v.add(d.getComponent(i));
                             else
                                  s.push(d.getComponent(i));
              JButton[] arr = new JButton[v.size()];
              for (int i = 0; i < arr.length; i++)
                   arr[i] = (JButton) v.get(i);
              return arr;
         protected JTextField[] getTextFields(JFileChooser fc) {
              Vector v = new Vector();
              Stack s = new Stack();
              s.push(fc);
              while (!s.isEmpty()) {
                   Component c = (Component) s.pop();
                   if (c instanceof Container) {
                        Container d = (Container) c;
                        for (int i = 0; i < d.getComponentCount(); i++) {
                             if (d.getComponent(i) instanceof JTextField)
                                  v.add(d.getComponent(i));
                             else
                                  s.push(d.getComponent(i));
              JTextField[] arr = new JTextField[v.size()];
              for (int i = 0; i < arr.length; i++)
                   arr[i] = (JTextField) v.get(i);
              return arr;
         protected JList[] getLists(JFileChooser fc) {
              Vector v = new Vector();
              Stack s = new Stack();
              s.push(fc);
              while (!s.isEmpty()) {
                   Component c = (Component) s.pop();
                   if (c instanceof Container) {
                        Container d = (Container) c;
                        for (int i = 0; i < d.getComponentCount(); i++) {
                             if (d.getComponent(i) instanceof JList)
                                  v.add(d.getComponent(i));
                             else
                                  s.push(d.getComponent(i));
              JList[] arr = new JList[v.size()];
              for (int i = 0; i < arr.length; i++)
                   arr[i] = (JList) v.get(i);
              return arr;
         public File[] getSelectedFiles() {
              File[] f = fileChooser.getSelectedFiles();
              if (f.length == 0) {
                   File file = fileChooser.getSelectedFile();
                   if (file != null)
                        f = new File[] { file };
              return f;
         public void mousePressed(MouseEvent evt) {
              Object src = evt.getSource();
              if (src == fileList) {
                   if (evt.getModifiers() != InputEvent.BUTTON1_MASK) return;
                   int index = fileList.locationToIndex(evt.getPoint());
                   if (index < 0) return;
                   fileList.setSelectedIndex(index);
                   File[] arr = getSelectedFiles();
                   if (evt.getClickCount() == 2 && arr.length == 1 && arr[0].isFile())
                        actionPerformed(new ActionEvent(okButton, 0, okButton.getActionCommand()));
         public void mouseReleased(MouseEvent evt) {}
         public void mouseClicked(MouseEvent evt) {}
         public void mouseEntered(MouseEvent evt) {}
         public void mouseExited(MouseEvent evt) {}
         public void keyPressed(KeyEvent evt) {
              Object src = evt.getSource();
              int code = evt.getKeyCode();
              if (code == KeyEvent.VK_ESCAPE)
                   actionPerformed(new ActionEvent(cancelButton, 0, cancelButton.getActionCommand()));
              if (src == filenameTextField) {
                   if (code != KeyEvent.VK_ENTER) return;
                   fileList.getSelectionModel().clearSelection();
                   actionPerformed(new ActionEvent(okButton, 0, "enter"));
         public void keyReleased(KeyEvent evt) {}
         public void keyTyped(KeyEvent evt) {}
         public void actionPerformed(ActionEvent evt) {
              Object src = evt.getSource();
              if (src == cancelButton) {
                   if (actionListener != null)
                        actionListener.actionPerformed(evt);
              else if (src == okButton) {
                   File[] selectedFiles = getSelectedFiles();
                   Object obj = fileList.getSelectedValue(); // is null when no file is selected in the JList
                   String text = filenameTextField.getText().trim();
                   if (text.length() > 0 && (obj == null || selectedFiles.length == 0)) {
                        File d = fileChooser.getCurrentDirectory();
                        Vector vec = new Vector();
                        StringTokenizer st = new StringTokenizer(text, "\"");
                        while (st.hasMoreTokens()) {
                             String s = st.nextToken().trim();
                             if (s.length() == 0) continue;
                             File a = new File(s);
                             if (a.isAbsolute())
                                  vec.add(a);
                             else
                                  vec.add(new File(d, s));
                        File[] arr = new File[vec.size()];
                        for (int i = 0; i < arr.length; i++)
                             arr[i] = (File) vec.get(i);
                        selectedFiles = arr;
                   if (selectedFiles.length == 0) {
                        Toolkit.getDefaultToolkit().beep();
                        return;
                   if (selectedFiles.length == 1) {
                        File f = selectedFiles[0];
                        if (f.exists() && f.isDirectory() && text.length() > 0 && evt.getActionCommand().equals("enter")) {
                             fileChooser.setCurrentDirectory(f);
                             filenameTextField.setText("");
                             filenameTextField.requestFocus();
                             return;
                   boolean filesOnly = (fileChooser.getFileSelectionMode() == JFileChooser.FILES_ONLY);
                   boolean dirsOnly = (fileChooser.getFileSelectionMode() == JFileChooser.DIRECTORIES_ONLY);
                   if (filesOnly || dirsOnly) {
                        for (int i = 0; i < selectedFiles.length; i++) {
                             File f = selectedFiles;
                             if (filesOnly && f.isDirectory() || dirsOnly && f.isFile()) {
                                  Toolkit.getDefaultToolkit().beep();
                                  return;
                   fileChooser.setSelectedFiles(selectedFiles);
                   if (actionListener != null)
                        actionListener.actionPerformed(evt);

  • File extension not changing when Save as

    Hi!
    I have a strange problem. For example; I have a .psd file open and want to save it as a .jpg file. I choose Save as. The dialogue Save as opens and displays the file name. But when I choose jpg as File format the extension behind the File name doesn't change from .psd to .jpg. I have to manually change it. It's the same with other file extensions.
    Is this a bug? I experience the same problem on two different installations.
    I use Creative Suite 4, Photoshop version 11.0.1.
    Fredrik

    No, I have the "Hide Extensions for Known File Types" disabled. The file name is "name.psd". No double extensions.
    I also have tried to change the Photoshop setting "File extensions: uppercase/lowercase" but it's the same.
    I think I got the problem when I upgraded from CS3 to CS4. After that I've also upgraded Photoshop to 11.0.1. It's also strange that I'm having the same problem on two differnet installations.

  • Encore CS5.5: Error Code 19 Failed to Open MUI File for Time Line when making BR ISO

    Encore CS5.5: Error Code 19 Failed to Open MUI File for Time Line.  What is this and how do I correct it.  This happens whenmaking a Blu ray ISO with Menu or no menu created
    Using: I7 Windows7  machine with Production Premium CS5.5
    I get this wether I create a menu or no menu. I have tried several times with it. I do not know what the error is or how to correct it.
    I encoded with no errors in Premiere.
    I get this jsut after Encore starts to transcode the files.
    Please help,
    Steve

    Go back to http://forums.adobe.com/community/encore and enter
    Error Code 19
    in the area just under Ask a Question
    You may now read all the previous discussions of your error... be sure to click the See More Results at the bottom of the initial, short list if the initial list does not answer your question

  • Airport extreme usb file create times

    I have a USB network drive on my Airport Extreme.  I'm using an offline backup sevice (iDrive) to back this up.  I'm occassionally get a 1 hour (exactly) time differential between the backed up file on iDrive and the file on my USB drive.  This causes iDrive to backup thousands of files again (unecessarily).  I've seen this behavior with another backup program that used my usb network drive.  If I do a simple test - create a desktop file and then copy to the network drive, the times are correct.  Something is causing a time shift of 1 hour on my Airport or USB Drive.  Any ideas?

    Airport utility 6.1 doesn't seem to have that option.
    That is why I suggested that you might want to install AirPort Utility 5.6 to pick up the ability to manually adjust the time on the AirPort Extreme.
    Apple dropped this feature in AirPort Utility 6.x.
    and I don't know where the Airport Extreme get's its time settings.
    As I previously stated in the last post.....The AirPort Extreme picks up its time cues from AirPort Utility on the Mac or PC that was used to configure the device. All you can do in this regard is check to make sure that your Mac or PC has the correct time.....(assuming that you are using AirPort Utility 6.1)
    AirPort Utility 5.6 allows you to configure the time settings on the AirPort Extreme separately....so the settings are stored on the AirPort Extreme... but I cannot say whether this might help or solve your issue.

  • Volume Changes when File is Exported as aiff...

    Hello, I am aiming to export my audio files to aiff however, when I open the exported file with iTunes, the level of the volume is significantly lower than it was in the Logic playback. Can someone recommend how to correct this so that the volume stays consistent from one file type to another?
    Thanks!

    Turn off sound enhancer and sound check features in iTunes.
    and set iTunes volume to maximum - this iTunes slider is like the master slider in Logic, only 0 in iTunes is the maximum value:
    I found it helps to always adjust your actual listening level with hardware controls (interface, amp, etc) and keep all audio apps at unity gain - only mix in Logics' mixer. It keeps things that are already complicated just a bit easier.

  • Embed same SWF file multiple times in Flash file

    I want to include the same SWF file multiple times in the same flash file. I have a plain box that is clear, that becomes visible when clicked. I want to create a grid of them (about 50+). If I copy the layers and actions, they interfere with each other so I want to embed multiple SWF files into one file and then save it to embed in an interactive PDF. If I save one square and embed it into the PDF multiple times, the file becomes too big to work. How can I embed interactive SWF files over and over into 1 SWF file? I don't have a ton of knowledge with Flash....

    you edit your html file to embed multiple copies of your swf.
    it's generally easier to control the layout if you use swfobject (but you can just copy the code published by flash pro) to embed the swf.

  • File copy with change of file type

    I'm currently working on what seems like a simple file-to-file scenario. A file (without an extension) on server A has to be copied to server B. The name of the file on the target server should be the same as the file on the source system. Only change is that the file on the target system should get a .txt extension. After trying various options I'm stuck on the .txt extension.
    I enabled File Name in Adapter Specific Message Properties on both the sender and receiver communication channels. With this option the file gets copied to the target server with the same name, but I cannot add the .txt extension. I also followed the instructions in this blog: https://www.sdn.sap.com/irj/scn/weblogs?blog=/pub/wlg/2664. [original link is broken] [original link is broken] [original link is broken] Unfortunately, I don't see the file name in the payload of my message, which means I cannot use it in the Variable Substitution option of my receiver communication channel.
    Does anyone know what I might be doing wrong here?
    Edited by: Cheese2 on Jul 15, 2009 12:39 PM

    use dynamic configuration. you can manipulate the file names very easily - /people/shabarish.vijayakumar/blog/2009/03/26/dynamic-configuration-vs-variable-substitution--the-ultimate-battle-for-the-file-name
    /people/michal.krawczyk2/blog/2005/11/10/xi-the-same-filename-from-a-sender-to-a-receiver-file-adapter--sp14 - in your case as per this blog all you need to change in the code will be;
    DynamicConfiguration conf = (DynamicConfiguration) container.getTransformationParameters().get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
    DynamicConfigurationKey key = DynamicConfigurationKey.create("http://sap.com/xi/XI/System/File","FileName");
    String ourSourceFileName = conf.get(key);
    ourSourceFileName = ourSourceFileName + ".txt";
    return  ourSourceFileName;

  • Can I export an .mp4 file created by Adobe Premiere Pro CS4 to tape using alternative software?

    I am editng with Premiere Pro CS4 on a Windows XP system.  I attempt to disable all startup and background software .  When i export a one hour completed project to tape, I invariably get at least one glitch (momentary stop) on the resulting tape. Is there an alternate program I can use to export to tape an .mp4 file created by CS4?

    Could be wrong, but as far as I know the only way to "export" to tape is to PLAY the timeline while the camera is connected via Firewire and in record mode

Maybe you are looking for

  • Error while trying to run Human Interactive Task in BPM11g Workspace

    Hi All, I am getting the below exception and tried to configure the Java Heap size parameters in the files "setDomainEnv.cmd" & "setSOADomainEnv.cmd" inside domain server folder to a value where I should not get the below issue but still it persists.

  • Process chains issue:very urgent

    Hi All, This issue is related to process chains.Last weekend our Basis team changed the BW PRD from BWBPRD to BWBPRD1.The process chains were schedlued previously on BWBPRD, so after the server change none of the process chains were triggered. We hav

  • PO Output message triggering for change in PO

    Hi, We have configured a output message type for PO create . The output message is defiend for condition record doc type, partner as LS and medium A(ALE) and partner name. Once PO is created the output is getting triggered and idoc created.If I make

  • Procedure call from SQL*Plus in Korn Shell Script

    I am trying to excute a procedure from sqlplus, truncate_audit_table. I doesn't execute. If I do it manually it executes. I have tried multiple ways, as below. This is inside a Korn Shell scripts that creates the procedure and counts the aud$ table.

  • Bulk collect

    hello every one i wrote simple bulk collect it is giving me an error, i wrote it as per book for 9i, also this one not working Please help what is wrong inthe code. error is wrong type in fetch declare      type v_varray is table of emp%rowtype;