Make the file readable but not removable via cmd or a batch file

Hello

I am a windows user and I write little programs in windows using the language of batch processing. So I have a lot of work to do and set up different programs. But I am unable to set the attribute for a file that is accessible or executable but not removable. I mean I have a program and I want to set the attribute for this program unalterable, not removable. I've tried to set attribute with-s option as the attribute value of a file system and warns the user when deleting. But after you click Yes, the file is gone.

So my question is that is it possible to set the attribute to one or more files to readable but not removable via the batch command prompt?

Any help would be appreciated so much.

Thanks in advance,

Hello stephane,

Thanks for posting your query in Microsoft Community.

As a developer, I suggest that you re - ask your question in the MSDN forum rather than on this forum. MSDN is watched by other developers who would more than likely be able to help.
http://social.msdn.Microsoft.com/forums/en-us/windowsgeneraldevelopmentissues

Hope this information is useful.

Tags: Windows

Similar Questions

  • How to restore pictures that have been deleted from Lightroom, but not removed from the 'drive '?

    How to restore pictures that have been deleted from Lightroom, but not removed from the 'drive '? Also, how can I restore photos after saving Lightroom. I started to remove some files and it removed ALL of them! I chose the option "cancel delete files" and them brought back, she says they are all "missing or offline. I tried to 'find' a different folder and it deleted the folder all together and now I don't know where he is. Help, please!

    How to restore pictures that have been deleted from Lightroom, but not removed from the 'drive '?

    You need a backup of your Lightroom catalog file before deleting the photos made. You have such a backup? If so, find the backup catalog, open it (double click on it) and then search for the photos you want and select them and then file-> export catalogue; Then go to your original catalog file, open it and select file-> import from another catalog and points to the catalog that you just exported.

    If you do not have a backup of your catalog file, then the only thing you can do is to import the photos again, and Lightroom will treat them as totally new photos with no editing and no metadata provided by the user.

    Moreover, the idea of importing photos into Lightroom and then later removing them to Lightroom should is limited to photos you will EVER want such a photos that are so overexposed or underexposed or blurred that they are essentially useless. The photos that you care enough to run a task on (including editing) should never be removed from Lightroom.

    Also, how can I restore photos after saving Lightroom.

    Is this the same problem as above, or another?

    I chose the option "cancel delete files" and them brought back, she says they are all "missing or offline.

    Is it possible that you actually deleted pictures from the hard disk, as well as from Lightroom? Anyway, Lightroom cannot find the photos and you first need to find photos on your hard drives and then direct Lightroom to the location of the photo on your hard drive, using these instructions Adobe Lightroom - find folders and files moved or missing

  • I recently updated the Canon mark II to the mark iii, and the images taken of the mark iii will not make previews in bridge. Bridge will show previews for the images taken with the mark ii, but not the mark iii. I have adobe cc and use

    recently updated the Canon mark II, mark iii, and the images taken of the mark iii will not make previews in bridge. Bridge will show previews for the images taken with the mark ii, but not the mark iii. I have adobe cc and am using camera raw 9.2. I checked the updates and it is said that there is not. I also tried to purge the cache several times and that didn't work either. Any help with this would be so appreciated its driving me crazy!

    Take a look at this: generic icons | Files camera raw | Adobe Bridge

  • on Windows pc, I don't see a folder 'My Photo Stream', I think that all the photos are in the download folder, but when remove it from there, the status is not replicated in icloud. Help, please.

    on Windows pc, I don't see a folder 'My Photo Stream', I think that all the photos are in the download folder, but when remove it from there, the status is not replicated in icloud. Help, please.

    Hi vibenas,

    If you plan to use iCloud photo library with your Windows PC, article below the setting Details link and use this feature.

    Set up and use iCloud photo library on your Windows PC
    https://support.Apple.com/en-us/HT205323

    Sincerely

  • How to remove a domain controller that was removed from the Internet works but not demoted

    How to remove a domain controller that has been remove from the Internet works but not demoted

    got two domain controllers and been deleted but not retrograde

    can help pls

    Hello

    Your Windows is better suited for the directory on TechNet Services. You can follow the link to ask your question: http://social.technet.microsoft.com/Forums/en-us/winserverDS/threads

    I hope this helps.

  • is there a way to photos of the list on the hard drive, but not in the catalogue?

    I know that sometimes I have removed pictures of PSE12 but forgot to check the box to say ' also remove hard drive.

    is there a way to photos of the list the disk hard, but not in the catalog, so I can remove them from the hard drive?

    TIA

    gleeado wrote:

    I know that sometimes I have removed pictures of PSE12 but forgot to check the box to say ' also remove hard drive.

    is there a way to photos of the list the disk hard, but not in the catalog, so I can remove them from the hard drive?

    TIA

    There is no easy way since the only organizer knows what is indexed in the catalog.

    You can use the backup / restore process to move your library to a new drive or a master folder. Only the files in the catalog will be there. You can remove all media files from the original location via the Explorer / Finder. This will take care of duplicates and missing files catalog.

    Another way would be to work from selected records.

    You run the process of "import" of a given folder. If there are new or old files not those registered, they will be added to the catalog, others, already in the catalog will be ignored. The 'batch import' should be what you want to delete. It also works with files in the subfolders of the selected one.

    It is also possible to move files to a folder selected to an another new void; you select all in the thumbnail pane (not folders on the left panel) and use the command move or drag and drop the thumbnail space into the empty destination folder on the folders on the left panel. What will remain will be the 'imported step. '

  • can make face time calls but not receive all

    I have an iMac and have tried FACE TIME, can I make the video connections, but no one can reach me.  I have his see anything in the preference that prevents me is their somewhere else that I should look at?

    I'm going to assume that you have checked each of these facts:

    FaceTime can make outgoing calls.

    b. you don't get calls to an email address or iPhone number corresponding to the Apple code that you are currently using. Calls to any other ID Apple that you may have used will not be received.

    c. the appellants are not on your list of blocking.

    (d) at least one of the callers can call other users of FaceTime - but not you.

    If you have verified these facts, please take each of the following steps you have already taken it. Stop when the problem is resolved. Back up all data before making any changes.

    1. open the Notifications pane in system preferences. Select FaceTime from the list on the left. The banners or alerts alert style must be chosen - not None.

    2. in the same window, select do not disturb. If none of the three top boxes on the right is checked, then all FaceTime calls will be blocked in the corresponding conditions. If you want to use 'do not disturb', but you also want to receive calls when it is active, check or for both the two boxes below, according to your preference.

    3. If the built-in firewall application is enabled, please disable it. In case you are worried about the implications of this step, the firewall generally useless when you're on a private behind a router network.

    4. If you have installed any third-party 'firewall', 'security', or 'anti-virus' software, remove it according to the instructions of the developer. All these software are worse than useless.

    5. If you are connected to a VPN, you disconnect. You may need to remove some third party software VPN completely to solve the problem.

  • How can I activate on labels in the block diagram, but not on the front panel?

    This question may have been asked before, but searching the Forum did not.

    In LabVIEW 2010, I have 16 indicators of chain on the front panel. I can't have the label for each Visible on the front panel, so I turned it off. But in the block diagram, I need distinguqish one of the other, so I need to make the label (name) visible.

    In the block diagram, if I select indicators Sting all together and go to properties and make the label visible, it makes visible labels on the front but not visible in the block diagram. What good is that?

    How the help of labels (name) of the indicators String visible in the block diagram, but not visible on the front?

    dbaechtel wrote:

    This question may have been asked before, but searching the Forum did not.

    Don't remember already asked this question and get help in this thread?

    Have you tried the things I said in that thread?  How did they not work?

    Right-click on the terminal of BD and make visible > labels.

    It probably will be the FP control show its label as well.  Then go to the FP control, right-click and go to Visible > labels and uncheck the box.

    The terminal of the comics will have a label, and control of the FP will not.

  • I can import and edit video clips from Sony in Movie Maker 5 on PC but not in moviemaker 6 on my laptop?

    I can import and edit video clips from Sony in Movie Maker 5 on PC but not in moviemaker 6 on my laptop?

    in moviemaker 6 it appears as a line across the screen, the sound is ok but the canoe edit because I do not see?

    can you help me?

    Hello

    Check with the Sony Support, their documentation online, and their forums as this is probably a known issue.

    Sony - Contacts
    http://eSupport.Sony.com/us/Perl/contact-land.pl

    Sony - drivers
    http://eSupport.Sony.com/Perl/select-System.pl

    Sony - Support
    http://eSupport.Sony.com/

    Sony - Forum
    https://Forum.sel.Sony.com/?XID=M:Showcase:eSupport

    ==========

    Hello

    My friend John Papa - MVP - is the expert on Windows Movie Maker.

    PapaJohn.org
    http://Papajohn.org/

    PapaJohn - online tutorials
    http://www.Papajohn.org/mm2-online-tutorials.html

    Windows Movie Maker Tutorials - check the sounds of the addition in the left menu and others on the
    main screen.
    http://www.windowsmoviemakers.NET/tutorials/

    Windows Live Movie Maker that works on Vista and Windows 7, see the link under Windows Live Essentials.
    http://windowslivehelp.com/

    ====================

    These might help:

    Getting started with Windows Movie Maker

    Import video, photos and audio on Windows Movie Maker

    Import video from a videotape

    Get a movie in Windows Movie Maker

    Make a movie quickly in Windows Movie Maker (AutoMovie)

    Publish a movie in Windows Movie Maker

    I hope this helps and happy holidays!

    Rob Brown - Microsoft MVP<- profile="" -="" windows="" expert="" -="" consumer="" :="" bicycle=""><- mark="" twain="" said="" it="">

  • diving USB hard drive appears on the Control Panel, but not on MY computer

    Drive hard USB part on the Contrlol Panel but not on my computer.

    Hi Frank,.

    Thanks for posting your query in Microsoft Community.

    If I understand you correctly, the external USB hard drive (HDD) appears in the control panel but does not seem to be detected in my computer screen. I will certainly help you to question, however, I would be grateful if you could answer a few questions to refine the question in order to provide you with better assistance.

    (a) what is the brand and model number. the USB HDD?

    (b) has detected before HARD drive in my computer screen? If so, did you do changes on the computer before this problem?

    (c) that you get an unrecognized USB device notification error message?

    The unit is probably go up at the same point one of the partitions and thus becoming "invisible". In

    in order to further diagnose the issue, I would suggest trying the following methods and check if the problem persists.

    Method 1:

    Try running the Fixit tool from the link below.

    Hardware devices do not work or are not detected in Windows


    Also, run the next fixit to solve common problems with USB devices.

    Diagnose and automatically fix the Windows USB problems

    If the problem persists, try the following method.

    Method 2:

    Remove and reinstall all USB controllers.

    1. Open Manager devices by clicking the Start button, click Control Panel, click system and security, and then, under System, clicking Device Manager. If you are prompted for an administrator password or a confirmation, type the password or provide confirmation.
    2. In the list of the categories of equipment, locate and expand Bus USB controllers.
    3. Right-click every device under the Bus USB controllers node and then click Uninstall to remove them one at a time.
    4. Restart the computer and let the USB controllers get reinstalled.

    Plug in the removable USB device and perform a test to ensure that the problem is solved

    Also, refer to:

    Updated a hardware driver that is not working properly

    Hope this information is useful. Let us know if you need more help, we will be happy to help you.

  • I think to make the Surface RT but y at - it a soft for Windows that is Director basic that you can use?

    I think to make the Surface RT but y at - it a soft for Windows that is Director basic that you can use?

    Original title: windows essentials

    Hello

    Desktop applications only which can work to the Surface RT are Office Office RT and IE10. Apart from this, you will need to find a modern application (aka metro) of the Windows store.

    Thus, you can not install Windows Essentials, which is a desktop application on the Surface of RT.

    Video editing is very demanding on computer equipment/resources. Tablets are not the best devices for this type of work even if you do not find an app. I can see some video party 3rd edition apps on the Store Windows but I have no experience with them.

    Hope that helps.

  • Why Distributed Transaction error at the Message bean but not not Backing Bean?

    Hi guys,.

    * Update * I read the second post first.

    Using JDeveloper 12.1.2.0.0 and integrated WebLogic server of the same version.

    I have an ADF program where a draft of the application using JDBC in a message bean.  If I create an Application Module within the project and then sign in using its connection (java: comp/env/jdbc/MyAdfConnDS), then the code below works fine.  However, if I search connection JDBC (jdbc/MyJdbcDS), I have configured in WebLogic myself, then I distributed transaction errors.  How can I configure my JDBC connection to imitate the one who creates the AppModule?  This way I can run prepared explicitly stated and validation of the call?

    Here is my code JDBC

            conn.setAutoCommit(false);
            PreparedStatement statement = conn.prepareStatement(sql);
            statement.setLong(1, companyAccountId);
    // errors here
            statement.execute();
            conn.commit();
            statement.close();
    
    
    

    Which results in the error

    // prepared statement.
    DELETE BUSINESS_PARTNERS WHERE MASTER_TYPE_KEY = 'C' AND COMPANY_ACCOUNT_ID = ?
    java.sql.SQLException: Cannot call commit when using distributed transactions
                at weblogic.jdbc.wrapper.JTAConnection.commit(JTAConnection.java:373)
                at com.sample.myProduct.jms.clients.MyClient.deleteEntities(MyClient.java:211)
                at com.sample.myProduct.jms.clients.MyClient.importData(MyClient.java:155)
                at com.sample.myProduct.jms.beans.ImportMessageBean.onMessage(ImportMessageBean.java:91)
                at weblogic.ejb.container.internal.MDListener.execute(MDListener.java:575)
                at weblogic.ejb.container.internal.MDListener.transactionalOnMessage(MDListener.java:477)
                at weblogic.ejb.container.internal.MDListener.onMessage(MDListener.java:375)
                at weblogic.jms.client.JMSSession.onMessage(JMSSession.java:4855)
                at weblogic.jms.client.JMSSession.execute(JMSSession.java:4529)
                at weblogic.jms.client.JMSSession.executeMessage(JMSSession.java:3976)
                at weblogic.jms.client.JMSSession.access$000(JMSSession.java:120)
                at weblogic.jms.client.JMSSession$UseForRunnable.run(JMSSession.java:5375)
                at weblogic.work.SelfTuningWorkManagerImpl$WorkAdapterImpl.run(SelfTuningWorkManagerImpl.java:550)
                at weblogic.work.ExecuteThread.execute(ExecuteThread.java:295)
                at weblogic.work.ExecuteThread.run(ExecuteThread.java:254)
    
    
    

    Here is a screenshot of all the available drivers: www.williverstravels.com/JDev/Forums/Threads/3544909/drivers.png, as well as the configuration of the transaction screen www.williverstravels.com/JDev/Forums/Threads/3544909/config.png

    I've tinkered enough to feel quite strongly, it is not an error in coding, but rather something in Weblogic.  I read what I can, but I don't know how the AppModule creates connections.  I would not add an AppModule just to retrieve its data source / login information if I don't.

    Ideas?

    Obviously, your message bean is configured to participate in a global transaction (for example, a JTA transaction). It is a behavior of the default message bean, even if you have not explicitly configured. When you get and use a JDBC connection in your message bean, this connection is attached to and participates in the overall transaction message bean (because you used compatible driver Oracle XA, it is seen on the 1st screenshot in your post), so you cannot perform local validation on the JDBC connection.

    Commit / rollback in this case can only be performed on the overall transaction (if the message bean is configured with the transactions managed by container) to be automatically or manually on the UserTransaction object (if the message bean is configured with bean-managed transactions). In other words, you must remove the conn.commit () statement, which is erroneous and obsolete when it is used in your message bean. If the message bean uses transactions managed by container, the container will commit / rollback automatically at the end of the method all the resources involved in the overall transaction (including your JDBC connection). If the method completed successfully (without exception), a validation will be performed. If the method fails (i.e., it ends with an exception), a cancellation will be made. If the message bean uses bean-managed transactions, the transaction is committed/restored when you explicitly call UserTransaction.commit () or UserTransaction.rollback ().

    The code above worked in a managed bean because JSF, ADF BC or ADF Faces applications require and participate in JTA transactions, then your JDBC connection has not been attached to a global transaction and you were able to perform local validation on the JDBC connection.

    You have two options to solve the problem. It depends on if you want your operations of JDBC to be in a global transaction with the bean of the message itself and its other actions or not. If they must be in a global transaction, then just remove the conn.commit () statement from your code. If they shouldn't be in a global transaction, you must either configure the message bean not to participate in global transactions or to configure the data source to use the «of the (thin) Oracle driver...» "instead of"Oracle (XA Thin)... driver. " ». (Remember to score the DataSource DO NOT to participate in a global transaction in the 2nd page of the data source configuration dialog in the management of WLS Console).

    NB. I highly recommend that you keep the global transactions. If you choose not to use a global transaction, it can happen that you committed the JDBC operations but an exception that happens after that, so the JMS message is not removed from the queue of messages and it will be processed after that, which causes the same operations of JDBC to be played and committed twice which must be avoided.

    Dimitar

  • Is there independent configurations, or just that kind of creative things Cloud with monthly cost? I tested the Lr5 before trial and now wishes to purchase the full version, but not interested and won't pay a monthly fee for it. All the opti

    .. .and the same thing here, I apparently just typed in the header...

    Is there independent configurations, or just that kind of creative things Cloud with monthly cost? I tested the Lr5 before trial and now wishes to purchase the full version, but not interested and won't pay a monthly fee for it. The options seem to grow the CC, but would like to know if there is any means possible to get the version stand alone more. Thank you in advance!

    Frustration is closer...

    There is still an option purchase on https://www.adobe.com/products/catalog/software._sl_id-contentfilter_sl_catalog_sl_softwar e_sl_mostpopular.html

    Make sure you only select between upgrade/Full and Mac/Win.

  • Question on showing ani flash on the home page, but not on other pages. Dynamic header?  PHP or Java?

    New to DW CS4 and I redo our clubs to hidefcam.net homepage. Create a template and have built my pages of it.  I would like to show the flash movie and the paragraph which is directly on the home page, but not on the rest of the site as it takes too much real estate.  Are there programs that I can do to make this happen?  My alternative is to lower the animation to the editable area, as seen in the hidefcam.net/test1/index.html

    Thank you

    Jeff

    Use an optional region and set it to default to not show: http://help.adobe.com/en_US/Dreamweaver/10.0_Using/WScbb6b82af5544594822510a94ae8d65-7aaba .html.

  • I can connect to the local network, but not to the internet

    Why in an internet connection, I can connect to the Local network, but not to the Internet.
    I have valid IP address and configuration is good.

    I recommend you read some threads here in the forum about similar issues.
    If this problem occurs using the WiFi network, then check if you can use the connection to the local network.
    Using the WiFi network, you must check if the common WLan parameters are favourable;
    Check if the encryption key is right; turn off filtering by mac address, check the TCP/IP protocol settings if it has been set to automatic, disable the firewall settings, rest you WLan router, check if you connected to the right SSID.

    Good bye

