Using a shutdown script to save files to local sever

Hello,
I am writing a shutdown script which runs when the use shuts their computer down. The goal is to back up some user files to a local sever. I am wondering if the shutdown will be delayed until the file is uploaded to the server. The file is approx 1 - 2 gb
in size which would take a few minutes to send over to the server.
I have used gpedit.msc and linked the batch file I wish to run.
However, I have a few questions regarding this. Does windows wait for the batch file to finish executing before shutting down? If not,
is there a way to delay the shutdown long enough for the file to send?
For dev purposes I have experimented using a log off script (faster than constantly shutting off/turning on), however windows does not seem to want to wait and logs off before the btach file is finished executing. In the test batch script, I used the pause
command to test if it would wait for me to finish executing the file before it logged off, but it seems that it does not want to wait and just goes ahead and logs off before it is done.
The only work around I can think of is using a batch file which saves the files then turn off the computer
instead of a script being run at shutdown - this might be not a practical solution since I have to integrate this into several workstation computers. Also, some employees may forget to use the file to shut down. I am also not sure how keen my boss
would be for me to change the entire way everyone shuts down their computer (by running my batch file instead of the usual start->shutdown). If this is the only way to go about it I will discuss with him what needs to be done however I much prefer there
to be a script that automatically runs when they shut their computers off.
To wrap it up:
Using a shut down script, how do I delay the shutdown long enough for files to be saved to a local server? Will windows automatically wait for the batch script to finish executing before turning off?
Kind regards,
- Strider

Hello Strider,
It seems that you issue is related with windows client, I suggest that you could post it to:
https://social.technet.microsoft.com/Forums/windows/en-US/home?category=w7itpro%2Cw8itpro%2Cwindowsvistaitpro%2Cwindowsxpitpro%2Cwindowsintune
The current forum you post to is used to discuss general issues about developing applications for Windows.
Thanks for your understanding.
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click
HERE to participate the survey.

