• Register
0 votes
235 views

Problem :

I have received the following error message:

The process cannot access the file because another process has locked a portion of the file

Cannot open the disk 'C:\Users\t825665\VM's\VPC\Windows 10 x64.vmdk' or one of the snapshot disks it depends on.

Module 'Disk' power on failed.

Failed to start the virtual machine.

I guess my virtual machine is not starting anymore. Any clue how to fix that?

6 5 3
6,930 points

Please log in or register to answer this question.

1 Answer

0 votes

Solution :

I had faced the same error in the recent past. I did lot of research and found below solution.

I just ran the batch file whose code is given below it delete all temporary files , locks, directories and also memory files in the VMWare Working Directory (e.g.. Settings/Options/Working Directory). It helped me to get out of many Jams.

Please Note: You will lose your any unsaved work that was in VMWare suspended memory so please take the backup before using following batch file  if you are not sure. It will reboot the image as if it was just shutdown.

--------------------------Clean.bat ----------------

@echo off
REM  - Delete all directories in Working Directory
set dr=%cd%
set ex=\*
set "dr=%dr%%ex%"
for /d %%a in ("%dr%") do rd "%%a" /q /s  
REM - Delete files in Working Directory
del *.log
del *.vmem
del *.vmss
del *.nvram
del *.vmx~
pause

9 7 4
38,600 points

Related questions

0 votes
1 answer 5 views
5 views
Problem: “Cannot find a valid peer process to connect to” VMware Workstation 10.0.1 while booting a VM. Any suggestions? What should I do? I need those virtual machines to run.
asked Mar 15 ummesalma 22.9k points
1 vote
1 answer 2 views
2 views
Problem: I am unable to find out the solution, Please solve it : visual studio the process cannot access the file because it is being used by another process
asked 4 days ago MUHAMMAD MUNEEB 80k points
0 votes
1 answer 1 view
1 view
Problem: Could anyone please help me resolve this uncaught error “Lỗi the process cannot access the file because it is being used by another process”?
asked 6 days ago tuhin1 47.2k points
0 votes
1 answer 128 views
128 views
Problem : I have some of the code and when I try to executes it, it throws the below IOException, saying that “The process cannot access the file 'filename' because it is being used by another process” What is the meaning of this exception , and how can I completely fix the exception?
asked Jan 3, 2020 alecxe 7.5k points
1 vote
1 answer 3 views
3 views
Problem: Why I am getting this probem? Cannot access file because it is being used by another process.
asked Mar 30 PkGuy 13.1k points
0 votes
1 answer 14 views
14 views
Problem: yumrepo error: all mirror urls are not using ftp, http[s] or file.
asked Feb 21 charles mathews 5.5k points
0 votes
1 answer 3 views
3 views
Problem: Why VMWare Workstation Pro can't run on Windows
asked Mar 15 ummesalma 22.9k points
1 vote
1 answer 4 views
4 views
Problem: I am getting this problem please help me. The action cannot be completed because the folder or a file in it is open in another program.
asked Mar 29 PkGuy 13.1k points
0 votes
2 answers 32 views
32 views
i am trying hard but cannot open access to console the root account is locked.
asked Jan 24 waji 1.9k points
0 votes
1 answer 5 views
5 views
Problem: You cannot save while the file is in use by another process. Try saving the file with a new name. (C:...\Desktop\TempWord.docx) I'm not too sure how to resolve this problem. Please Help!
asked Mar 5 ummesalma 22.9k points