Maybe you are looking for

  • Don't ovewrite system files Firefox critical Windows OS?

    I work in a school district. We use software to information student Tyler. I have Firefox and IE 10 on our computers. Tyler works but sometimes it does not update the alignments of the student. We were using IE then found that Firefox worked better.

  • Skype keeps both v7.1 and v7.2 carsh, a dxdiag report had been download.

    Recently, we had a problem appcrash on Skype v7.1, but it keeps accident even upgrade us to version v7.2. Here is the error message: ----------------------------- Name of the failing application: Skype.exe, version: 7.2.0.103, time stamp: 0x54ef0c1dN

  • Re: Satellite L500-14N (PSLJ3E) - no DVD burning

    Hello In recent weeks, my dvd writer does not burn more. whenever I try to write things on a dvd, I get an error, but playback works fine. Furthermore, I have no problem with the CD. I've tried 3 programms (Nero 9, CloneDVD2 and the own program of Wi

  • communication series with VISA

    I'm trying to communcate with a power supply via a serial connection.  Communication works very well in Hyperterminal and putty, but I can't seem to run in labview.  It times out when trying to read the data. Hyperterminal parameters are the basis of

  • File missing "wkscal.exe.

    Well, I did a stupid thing. I have Windows XP on a HP/Compaq nx9010 (Yes, that's 8 years old but it works and I'm 74).  I removed and used MS to clean files so personally, I use this computer.  Everything works but my MicroSoft Calendar that I can no