Similar Messages

  • How does CS2 Photoshop use OSX to retrieve and save files?

    CS2 Photoshop (PS) no longer will open or save files; instead it goes into limbo. I can import an image from the clipboard and edit it. It will save it, but I can't get PS back to working after that.
    This began suddenly about 3 days ago. Since then I have cleared the PRAM, run TechTool and optimized the drive, removed and reinstalled CS2, trashed relevant preference files (I think I got them all)—all to no avail. Interestingly it runs fine on another account on the same computer!
    I would like to know what files other than the obvious preference files are used as interfaces between PS and OS 10.3.9, and hear any other suggestions that you might offer.
    No other application seems to have any problem with filing, including the other CS suite members.
    Thanks!

    Since it's only your account that's affected, then it must be something in your account.
    Quit Photoshop. In the Preferences folder of your account, delete the entire folder, "Adobe Photoshop CS2 Settings". You will of course need to reset all of you preferences in Photoshop. To avoid that if it's not the preferences that are the problem, just move the settings folder to the desktop. Then you can just move it back.

  • How can I use my time capsule to save files from my windows PC (Windows 8.1)?

    I have been to see the iStore close to where I live but I am frustrated to say that they are no help what so ever. The technical desk there freely admits that they do not how to do it and all they say is "apparently it is easy. Just follow the instructions on screen" which helps me no end!
    I have the Time Capsule set up on my mac and want to use part of the disc to save my files from my Windows PC (running Windows 8.1) that is on the same home network.
    I have found the apple forums so helpful in the past that I am pinning on my hopes on anyone that can help me via the forum now!

    Load the airport utility for windows. Sadly the most recent one is old.
    http://support.apple.com/kb/dl1547
    Although it is for windows 7 it does work on 8 and 8.1 .. tell us if you have problems loading it. Some people find it won't work without using safe mode.
    The utility will not help a lot to setup the latest model TC.. it is fine for Gen4 and earlier. But it does load bonjour for windows and a disk access agent.
    The TC should run simple names.. Short.. keep them below 10 characters if you can. No spaces and pure alphanumeric.
    That includes the base station name and wireless name.
    Once all of that is correct, open windows explorer and type in the address bar.
    \\TCname or \\TCipaddress where you replace TCname with the new short name or TCipaddress with obviously its actual IP.
    You will then get a request for username and password. Username is whatever.. admin will do. Password type in your disk access password.. public by default.
    TC is not designed to allow partitions so you cannot partition the TC disk. Create a folder and simply copy and paste your files to the folder.
    NOTE:: The TC cannot back itself up. So make sure you do not move files to the TC without having another copy.
    NOTE:: The TC does not happily mix TM backups and data.
    See http://pondini.org/TM/Home.html For info about TM and the TC.
    This area in particular.
    Q3 http://pondini.org/TM/Time_Capsule.html
    On mixing data and backups.

  • Deployment of Turkish Language Pack using GPO shutdown script

    Running the following command through cmd installs the desired language pack successfully on a client machine with Office 2010:
    \\server\share\Office\setup.exe /config
    \\server\share\Office\OMUI.tr-tr\config.xml
    The question now is "How can I deploy the language pack via GPO?"
    I'm using the following batch to deploy office 2010 in my environment, so far my attempts to deploy the language pack using a modified version of this batch failed...
    What would I need in this batch file to achieve language pack deployment? 
    setlocal
    REM *********************************************************************
    REM Environment customization begins here. Modify variables below.
    REM *********************************************************************
    REM Get ProductName from the Office product's core Setup.xml file, and then add "office14." as a prefix.
    set ProductName=Office14.PROPLUS
    REM Set DeployServer to a network-accessible location containing the Office source files.
    set DeployServer=\\xx\Office2010SourceFiles32bit
    REM Set ConfigFile to the configuration file to be used for deployment (required)
    set ConfigFile=\\xx\Office2010SourceFiles32bit\ProPlus.WW\config.xml
    REM Set LogLocation to a central directory to collect log files. (the user doing the install needs write access)
    set LogLocation=\\xx\Office2010LogFiles32bit
    REM *********************************************************************
    REM Deployment code begins here. Do not modify anything below this line.
    REM *********************************************************************
    IF NOT "%ProgramFiles(x86)%"=="" (goto ARP64) else (goto ARP86)
    REM Operating system is X64. Check for 32 bit Office in emulated Wow6432 uninstall key
    :ARP64
    reg query HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432NODE\Microsoft\Windows\CurrentVersion\Uninstall\%ProductName%
    if NOT %errorlevel%==1 (goto End)
    REM Check for 32 and 64 bit versions of Office 2010. (Office 64bit would also appear here on a 64bit OS)
    :ARP86
    reg query HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\%ProductName%
    if %errorlevel%==1 (goto DeployOffice) else (goto End)
    REM If 1 returned, the product was not found. Run setup here.
    :DeployOffice
    start /wait \\xx\Office2010SourceFiles32bit\setup.exe /adminfile \\xx\Office2010SourceFiles32bit\updates\office2010custom32bit.msp
    echo %date% %time% Setup ended with error code %errorlevel%. >> %LogLocation%\%computername%.txt
    REM If 0 or other was returned, the product was found or another error occurred. Do nothing.
    :End
    Endlocal
    Ideally what I want to achieve at start up is to check for Office 2010, deploy Office 2010 if it's not already deployed, check for language pack, deploy language pack if it's not already deployed.
    Thanks

    To deploy Office 2010 va GPO, refer to the following video, follow the detailed steps in it to see if it works well:
    http://www.youtube.com/watch?v=dYPbFyLH66k
    Here's also a link for your reference:
    http://blogs.technet.com/b/office_resource_kit/archive/2010/01/19/deploying-office-2010-with-multiple-languages.aspx
    http://technet.microsoft.com/en-us/library/ff602181.aspx
    Hope it helps

  • Forms6i under linux and save file on local pc

    How to save a local file using form6i under a linux server? I can't usi win api and webutil...another way? Thx!

    Here you go:
    <%@ page import="
    java.io.File,
    java.io.OutputStream,
    java.io.FileOutputStream,
    java.io.ByteArrayOutputStream"
    %>
    <%
    String contentType = "application/vnd.ms-excel";
    String fileName = "testFile";
    fileName = fileName + ".csv";
    response.setContentType(contentType);
    response.setHeader("Content-Disposition","filename="+fileName);
    out.print("I am the only data in the file");
                   String FileName = "c:/testFile.csv";
                   OutputStream os = new FileOutputStream(FileName);          
                   ByteArrayOutputStream baos = new ByteArrayOutputStream();
                   String text = "test string";
                   byte buf[] = text.getBytes();
                   baos.write(buf);
                   baos.writeTo(os);
                   baos.close();
                   os.close();
    %>

  • Save File on Local PC

    Hi,
    Is it possible to save the output of a JSP file in .csv format? I do not want to force the user to click on save. Once the user clicks on submit, I would like to display the page and also save the file (file.csv) on their computer (i.e. c:\temp\JSP).
    Is this possible? If so, how can I proceed?
    Thanks

    Here you go:
    <%@ page import="
    java.io.File,
    java.io.OutputStream,
    java.io.FileOutputStream,
    java.io.ByteArrayOutputStream"
    %>
    <%
    String contentType = "application/vnd.ms-excel";
    String fileName = "testFile";
    fileName = fileName + ".csv";
    response.setContentType(contentType);
    response.setHeader("Content-Disposition","filename="+fileName);
    out.print("I am the only data in the file");
                   String FileName = "c:/testFile.csv";
                   OutputStream os = new FileOutputStream(FileName);          
                   ByteArrayOutputStream baos = new ByteArrayOutputStream();
                   String text = "test string";
                   byte buf[] = text.getBytes();
                   baos.write(buf);
                   baos.writeTo(os);
                   baos.close();
                   os.close();
    %>

  • Advanced "Save as PDF" script that saves 2 PDF presets with 2 different Names

    HI Everyone,
    I am looking to improve a save as pdf workflow and was hoping to get some direction. Here is the background...
    I routinely have to save numerous files as 2 separate PDFs with different settings (a high res printable version and a low res email version). Each file has to be renamed as follows...
    Original filename = MikesPDF.ai
    High Res PDF Filename = MikesPDF_HR.pdf
    Low Res PDF Filename = MikesPDF_LR.pdf
    I was able to alter the default "SaveAsPDF" script to save the files to my desired settings and to add the suffix to the name. So with these scripts here is how the workflow operates...
    1. Open all files I wish to save as pdfs
    2. Select script to save files as high res pdfs
    3. Illustrator asks me to choose a destination.
    4. Illustrator adds the appropriate suffix and saves each file as a pdf to my desired setting. ("Save As" not "Save a Copy").
    5. Now all of the open windows are the new pdfs, not the original ai files.
    6. Now I have to close each window. For some reason Illustrator asks me if I want to save each document when I tell it to close window, even though the file was just saved. I tell it to not save and everything seems to be fine.
    7. Reopen all the files I just saved as high res pdfs.
    8. Repeat the entire process except I run the script specifically designed for the low res pdfs.
    What I would like to do is to combine these two processes so that there will be one script that saves both pdfs. From what I understand, the script can't support "Save A Copy" so the workflow would go as follows...
    1. Open all files I wish to save as pdfs
    2. Select single script to save files as both high res and low res pdfs
    3. Illustrator asks me to choose a destination.
    4. Illustrator saves each file as a High Res PDF and adds the the "_HR" suffix.
    5. Illustrator then re-saves the open windows as a Low Res PDF and replaces the "_HR" suffix with "_LR".
    Here is the code for the High Res script, The Low Res script is pretty much the same except for a different preset name and different suffix. Any pointer that anyone could give me would be most appreciated. I am pretty much a noob to this stuff so please keep that in mind.
    Thanks!
    Mike
    ---------------------------CODE----------------------------
    /** Saves every document open in Illustrator
      as a PDF file in a user specified folder.
    // Main Code [Execution of script begins here]
    try {
      // uncomment to suppress Illustrator warning dialogs
      // app.userInteractionLevel = UserInteractionLevel.DONTDISPLAYALERTS;
      if (app.documents.length > 0 ) {
      // Get the folder to save the files into
      var destFolder = null;
      destFolder = Folder.selectDialog( 'Select folder for PDF files.', '~' );
      if (destFolder != null) {
      var options, i, sourceDoc, targetFile;
      // Get the PDF options to be used
      options = this.getOptions();
      // You can tune these by changing the code in the getOptions() function.
      for ( i = 0; i < app.documents.length; i++ ) {
      sourceDoc = app.documents[i]; // returns the document object
      // Get the file to save the document as pdf into
      targetFile = this.getTargetFile(sourceDoc.name, '.pdf', destFolder);
      // Save as pdf
      sourceDoc.saveAs( targetFile, options );
      alert( 'Documents saved as PDF' );
      else{
      throw new Error('There are no document open!');
    catch(e) {
      alert( e.message, "Script Alert", true);
    /** Returns the options to be used for the generated files. --------------------CHANGE PDF PRESET BELOW, var NamePreset = ----------------
      @return PDFSaveOptions object
    function getOptions()
    {var NamePreset = 'Proof High Res PDF';
      // Create the required options object
      var options = new PDFSaveOptions();
         options.pDFPreset="High Res PDF";
      // See PDFSaveOptions in the JavaScript Reference for available options
      // Set the options you want below:
      // For example, uncomment to set the compatibility of the generated pdf to Acrobat 7 (PDF 1.6)
      // options.compatibility = PDFCompatibility.ACROBAT7;
      // For example, uncomment to view the pdfs in Acrobat after conversion
      // options.viewAfterSaving = true;
      return options;
    /** Returns the file to save or export the document into.----------------CHANGE FILE SUFFIX ON LINE BELOW, var newName = ------------------
      @param docName the name of the document
      @param ext the extension the file extension to be applied
      @param destFolder the output folder
      @return File object
    function getTargetFile(docName, ext, destFolder) {
      var newName = "_HR";
      // if name has no dot (and hence no extension),
      // just append the extension
      if (docName.indexOf('.') < 0) {
      newName = docName + ext;
      } else {
      var dot = docName.lastIndexOf('.');
      newName = docName.substring(0, dot)+newName;
      newName += ext;
      // Create the file object to save to
      var myFile = new File( destFolder + '/' + newName );
      // Preflight access rights
      if (myFile.open("w")) {
      myFile.close();
      else {
      throw new Error('Access is denied');
      return myFile;

    Thank you for the reply Bob!
    Am I correct in assuming that these few lines of code replace all of the lines that I posted above?
    Also, When populating the PDFSaveOptions lines, would the end result look like this? FYI, LowRes preset name = "Proof Low Res PDF - CMYK". HighRes preset name = "Proof High Res PDF"
    #target illustrator
    #targetengine "main"
    for (x=0;x<app.documents.length;x++)
         var workingDoc = app.documents[x];
         var workingDocFile = workingDoc.fullName;
    // populate these with your settings
         var lowResOpts = new PDFSaveOptions(Proof Low Res PDF - CMYK);
         var highResOpts = new PDFSaveOptions(Proof High Res PDF);
         var lowResFile = new File(workingDocFile.toString().replace(".ai","_LR.pdf"));
         workingDoc.saveAs(lowResFile,lowResOpts);
         var highResFile = new File(workingDocFile.toString().replace(".ai","_HR.pdf"));
         workingDoc.saveAs(highResFile,highResOpts);
         workingDoc.close(SaveOptions.DONOTSAVECHANGES);

  • Installing application in shutdown script does not work

    Hello,
    I'm trying to organise the deployment of office 2013. I want to give users the choice between installation during startup and installation during shutdown of their computer.
    Installation during startup works fine: installation starts and the user can use their computer and wait for the installation to finish in the background.
    Installation initiated from a console window works fine as well.
    However, installation using a shutdown script doesn't work as the installation command returns immediatly, the script ends and the computer shuts down.
    I have changed the gpo script timeout setting.
    In the powershell script, I execute the installation using "start-process" with the option "-wait". It seems like this command returns immediatly and the setup is never executed as it does not start logging the installation progress to
    a local log file.
    The shutdown script runs fine and it also logs its progress to a logfile on a network share so I'm sure the script actually runs and it has network access as well.
    Any clues as to why the installation might fail during a shutdown script and work fine in other situations? Thanks!
    I'm not sure if this is a gpo or an office 2013 deployment question. I'm thinking the environment during execution of a shutdown script might be different so that's why I'm asking my question here.

    Hi,
    Based on your description, we can also try asking for suggestions in the scripting forum to see if they can provide a better solution.
    The Official Scripting Guys Forum
    http://social.technet.microsoft.com/Forums/scriptcenter/en-US/home?forum=ITCG
    TechNet Subscriber Support
    If you are TechNet Subscription user and have any feedback on our support quality, please send your feedback here.
    Best regards,
    Frank Shen

  • Rsync script - ignore some files, include others?

    I am using an rsync script to backup files from one Mac to another. I have the "--ignore-existing" flag set to avoid copying files that haven't changed. However, there are certain files that I ALWAYS want to sync, regardless of whether or not they've changed. Is there a flag that I can add that will allow me to specify the files? They should be easy to run a match on, since they all contain the word "library" somewhere in their filename.

    If I understand correctly, you're synchronizing two iTunes libraries with rsync, while iTunes is running on the receiver, and it doesn't immediately register the changes. That's the expected behavior. iTunes loads its library file when it starts up, and it doesn't expect the library to change during the session unless it makes the change itself. Copying unchanged files will have no effect on that behavior. rsync has no way of notifying iTunes that the library has changed.
    If you want to share an iTunes library between two machines, you have three options: (1) make the library folder an AFP sharepoint; (2) use the synchronization features built into iTunes; or (3) if you insist on changing the library externally, quit and relaunch iTunes on the receiver to make it recognize the changes.

  • How Save File using script ?

    Hi Expert
    I am using MAC OSX 10.8.3 and InDesign CS5.5
    I use this script to save the InDesign file and run this script using Adobe ExtendScript ToolKit CS5.5
    #target indesign
    var myDocument=app.activeDocument;
    myDocument.save(File("/var/New.indd"));   
    But Script give error
    can not save "untitle1.indd" under a new name
    where "untitle1.indd" is created indesign file name.
    Is it Script proble or InDesign problem
    or
    MAC OSX problem ?
    How save file  ?
    Thanks.

    Bill joy wrote:
    Is it Script proble or InDesign problem
    or
    MAC OSX problem ?
    Hi Bill,
    I think it is your path problem. (Are you able to save this file in UI there?)
    Check:
    mFile = new File("/var/New.indd");
    mFile.isValid;
    You can't go forward until above == true;
    You could check how your system records a path using this in ESTK:
    mFile = File.saveDialog();
    select any file and check ESTK console.
    Script is creating a new File object with path you can see (not saving anything), so do it same way.
    If you will pass above with true save a doc using:
    mDoc.save(mFile);
    Jarek

  • Script that saves every visible layer as individual file in folder with same name

    Hello.
    In my PSD I have many folders with unique name (like "1234"), that contains layers named as digits (like "0", "1", "2" etc).
    I need to save each layer as JPG to folder with the same name and hierarchy that is in PSD file.
    How to do that using JavaScript .jsx scripts?
    Thank you for any response.

    What exactly is the problem – addressing the Layers, creating the Folder structure, …?

  • Create a script to save multiple groups into seperate png files

    Hello,
    I want to use a script to save every group I made into a '.PNG. I'm visualizing something like this, but the outputformat/name doesn't matter, as long it is a output from a group:
    group1 -> 1.png
    group2 -> 2.png
    group3 -> 3.png
    group4 -> 4.png
    etc.
    I noticed that someone create a script like that, but it isn't using for me anymore. Find here the script that isnt working for me:
    Re: Export Groups to Files?
    I am using Photoshop CC 2014 on Windows 7 (64bit).
    Looking forward to your reply! Thanks.
    Kind regards,
    Joost

    Which code cpu you use and what does
    but it isn't using for me anymore.
    mean exactly?

  • Need Script to save multiple FrameMaker 9.0 files as .mif

    I am using FrameMaker 9.0 on a PC.
    I have a number of UNIX scripts that work on .mif files.
    With the older versions of FrameMaker, I was able to run FrameMaker on Unix and use the batch capabilities to create a script that opened the book and saved each file as a .mif file.
    FrameMaker 9.0 is not supported on Unix, so I can't do that any more.
    I have found references to scripts that will do the conversion to mif on the PC, but they all talk about older versions of FrameMaker.
    What can I use to automatically convert all the files in a book to mif files?
    Thanks,
    Tim Walker

    There are several plug-ins to save .mif and back to .fm
    TOOLBOX for FrameMaker 9 (www.toolboxforme.com) 'FM <> MIF' allows you to generate a complete book in MIF format out of a FrameMaker book in binary format and vice versa: the book and all book components are saved in the respective format.
    TOOLBOX for FrameMaker 9 'Book Transfer (FM<>MIF)' allows you to move a book with all components and generate all .fm files to .mif and vice versa.
    Note: FrameMaker  9 and TOOLBOX save MIF 9 or MIF 7. There is no way to save MIF 8.
    - Georg

  • User can't save file cuz it's open or in use, network file

    Hi all,
    I have one user when open a file from netowk path (windows server 2003) can read and make changes but when save he can't save the file cuz it's open or in use,
    so he had to save it as another name and so on.
    and am suer there r no one using the same file.
    any ideas !!!!
    thanks in advace.

    You could do a Forum search.
    http://forums.adobe.com/thread/369561?start=0&tstart=0
    Otherwise to the generic …
    Boilerplate-text:
    Are Photoshop and OS fully updated?
    As with all unexplainable Photoshop-problems you might try trashing the prefs (after making sure all customized presets like Actions, Patterns, Brushes etc. have been saved and making a note of the Preferences you’ve changed) by pressing command-alt-shift on starting the program or starting from a new user-account.
    System Maintenance (repairing permissions, purging PRAM, running cron-scripts, cleaning caches, etc.) might also be beneficial, Onyx has been recommended for such tasks.
    http://www.apple.com/downloads/macosx/system_disk_utilities/onyx.html
    Weeding out bad fonts never seems to be a bad idea, either. (Validate your fonts in Font Book and remove the bad ones.)
    If 3rd party plug-ins are installed try disabling them to verify if one of those may be responsible for the problem.

  • I need to create an action or script to save the file with the name of the selected layer

    I need to create an action or script to save the file with the name of the selected layer (not including the hidden layers, but including those visible).
    How could modify the script: 'Layer Comps To Files.jsx' to get the result?
    Warning: I do not need to export all layers as files.
    Who can help me?
    THX in advance

    Versione in Italiano (Further down the English version)
    NB - Nella versione inglese ho messo tutte le immagini dei menu in italiano.
    Versione per Mac, ma credo sia identico per Windows.
    Spiego passo passo cosa ho fatto:
    - Ho creato un file esempio con tre Livelli, salvato sulla scrivania e ho chiuso il file.
    - Ho aperto il file e selezionato il Livello al centro per iniziare a registrare una azione che ho chiamato: Save with Name of Selected Layer
    - Nuova azione
    - Dare il nome e premere Registra
    Ora salva…
    - Menu --> Livello --> Nuovo --> Livello... e premi -ok-, (lascia il nome che viene mostrato)
    - Ancora una volta Menu --> Livello... --> Nuovo --> Livello... e premi -ok-, (lascia il nome che viene mostrato)
    - Menu --> Livello --> Ordina --> Dietro
    - Menu --> Livello --> Unisci sotto
    - Menu --> Livello --> Unisci visibili
    - Menu --> Livello --> Nuovo --> Livello... e premi -ok-, (lascia il nome che viene mostrato)
    - Menu --> Livello - Nascondi Livello
    - Menu --> Elimina --> Elimina livelli nascosti (press -Yes-)
    - Menu --> Livello --> Nuovo --> Livello... Inserisci questo: 'Move this to the trash' e premi ok
    - Menu --> File --> Script --> Esporta Livelli in File... (Nella finestra che si apre scegliere l’opzione che si desidera, ma togliere il prefisso del nome) e premere -Esegui-
    - Selezionare il pannello Storia cliccare su Elimina premendo -Si- ogni volta che si apre la finestra di dialogo (Ripetere 8 volte questa operazione sino ad arrivare nella storia alla condizione di partenza. Ho visto che è meglio di Ripristina -F12-)
    - Fermare la registrazione.
    A questo punto, mandando in esecuzione questa Azione, ho raggiunto parzialmente l’obiettivo perché i file così creati mantengono, purtroppo, dei prefissi numerici per evitare probabilmente la sovrascrizione di file (credo senza avviso) nel posto dove vengono creati.
    Per ottenere l’obiettivo occorre un nuovo passo ed a proposito di questo riferisco quanto segue:
    ATTENZIONE - L’operazione descritta qui di seguito deve essere fatta su di una copia del file, per cui:
    - Duplicare il file,
    - Spostare l’originale in altra cartella
    - Lavorare sul file duplicato.
    mi riferisco a questo...
    ATTENZIONE - Questa modifica è effettuata a proprio rischio e pericolo ed il sottoscritto non si assume alcuna responsabilità su quanto venga fatto soprattutto da mani inesperte.
    ATTENZIONE - Questa modifica sovrascrive qualsiasi file che abbia nome uguale al layer che viene selezionato più l’estensione del file naturalmente.
    Comunque la modifica è banalissima e a portata di chiunque.
    Procedere così:
    - Chiudere Photoshop
    - Aprire (nel percorso specificato dall’immagine) il file “Export Layers to Files.jsx” (Export Layers To Files.jsx 1.0.0.16) con un editor di testo puro.
    - cercare la stringa (dovrebbe essere in riga 1029)
    var fileNameBody = fileNamePrefix;
    fileNameBody += "_" + zeroSuppress(i, 4);
    fileNameBody += "_" + layerName;
    - sostituirla con:
    var fileNameBody = fileNamePrefix;
    fileNameBody += layerName;
    - cercare la stringa (dovrebbe essere in riga 1047-46)
    var fileNameBody = fileNamePrefix;
    fileNameBody += "_" + zeroSuppress(i, 4) + "s";
    - sostituirla con:
    var fileNameBody = fileNamePrefix;
    fileNameBody += "";
    - salvare e uscire.
    - riavviare Photoshop
    - provare l’azione registrata facendo attenzione che il nome del layer non sia identico al nome di un file già presente altrimenti questo verrà sovrascritto.
    Domanda:
    Perché ho creato livelli che poi ho eliminato ecc.
    Risposta:
    Semplice per evitare errori di esecuzione delle azioni nel caso di operazioni con livelli mancanti o altro.
    Semplice... no?
    English version
    Mac version, but I think it's the same for Windows.
    First of all, I'm translating the actions that I made using the Italian version of Photoshop, you look at the position of the menu that I have chosen to do the work with other languages.
    I explain step by step what I did:
    - I created a sample file with three layers, saved to the desktop and I closed the file.
    - I opened the file and select the layer at the center to start recording an action that I called: Save with Name of the Selected Layer
    - New action
    - Give the name and press Save ( I think it is so in English )
    Now save ...
    - Menu -> Layer - > New —> Layer… and press -ok- , (leave the name that is shown)
    - Once again Menu -> Layer - > New —> Layer… and press -ok- , (leave the name that is shown)
    - Menu -> Layer - > Arrange (order) -> Behind
    - Menu -> Layer - > Merge Down
    - Menu -> Layer - > Merge Visible
    - Menu -> Layer - > New —> Layer… and press -ok- , (leave the name that is shown)
    - Menu -> Layer - Hide Layer
    - Menu - > Delete - > Delete hidden layers (press -Yes- )
    - Menu -> Layer - > New —> Layer… Enter this: ' Move this to the trash ' and press ok
    - Menu -> File - > Scripts -> Export Layers To Files... (In the window that opens select the option you want, but take away the name prefix) and press - Run -
    - Select the History panel and click Delete (on menu opened) pressing -Yes- every time when open the dialog box (8 times Repeat this step until you get into the story to the starting condition. Not use Restore -F12-).
    - Stop recording.
    At this point, by executing this action, I have reached the goal partly because the files created in this way remain, unfortunately, the numerical prefixes to avoid possibly overwriting of files (I think without notice) in the place where they are created.
    To achieve the goal we need a new step and thinking about this as follows:
    WARNING - The operation described below should be made on a copy of the file, so :
    - Duplicate the file
    - Move the original folder to another
    - Work on the duplicate file.
    WARNING - This modification is performed at your own risk and the undersigned assumes no responsibility on what is done mostly by inexperienced hands.
    WARNING - This change will overwrite any files with the same name as the selected layer plus the file extension of course.
    However, the change is trivial and within reach of anyone.
    Proceed as follows:
    - Close Photoshop
    - Open (in the specified path from the image ) file " Export Layers to Files.jsx " (Export Layers To Files.jsx 1.0.0.16) with a pure text editor.
    - Search for the string (should be in line 1029 )
    var = fileNameBody fileNamePrefix ;
    fileNameBody = + "_" + zeroSuppress (i, 4 ) ;
    fileNameBody + = "_ " + layerName ;
    - Replace it with :
    var = fileNameBody fileNamePrefix ;
    fileNameBody + = layerName ;
    - Search for the string (should be in line 1047-46 )
    var = fileNameBody fileNamePrefix ;
    fileNameBody + = "_ " + zeroSuppress (i, 4) + "s" ;
    - Replace it with :
    var = fileNameBody fileNamePrefix ;
    fileNameBody + = "";
    - Save and exit.
    - Restart Photoshop
    - Try the recorded Action, making sure that the layer name is not identical to the name of an existing file otherwise it will be overwritten.
    Question:
    Why I created levels which I then deleted etc..
    Answer:
    Simple to avoid errors of execution of the actions in the case of transactions with missing levels and other.
    Simple ... is not it?
    Sorry for my bad English...
    Thanks in advance for any hint.
    --->>> Please think about this... Adobe <<<---

Maybe you are looking for