Verify if Files are Open before Moving Folder in Network

I'm trying to create a script, either by Powershell or CMD to verify if any files are open in a particular network folder.   If there is a file Open then "File is in Use by NameOfUser" else it will copy folder.  If No errors, then
will delete old folder from previous location.  Hate to Move files and if there is an error it causes to many issues.  This way if it copies successfully then it will delete successfully. 

Use robocopy and tell it to retry only once on a failed copy (/r:1). Robocopy can also move files (/mov).
This forum, however, is not a support forum for robocopy (other than providing general guidance like the above).
You can find the documentation for robocopy by doing a quick web search for "robocopy documentation".
-- Bill Stewart [Bill_Stewart]

Similar Messages

  • Info.plist, Manifest.mbdb, Manifest.plist, Status.plist files are missing in backup folder

    I restored my iphone 5 to the default setting.
    Before restoring, I backed up the data in iphone but backup files have been corrupted.
    I found that Info.plist, Manifest.mbdb, Manifest.plist, Status.plist files are missing in the folder where the back up files are located.
    (C:\user\user name\AppData\Roaming\Apple Computer\MobileSync\Backup)
    I copied these files from another backup in the folder of the corrupted backup, but it did not work on either itunes or third party software.
    I even opened each of 4 files and modified the date, but still does not work.
    I know I can change extension of each file in the corrupted backup folder, but there are more than 8000 files in that folder.
    Is there any way to create the 4 files for the corrupted backup file?

    Bumpp

  • Word cannot complete the operation because too many files are open

    Hello,
    I'm working on a 60 pg. document, and when I hit 'save', I get this annoying msg.:
    "word cannot complete the operation because too many files are open." I have no other files open, and I am unable to continue to work, because I cannot save - can anyone help? Thanks!

    Hello Kristina,
    Have you been able to save the file at all?
    More than anything, it seems to be a bug when you're trying to save to a server. There's more on the problem here. So what you can also try is simply saving the file to your desktop, or somewhere on your Mac's hard drive. That way you're saving the file locally instead of to a server. If that works, you've at least saved the file and can continue on. Otherwise, read on.
    If you can't do it from Word, then at least save your changes from another application. Open TextEdit. You should get a blank file on the desktop. Make sure it's set as a rich text file. You'll know just be looking at it. If you see a ruler and other buttons at the top of the TextEdit document window, it's rich text. If not, make it rich text by pressing CommandShiftT.
    Copy and paste your entire Word text into the TextEdit window. Save the TextEdit document to the desktop. Now that you've at least gotten your work saved, you can try some other things.
    If you're not trying to work on the file from, or save it to a remote server, then don't worry about the first workaround. It doesn't apply. Number two was poorly worded by John. He seems to assume everyone knows what RH is. I had to look it up. It means Remote Home folder. So open the Word preferences and click on FIle Locations. Highlight the first choice, Documents, and click on the Modify button. Choose any location you want on your Mac's hard drive. Click "Choose" and close the preferences. Can you now save the document to the folder you defined as the default save location?
    Spotlight is that little magnifying glass in the upper right corner of your screen by the time/date. There are a few methods to disable Spotlight. What John is saying that if the Mac is spending a lot of time indexing your drives at the same time you're trying to save your Word document, the intense processing time to index may be keeping Word from saving.
    If you've managed to at least save your file as a rich text TextEdit document, then shut all of your applications down and restart your Mac. Launch Word and open the TextEdit file. You may lose some formating if you've done tables or other things TextEdit can't save in Word's original form.

  • ITunes cannot sync phone because to many files are open

    I have 5 devices syncing to my iTunes and I keep getting an error message stating that "persons phone cannot be synced, too many files are open". When I click "ok" it just keeps repeating that error message. It takes a long time of doing that before it goes away. Any suggestions?

    I have 5 devices syncing to my iTunes and I keep getting an error message stating that "persons phone cannot be synced, too many files are open". When I click "ok" it just keeps repeating that error message. It takes a long time of doing that before it goes away. Any suggestions?

  • All my Adobe Reader (PDF) files are opening only in the secondary monitor by default, as I am workin

    I am using Adobe 8 Professional and working on Windows XP. I have been facing an issue lately with opening files in a dual-monitor environment. All my Adobe Reader (PDF) files are opening only in the secondary monitor by default. There are times when I work only in one monitor and when I open a PDF file and want to have a look at it, I have to connect another monitor to view that file, since this file is open in the secondary monitor. It is very disappointing with such instances happening with Adobe (a leading organization). Can you please help so that the Adobe Reader files open in the primary monitor by default?

    On a Windows system disable the preview of Windows Explorer.

  • My music files are in the correct folder and place but do not appear in my itunes library..help?, My music files are in the correct folder and place but do not appear in my itunes library..help?

    Help! My music files are in the correct folder and place on my laptop but in the library they do not show up. I have Windows 8.1 and am going mad !

    Hi,
    Are these songs iTunes purchases?
    If so you need to hide them. iTunes Store: Hiding and unhiding purchases
    Jim

  • How do you find what files are open?

    I have a disk utility that needs to unmount my secondary drive but it is unable to stating there are open files. I know there is a UNIX command that shows what files are open but I can't find the command. Any help would be greatly appreciated.

    Welcome to Apple Discussions!!
    The command you are after is lsof. Read the manual to find out about the options (there are an awful lot, but most of them you won't need).
    Message was edited by: Michael Conniff

  • Screen Goes Dark when No files Are Open

    Hi,
    Since I installed the CS 6, I seem to have a problem with my display going dark whenever Illustrator CS 6 doesn't have opened files, i.e., the application runs, no files are open, and my whole screen's brigthness goes down. It only happens with Illustrator CS 6. When I open a file, the screen goes back to normal. Has anyone had that problem?

    Unfortunately attempts to take a screenshot to show you have resulted in the interface look as it if were at full brigthness so I can't show you (well unless I edit the screenshot after). But basically the whole screen brightness goes dark until I open a new file. And it only happens with Illustrator CS6. I still haven't been able to solve the issue and I can't find anything on the net about that.

  • How do you tell which files are open in bridge cs5?

    In adobe bridge for CS2, open files in Photoshop show an icon in the lower right corner of the bridge thumnail. This is really helpful in sorting if you have a lot of files open. I can't figure out how to tell in bridge CS5 which files are open in photoshop. Is there a menu option that controls this??

    Thanks for the reply. This is a useful feature but not quite what I need.
    I am sorting through 2000 wedding photos. I have maybe 10 versions of the same shot open at a time. I edit, save, and close 2-3 of them. In CS2, I would go back to bridge and I could see the 7 files still open. I could quickly highlight and delete them. I'm trying to find a way to do something similar in CS5 bridge. Right now, I take the ones I'm going to delete and stack them all. But when I go back to bridge to delete them, I have to look at file numbers to see which ones are in the stack that I want to delete. This really slows my work flow. Any suggestions? Can I delete them directly from Photoshop?

  • Firefox 3.6 does not open onto my desktop from the dock when links in email or other files are opened. I have eMac with system 10.4.11 in English

    Firefox 3.6 does not open onto my desktop from the dock when links in email or other files are opened, use to. I have eMac with system 10.4.11 in English
    Thanks, Claude Combs
    [email protected]

    Firefox 3.6 does not open onto my desktop from the dock when links in email or other files are opened, use to. I have eMac with system 10.4.11 in English
    Thanks, Claude Combs
    [email protected]

  • My pc files are open with windows media player

    hello,
    My  computer's all files are open with windows media player. i've done every thing i could & still the same.  when i try to open file, it opens with widows media player. i'm so confussed.
    Thank You

    Harisarah,
    You can change the default program for opening files with the following:
    Set your default programs
    Open Default Programs by clicking the Start button , and then clicking Default Programs.
    Click Associate a file type or protocol with a program.
    Click the file type or protocol that you want the program to act as the default for.
    Click Change program.
    Cheers, Curt Winter Certified Microsoft Professional Note: Posts are provided “AS IS” without warranty of any kind, either expressed or implied. If you found my post helpful, please mark it as the answer.

  • Music files are stored under device folder, not Library folder

    In comparing my Itunes account with my co-worker, I've discovered that my music files are all stored under "my device" (in the music section) instead of under the "Library" section for music.
    How do I move my music to the correct folder structure.  In it's current location (under my device which is an Iphone), I'm unable to create playlists etc.  it will not let me drag any of the music from my device/music library into the playlists.
    On a "weirder note" - I have 4-5 recent songs that are shown in the correct location:  library / music folder.  These songs work for creating a playlist etc.
    How do I get my 200 other songs into this correct location?
    Now that I've purchased an Ipad, I'd like to create playlists to tether onto each device. 

    Recover media from iPod
    See this post from forum regular Zevoneer for options on moving your iPod data back to your computer. Most of the tools rely on the iPod having a healthy database but as long as the media is there then the manual method mentioned towards the end should work regardless...
    tt2

  • Illustrator CS6 crashes when 40 or more files are open at the same time

    Windows 7 SP1, Illustrator CS6
    The end users spends 7 hours of their 8 hours in Illustrator. As part of the job, they have to have over 40 different files open at the same time because they are working on several jobs at the same time as well as working forward. So the answer is not "they have to close some files". This, unfortunately, is not an option.
    We recently upgraded them to CS6. They said that version CS5 was fine and didn't crash like this. But Illustrator CS6 crashes on them, closes itself, and obviously they lose all unsaved changes (saving the changes isn't a choice either, because the files are shared and have to stay original).
    The only modification we've done to the program is to UNcheck "Append" in the preferences.
    This happens on all 3 computers for all 3 users, so I don't believe it to be end-user related.
    Does anyone out there know of a way to get Illustrator to stop crashing?
    Is there a specific limit on the number of files that can be open?
    Thanks,
    Spencer

    No, they aren't working on the same files. All 3 employees are working on different files.
    They are all on Dell Optiplex GX745 with 4 Gb of RAM.
    The crashes are at different times, not all 3 crashing at the same time. Therefore, I don't believe network is the cause of the issues. Also, it didn't crash on CS5, but now it does on CS6.
    What I'm looking for are possible settings within Illustrator CS6 that I can tweak to make it a more stable program.
    Thanks

  • My dock does not show what files are open... Any way to fix?

    My dock does not show if a file is open. No little arrow shows up, and when I click and hold on an icon of an open program it acts as if it is not open (still giving me the open program option, and not showing me force quit options, etc...).
    Advice please?

    This issue makes me wonder what "genius" at Apple designed the new Dock display. I'm by no means old or losing my sight, I wear glasses but other than that no problems. So why is it so difficult to see those balls under the active apps? They are so blended in that it's not easy to see them at a glance. Why not at least give us the option to adjust those settings.

  • How to see which files are open on shares

    Im fairly new to OS X Server. Am running OS X Server 10.6.8
    How can i see files that are open through AFP or SMB? I've tried the command lsof but that doesnt seem to show open files through network.

    Try smbstatus.
    To pin down exactly which files are locked for use, try:
    smbstatus | grep -i deny_write
    For AFP, I'm not sure exactly how it's done -- there isn't an afpstatus command, so I'm a bit in the dark. However, you could probably use a combination of lsof and grep to find any objects of type REG and owned by applefile.
    Maybe this:
    sudo lsof | grep -i "^applefile" | grep REG
    But that will return everything in use by the AppleFile service. From there, though, one may need to be familiar with what shares are on the system to further deduce what's open. For example, I get 10 lines returned, but only one of them contains a known share name (/Users/username/path/to/file), the rest are system directories (/System, /private, /usr, /Library and the like).
    Hope this helps a bit.

Maybe you are looking for

  • Outlook 2010 Slow Access to Shared Calendar

    We have a small 100 user domain running Exchange server 2010 and outlook 2010 clients.  When an admin opens a shared calender from within Outlook 2010 it often takes 30 seconds or more to display the calender.. When using OWA the calendar display alm

  • Php, mySQL, apache servers and all that malarkey...

    Hello I want to learn how to build databases and use dreamweaver to build sites to for e-commerce shops or portfolio archives etc... But at first glance im a bit overwhelmed. I am willing to put the time and effort in but just need a little point in

  • Front Row is missing

    Who can tell me how to get front row back.. the remote or command-esc won't open it. I think I lost it after reinstalling Mac OS X (on the advice of the apple helpline, to solve some problems I had) Thanks

  • Interview preparartion...

    Hi, I am a two years experience in SAP R3 4.7, ECC 5.0 and ECC 6.0. and i am looking for a job change. So plz suggest me suitable documents and sites to so that I can prepare for the interview. What wouold be the most obious questions asked in a inte

  • What is the schedule for releasing early drafts of chapters?

    Once a week, once a month? In order, out of order? Do you know if the final version will be freely available on the Web, or, like this year's JavaOne slides, only available to paid "attendees?"