Error: Code 58 — This error occurs at run time when the new file name, for example, one specified in a Name statement, is identical to a file name that already exists.
How to fix the Runtime Code 58 File already exists
This article features error number Code 58, commonly known as File already exists described as This error occurs at run time when the new file name, for example, one specified in a Name statement, is identical to a file name that already exists.
About Runtime Code 58
Runtime Code 58 happens when Windows fails or crashes whilst it’s running, hence its name. It doesn’t necessarily mean that the code was corrupt in some way, but just that it did not work during its run-time. This kind of error will appear as an annoying notification on your screen unless handled and corrected. Here are symptoms, causes and ways to troubleshoot the problem.
Definitions (Beta)
Here we list some definitions for the words contained in your error, in an attempt to help you understand your problem. This is a work in progress, so sometimes we might define the word incorrectly, so feel free to skip this section!
- Exists — Exists is a keyword or function in many languages, especially in SQL.
- File — A block of arbitrary information, or resource for storing information, accessible by the string-based name or path
- Time — Measuring the time it takes to perform an operation
Symptoms of Code 58 — File already exists
Runtime errors happen without warning. The error message can come up the screen anytime Windows is run. In fact, the error message or some other dialogue box can come up again and again if not addressed early on.
There may be instances of files deletion or new files appearing. Though this symptom is largely due to virus infection, it can be attributed as a symptom for runtime error, as virus infection is one of the causes for runtime error. User may also experience a sudden drop in internet connection speed, yet again, this is not always the case.
(For illustrative purposes only)
Causes of File already exists — Code 58
During software design, programmers code anticipating the occurrence of errors. However, there are no perfect designs, as errors can be expected even with the best program design. Glitches can happen during runtime if a certain error is not experienced and addressed during design and testing.
Runtime errors are generally caused by incompatible programs running at the same time. It may also occur because of memory problem, a bad graphics driver or virus infection. Whatever the case may be, the problem must be resolved immediately to avoid further problems. Here are ways to remedy the error.
Repair Methods
Runtime errors may be annoying and persistent, but it is not totally hopeless, repairs are available. Here are ways to do it.
If a repair method works for you, please click the upvote button to the left of the answer, this will let other users know which repair method is currently working the best.
Please note: Neither ErrorVault.com nor it’s writers claim responsibility for the results of the actions taken from employing any of the repair methods listed on this page — you complete these steps at your own risk.
Method 1 — Close Conflicting Programs
When you get a runtime error, keep in mind that it is happening due to programs that are conflicting with each other. The first thing you can do to resolve the problem is to stop these conflicting programs.
- Open Task Manager by clicking Ctrl-Alt-Del at the same time. This will let you see the list of programs currently running.
- Go to the Processes tab and stop the programs one by one by highlighting each program and clicking the End Process buttom.
- You will need to observe if the error message will reoccur each time you stop a process.
- Once you get to identify which program is causing the error, you may go ahead with the next troubleshooting step, reinstalling the application.
Method 2 — Update / Reinstall Conflicting Programs
Using Control Panel
- For Windows 7, click the Start Button, then click Control panel, then Uninstall a program
- For Windows 8, click the Start Button, then scroll down and click More Settings, then click Control panel > Uninstall a program.
- For Windows 10, just type Control Panel on the search box and click the result, then click Uninstall a program
- Once inside Programs and Features, click the problem program and click Update or Uninstall.
- If you chose to update, then you will just need to follow the prompt to complete the process, however if you chose to Uninstall, you will follow the prompt to uninstall and then re-download or use the application’s installation disk to reinstall the program.
Using Other Methods
- For Windows 7, you may find the list of all installed programs when you click Start and scroll your mouse over the list that appear on the tab. You may see on that list utility for uninstalling the program. You may go ahead and uninstall using utilities available in this tab.
- For Windows 10, you may click Start, then Settings, then choose Apps.
- Scroll down to see the list of Apps and features installed in your computer.
- Click the Program which is causing the runtime error, then you may choose to uninstall or click Advanced options to reset the application.
Method 3 — Update your Virus protection program or download and install the latest Windows Update
Virus infection causing runtime error on your computer must immediately be prevented, quarantined or deleted. Make sure you update your virus program and run a thorough scan of the computer or, run Windows update so you can get the latest virus definition and fix.
Method 4 — Re-install Runtime Libraries
You might be getting the error because of an update, like the MS Visual C++ package which might not be installed properly or completely. What you can do then is to uninstall the current package and install a fresh copy.
- Uninstall the package by going to Programs and Features, find and highlight the Microsoft Visual C++ Redistributable Package.
- Click Uninstall on top of the list, and when it is done, reboot your computer.
- Download the latest redistributable package from Microsoft then install it.
Method 5 — Run Disk Cleanup
You might also be experiencing runtime error because of a very low free space on your computer.
- You should consider backing up your files and freeing up space on your hard drive
- You can also clear your cache and reboot your computer
- You can also run Disk Cleanup, open your explorer window and right click your main directory (this is usually C: )
- Click Properties and then click Disk Cleanup
Method 6 — Reinstall Your Graphics Driver
If the error is related to a bad graphics driver, then you may do the following:
- Open your Device Manager, locate the graphics driver
- Right click the video card driver then click uninstall, then restart your computer
Method 7 — IE related Runtime Error
If the error you are getting is related to the Internet Explorer, you may do the following:
- Reset your browser.
- For Windows 7, you may click Start, go to Control Panel, then click Internet Options on the left side. Then you can click Advanced tab then click the Reset button.
- For Windows 8 and 10, you may click search and type Internet Options, then go to Advanced tab and click Reset.
- Disable script debugging and error notifications.
- On the same Internet Options window, you may go to Advanced tab and look for Disable script debugging
- Put a check mark on the radio button
- At the same time, uncheck the «Display a Notification about every Script Error» item and then click Apply and OK, then reboot your computer.
If these quick fixes do not work, you can always backup files and run repair reinstall on your computer. However, you can do that later when the solutions listed here did not do the job.
Other languages:
Wie beheben Fehler 58 (Die Datei existiert bereits) — Dieser Fehler tritt zur Laufzeit auf, wenn der neue Dateiname, beispielsweise ein in einer Name-Anweisung angegebener, mit einem bereits vorhandenen Dateinamen identisch ist.
Come fissare Errore 58 (Il file esiste già) — Questo errore si verifica in fase di esecuzione quando il nuovo nome file, ad esempio quello specificato in un’istruzione Name, è identico a un nome file già esistente.
Hoe maak je Fout 58 (Bestand bestaat al) — Deze fout treedt op tijdens runtime wanneer de nieuwe bestandsnaam, bijvoorbeeld de naam die is opgegeven in een Name-instructie, identiek is aan een bestandsnaam die al bestaat.
Comment réparer Erreur 58 (Le fichier existe déjà) — Cette erreur se produit au moment de l’exécution lorsque le nouveau nom de fichier, par exemple celui spécifié dans une instruction Name, est identique à un nom de fichier qui existe déjà.
어떻게 고치는 지 오류 58 (존재하는 파일입니다) — 이 오류는 새 파일 이름(예: Name 문에 지정된 이름)이 이미 존재하는 파일 이름과 동일한 경우 런타임에 발생합니다.
Como corrigir o Erro 58 (O arquivo já existe) — Este erro ocorre em tempo de execução quando o novo nome de arquivo, por exemplo, um especificado em uma instrução Name, é idêntico a um nome de arquivo que já existe.
Hur man åtgärdar Fel 58 (filen finns redan) — Det här felet uppstår vid körning när det nya filnamnet, till exempel ett som anges i en Namn -sats, är identiskt med ett filnamn som redan finns.
Как исправить Ошибка 58 (Файл уже существует) — Эта ошибка возникает во время выполнения, когда новое имя файла, например, указанное в операторе Name, идентично имени файла, который уже существует.
Jak naprawić Błąd 58 (plik już istnieje) — Ten błąd występuje w czasie wykonywania, gdy nowa nazwa pliku, na przykład określona w instrukcji Name, jest identyczna z nazwą pliku, która już istnieje.
Cómo arreglar Error 58 (El archivo ya existe) — Este error se produce en tiempo de ejecución cuando el nuevo nombre de archivo, por ejemplo, uno especificado en una declaración de nombre, es idéntico a un nombre de archivo que ya existe.
About The Author: Phil Hart has been a Microsoft Community Contributor since 2010. With a current point score over 100,000, they’ve contributed more than 3000 answers in the Microsoft Support forums and have created almost 200 new help articles in the Technet Wiki.
Follow Us:
Last Updated:
26/12/21 03:52 : A Android user voted that repair method 2 worked for them.
This repair tool can fix common computer problems such as blue screens, crashes and freezes, missing DLL files, as well as repair malware/virus damage and more by replacing damaged and missing system files.
STEP 1:
Click Here to Download and install the Windows repair tool.
STEP 2:
Click on Start Scan and let it analyze your device.
STEP 3:
Click on Repair All to fix all of the issues it detected.
DOWNLOAD NOW
Compatibility
Requirements
1 Ghz CPU, 512 MB RAM, 40 GB HDD
This download offers unlimited scans of your Windows PC for free. Full system repairs start at $19.95.
Article ID: ACX04546EN
Applies To: Windows 10, Windows 8.1, Windows 7, Windows Vista, Windows XP, Windows 2000
Speed Up Tip #81
Enable Fast Startup with Hibernation Feature:
Turn on the Fast Startup option if you have enabled Hibernation on your computer. This can notably increase boot up time by partially hibernating the kernel files and device drivers. You can enable this feature in your Control Panel under the Power Options and clicking on Choose what the power button does setting.
Click Here for another way to speed up your Windows PC
Microsoft & Windows® logos are registered trademarks of Microsoft. Disclaimer: ErrorVault.com is not affiliated with Microsoft, nor does it claim such affiliation. This page may contain definitions from https://stackoverflow.com/tags under the CC-BY-SA license. The information on this page is provided for informational purposes only. © Copyright 2018
Error Number: | Runtime Error 58 | |
Error Name: | File already exists | |
Error Description: | This error occurs at run time when the new file name, for example, one specified in a Name statement, is identical to a file name that already exists. | |
Developer: | Microsoft Corporation | |
Software: | Windows Operating System | |
Applies to: | Windows XP, Vista, 7, 8, 10, 11 |
Overview of File already exists
File already exists is typically an error (bug) found at runtime. Developers expend a lot of time and effort to write code to make sure Windows Operating System is stable before the product is sold. Regrettably, issues such as error 58 might not get fixed at this final stage.
You might get an error message after software installation that reads «This error occurs at run time when the new file name, for example, one specified in a Name statement, is identical to a file name that already exists.». At the time the error 58 is encountered, the end-user can report the issue to Microsoft Corporation. Microsoft Corporation can correct the issues that were discovered, then upload a revised source code file, letting users update their version. As a result, the developer can use update packages for Windows Operating System accessible from their website (or automatic download) to resolve these error 58 problems and other errors.
What Produces Runtime Error 58?
You will have a failure during execution of Windows Operating System if you run into File already exists during runtime. Let’s review the common causes of error 58 runtime errors:
Error 58 Crash — This is a very popular error 58 runtime error that causes the entire program to shut down. This arises when Windows Operating System fails to function properly, or does not know what output would be suitable.
File already exists Memory Leak — Error 58 memory leak results in Windows Operating System continually using more and more memory, bogging down the system. Potential triggers may be endless looping, which causes the program operation to run over and over again.
Error 58 Logic Error — You can experience a logic error when the program produces incorrect results even if the user specifies the right value. This is seen when Microsoft Corporation’s source code involves a defect in the input data analysis.
Typically, File already exists errors are caused by a corrupt or missing Windows Operating System-associated file, sometimes due to malware infection. Although annoying, these issues can usually be easily remedied through replacing the problem Microsoft Corporation file. In addition, if your File already exists error was due to a removed malware infection, we recommend running a registry scan to clean up any invalid file path references created by the malicious program.
File already exists Errors
These File already exists-related Windows Operating System Troubles Include:
- «File already exists Program Error.»
- «Invalid Win32 Program: File already exists»
- «File already exists has encountered a problem and needs to close. We are sorry for the inconvenience.»
- «Can’t locate File already exists»
- «File already exists can’t be found.»
- «Problem starting application: File already exists.»
- «File already exists not working.»
- «File already exists failed.»
- «Fault in Software Path: File already exists.»
Windows Operating System-involved File already exists issues happen during install, when File already exists-related software is running, startup or shutdown, or during the Windows installation process. Documenting File already exists problem occasions in Windows Operating System is key to determine cause of the Windows problems, and reporting them to Microsoft Corporation.
Source of File already exists Errors
File already exists issues are caused by a corrupt or missing File already exists, invalid registry keys associated with Windows Operating System, or a malware infection.
Especially, File already exists errors stem from:
- File already exists registry keys invalid / corrupted.
- Malware infestation corrupted File already exists file.
- A different program (not related with Windows Operating System) deleted File already exists maliciously or by mistake.
- Another software in conflict with Windows Operating System, File already exists, or shared references.
- Incomplete or corrupt Windows Operating System (File already exists) from download or installation.
Product by Solvusoft
Download Now
WinThruster 2022 — Scan your PC for computer errors.
Compatible with Windows 11, 10, 8, 7, Vista, XP and 2000
Optional Offer for WinThruster by Solvusoft | EULA | Privacy Policy | Terms | Uninstall
Содержание
- How To Fix Runtime Error 58
- Overview of File already exists
- What Produces Runtime Error 58?
- File already exists Errors
- Source of File already exists Errors
- runtime error#58
- All 15 Replies
- How to fix the Runtime Code 58 Microsoft Access Error 58
- Как исправить время выполнения Ошибка 58 Файл уже существует
How To Fix Runtime Error 58
Error Number: | Runtime Error 58 | |
Error Name: | File already exists | |
Error Description: | This error occurs at run time when the new file name, for example, one specified in a Name statement, is identical to a file name that already exists. | |
Developer: | Microsoft Corporation | |
Software: | Windows Operating System | |
Applies to: | Windows XP, Vista, 7, 8, 10, 11 |
Overview of File already exists
File already exists is typically an error (bug) found at runtime. Developers expend a lot of time and effort to write code to make sure Windows Operating System is stable before the product is sold. Regrettably, issues such as error 58 might not get fixed at this final stage.
You might get an error message after software installation that reads «This error occurs at run time when the new file name, for example, one specified in a Name statement, is identical to a file name that already exists.». At the time the error 58 is encountered, the end-user can report the issue to Microsoft Corporation. Microsoft Corporation can correct the issues that were discovered, then upload a revised source code file, letting users update their version. As a result, the developer can use update packages for Windows Operating System accessible from their website (or automatic download) to resolve these error 58 problems and other errors.
What Produces Runtime Error 58?
You will have a failure during execution of Windows Operating System if you run into File already exists during runtime. Let’s review the common causes of error 58 runtime errors:
Error 58 Crash — This is a very popular error 58 runtime error that causes the entire program to shut down. This arises when Windows Operating System fails to function properly, or does not know what output would be suitable.
File already exists Memory Leak — Error 58 memory leak results in Windows Operating System continually using more and more memory, bogging down the system. Potential triggers may be endless looping, which causes the program operation to run over and over again.
Error 58 Logic Error — You can experience a logic error when the program produces incorrect results even if the user specifies the right value. This is seen when Microsoft Corporation’s source code involves a defect in the input data analysis.
Typically, File already exists errors are caused by a corrupt or missing Windows Operating System-associated file, sometimes due to malware infection. Although annoying, these issues can usually be easily remedied through replacing the problem Microsoft Corporation file. In addition, if your File already exists error was due to a removed malware infection, we recommend running a registry scan to clean up any invalid file path references created by the malicious program.
File already exists Errors
These File already exists-related Windows Operating System Troubles Include:
- «File already exists Program Error.»
- «Invalid Win32 Program: File already exists»
- «File already exists has encountered a problem and needs to close. We are sorry for the inconvenience.»
- «Can’t locate File already exists»
- «File already exists can’t be found.»
- «Problem starting application: File already exists.»
- «File already exists not working.»
- «File already exists failed.»
- «Fault in Software Path: File already exists.»
Windows Operating System-involved File already exists issues happen during install, when File already exists-related software is running, startup or shutdown, or during the Windows installation process. Documenting File already exists problem occasions in Windows Operating System is key to determine cause of the Windows problems, and reporting them to Microsoft Corporation.
Source of File already exists Errors
File already exists issues are caused by a corrupt or missing File already exists, invalid registry keys associated with Windows Operating System, or a malware infection.
Especially, File already exists errors stem from:
- File already exists registry keys invalid / corrupted.
- Malware infestation corrupted File already exists file.
- A different program (not related with Windows Operating System) deleted File already exists maliciously or by mistake.
- Another software in conflict with Windows Operating System, File already exists, or shared references.
- Incomplete or corrupt Windows Operating System (File already exists) from download or installation.
Compatible with Windows 11, 10, 8, 7, Vista, XP and 2000
Источник
runtime error#58
Do you know what this is and how to fix?
- 9 Contributors 15 Replies 958 Views 10 Months Discussion Span Latest Post 17 Years Ago Latest Post by jwshepherd
Error 58 is File already exists.
(you can do ERROR #)
where # is a number to find out the error message for that error number
Without the code, it will be impossible to debug.
(You can also get a list of run-time errors and the associated …
can you post your code please, where the error takes place. thanks.
Yes, Post Your code, so that we may see, and tinker with it.
That was a trick I used to use in Batch file fun. 🙂
It also says program already exists.
Exactly what are you trying to do?
Error 58 is File already exists.
(you can do ERROR #)
where # is a number to find out the error message for that error number
Without the code, it will be impossible to debug.
(You can also get a list of run-time errors and the associated error messages
in the help). F1 then I then E then Error Statement then Run-Time error Codes
open up the tech in a box.
win xp home
it says to check for updates when I click yes I get the error 58 file already exists when I click ok to the error it cancels the program
Do you know what this is and how to fix?
PLZ TELL ME ABOUT RUN TIME ERROR 58 AND HOW CAN I FIX IT
plz tell to fix run time error 58
can you post your code please, where the error takes place. thanks.
Yes, Post Your code, so that we may see, and tinker with it.
Runtime error 58 occurs when you try to rename a file with a name that already exists (in the same folder), or you try to save a new file with the same name as one that already exists (in the same folder).
With MSDOS, sorry Windows you cannot insert information into a file that already exists. The way around this is to first re-name the old file (so it is still there if you need it, a temporary file so to speak) with an obscure name (I use a few relevant «ABC» characters) plus a randomly generated number) for new name of the «old» file. Then I use a string to store the new name of the file (so I can still refer to it). Then you save the new information to the old file name (now you have re-named it, it won’t clash). At this point if it goes wrong you can then re-name the «backup» file and you will be where you were before. If there is no problem and the new file is saved then you just delete the temporary file. If you don’t then the folder will become full of the temporary files.
This sounds confusing. I think Comatose will understand what I mean. I hope you do as well.
Источник
How to fix the Runtime Code 58 Microsoft Access Error 58
This article features error number Code 58, commonly known as Microsoft Access Error 58 described as File already exists.
Error Information
Error name: Microsoft Access Error 58
Error number: Code 58
Description: File already exists.
Software: Microsoft Access
Developer: Microsoft
This repair tool can fix common computer errors like BSODs, system freezes and crashes. It can replace missing operating system files and DLLs, remove malware and fix the damage caused by it, as well as optimize your PC for maximum performance.
About Runtime Code 58
Runtime Code 58 happens when Microsoft Access fails or crashes whilst it’s running, hence its name. It doesn’t necessarily mean that the code was corrupt in some way, but just that it did not work during its run-time. This kind of error will appear as an annoying notification on your screen unless handled and corrected. Here are symptoms, causes and ways to troubleshoot the problem.
Definitions (Beta)
Here we list some definitions for the words contained in your error, in an attempt to help you understand your problem. This is a work in progress, so sometimes we might define the word incorrectly, so feel free to skip this section!
- Access — DO NOT USE this tag for Microsoft Access, use [ms-access] instead
- Exists — Exists is a keyword or function in many languages, especially in SQL.
- File — A block of arbitrary information, or resource for storing information, accessible by the string-based name or path
- Access — Microsoft Access, also known as Microsoft Office Access, is a database management system from Microsoft that commonly combines the relational Microsoft JetACE Database Engine with a graphical user interface and software-development tools
- Microsoft access — Microsoft Access, also known as Microsoft Office Access, is a database management system from Microsoft that commonly combines the relational Microsoft JetACE Database Engine with a graphical user interface and software-development tools
Symptoms of Code 58 — Microsoft Access Error 58
Runtime errors happen without warning. The error message can come up the screen anytime Microsoft Access is run. In fact, the error message or some other dialogue box can come up again and again if not addressed early on.
There may be instances of files deletion or new files appearing. Though this symptom is largely due to virus infection, it can be attributed as a symptom for runtime error, as virus infection is one of the causes for runtime error. User may also experience a sudden drop in internet connection speed, yet again, this is not always the case.
(Microsoft Access Error 58) Repair Tool»/>
(For illustrative purposes only)
Causes of Microsoft Access Error 58 — Code 58
During software design, programmers code anticipating the occurrence of errors. However, there are no perfect designs, as errors can be expected even with the best program design. Glitches can happen during runtime if a certain error is not experienced and addressed during design and testing.
Runtime errors are generally caused by incompatible programs running at the same time. It may also occur because of memory problem, a bad graphics driver or virus infection. Whatever the case may be, the problem must be resolved immediately to avoid further problems. Here are ways to remedy the error.
Repair Methods
Runtime errors may be annoying and persistent, but it is not totally hopeless, repairs are available. Here are ways to do it.
If a repair method works for you, please click the upvote button to the left of the answer, this will let other users know which repair method is currently working the best.
Источник
Как исправить время выполнения Ошибка 58 Файл уже существует
В этой статье представлена ошибка с номером Ошибка 58, известная как Файл уже существует, описанная как Эта ошибка возникает во время выполнения, когда новое имя файла, например, указанное в операторе Name, идентично имени файла, который уже существует.
Информация об ошибке
Имя ошибки: Файл уже существует
Номер ошибки: Ошибка 58
Описание: Эта ошибка возникает во время выполнения, когда новое имя файла, например, указанное в операторе Name, идентично имени файла, который уже существует.
Программное обеспечение: Windows
Разработчик: Microsoft
Этот инструмент исправления может устранить такие распространенные компьютерные ошибки, как BSODs, зависание системы и сбои. Он может заменить отсутствующие файлы операционной системы и библиотеки DLL, удалить вредоносное ПО и устранить вызванные им повреждения, а также оптимизировать ваш компьютер для максимальной производительности.
О программе Runtime Ошибка 58
Время выполнения Ошибка 58 происходит, когда Windows дает сбой или падает во время запуска, отсюда и название. Это не обязательно означает, что код был каким-то образом поврежден, просто он не сработал во время выполнения. Такая ошибка появляется на экране в виде раздражающего уведомления, если ее не устранить. Вот симптомы, причины и способы устранения проблемы.
Определения (Бета)
Здесь мы приводим некоторые определения слов, содержащихся в вашей ошибке, в попытке помочь вам понять вашу проблему. Эта работа продолжается, поэтому иногда мы можем неправильно определить слово, так что не стесняйтесь пропустить этот раздел!
- Exists — «Exists» — ключевое слово или функция на многих языках, особенно в SQL.
- File — блок произвольной информации или ресурс для хранения информации, доступный по строковому имени или пути.
- Время — измерение времени, необходимого для выполнения операции.
Симптомы Ошибка 58 — Файл уже существует
Ошибки времени выполнения происходят без предупреждения. Сообщение об ошибке может появиться на экране при любом запуске %программы%. Фактически, сообщение об ошибке или другое диалоговое окно может появляться снова и снова, если не принять меры на ранней стадии.
Возможны случаи удаления файлов или появления новых файлов. Хотя этот симптом в основном связан с заражением вирусом, его можно отнести к симптомам ошибки времени выполнения, поскольку заражение вирусом является одной из причин ошибки времени выполнения. Пользователь также может столкнуться с внезапным падением скорости интернет-соединения, но, опять же, это не всегда так.
(Файл уже существует) Repair Tool»/>
(Только для примера)
Причины Файл уже существует — Ошибка 58
При разработке программного обеспечения программисты составляют код, предвидя возникновение ошибок. Однако идеальных проектов не бывает, поскольку ошибки можно ожидать даже при самом лучшем дизайне программы. Глюки могут произойти во время выполнения программы, если определенная ошибка не была обнаружена и устранена во время проектирования и тестирования.
Ошибки во время выполнения обычно вызваны несовместимостью программ, запущенных в одно и то же время. Они также могут возникать из-за проблем с памятью, плохого графического драйвера или заражения вирусом. Каким бы ни был случай, проблему необходимо решить немедленно, чтобы избежать дальнейших проблем. Ниже приведены способы устранения ошибки.
Методы исправления
Ошибки времени выполнения могут быть раздражающими и постоянными, но это не совсем безнадежно, существует возможность ремонта. Вот способы сделать это.
Если метод ремонта вам подошел, пожалуйста, нажмите кнопку upvote слева от ответа, это позволит другим пользователям узнать, какой метод ремонта на данный момент работает лучше всего.
Источник
Runtime Error Support Guide
What is a Runtime Error?
Runtime Error 58 (File already exists) indicates that there is a software or hardware problem. Runtime errors can be caused by conflicts between two or more software programs, memory problems, or if your computer has been infected by malicious software such as a virus or trojan horse.
Common Problems
Runtime errors can result in both program and system crashes, slow computer performance, disruptive error messages, and high CPU usage. In the case of malicious software, there can be additional issues.
Fix Runtime Error 58
To fix Runtime Error 58 and ensure your computer functions error free, it is highly recommended that you download and run the Runtime Error 58 repair tool Advanced System Repair. Click the button below to download the software.
STEP 1:
STEP 2:
Click ‘Scan’ to search for errors.
STEP 3:
Click ‘Fix All’ and you’re done!
7 Comments on «Runtime Error 58 — File already exists»
DaViD says: | Topic: Support |
Yay! All fixed! |
OldTimer67 says: | Topic: Support |
this was a big help |
JULIANNE says: | Topic: Support |
Thanks, this solved the problem and my headache! |
Rock8t says: | Topic: Support |
this got rid of the runtime error 58 |
Good_Girl says: | Topic: Support |
I just wanted to let everyone know this worked for me |
Blaminator says: | Topic: Support |
Now i can play Call of Duty again |
JennyB says: | Topic: Support |
100% fixed, thanks! |
Trademarks: Microsoft and Windows are registered trademarks of Microsoft Corporation. Disclaimer: RuntimeError.co is not affiliated with Microsoft Corporation, nor claim any such implied or direct affiliation. The information contained on this site is for informational purposes only. The owners of this site are compensated by relationships with the recommended software products.
Recommended Answers
Error 58 is File already exists.
(you can do ERROR #)
where # is a number to find out the error message for that error numberWithout the code, it will be impossible to debug.
(You can also get a list of run-time errors and the associated …
Jump to Post
can you post your code please, where the error takes place…thanks.
Jump to Post
Yes, Post Your code, so that we may see, and tinker with it.
Jump to Post
That was a trick I used to use in Batch file fun….
![]()
Jump to Post
All 15 Replies
18 Years Ago
It also says program already exists.
18 Years Ago
Exactly what are you trying to do?
Buff
0
Light Poster
18 Years Ago
Error 58 is File already exists.
(you can do ERROR #)
where # is a number to find out the error message for that error number
Without the code, it will be impossible to debug.
(You can also get a list of run-time errors and the associated error messages
in the help). F1 then I then E then Error Statement then Run-Time error Codes
18 Years Ago
open up the tech in a box.
win xp home
18 Years Ago
it says to check for updates when I click yes I get the error 58 file already exists when I click ok to the error it cancels the program
17 Years Ago
Do you know what this is and how to fix?
PLZ TELL ME ABOUT RUN TIME ERROR 58 AND HOW CAN I FIX IT
17 Years Ago
plz tell to fix run time error 58
17 Years Ago
can you post your code please, where the error takes place…thanks.
Comatose
290
Taboo Programmer
Team Colleague
17 Years Ago
Yes, Post Your code, so that we may see, and tinker with it.
17 Years Ago
Runtime error 58 occurs when you try to rename a file with a name that already exists (in the same folder), or you try to save a new file with the same name as one that already exists (in the same folder).
With MSDOS, sorry Windows you cannot insert information into a file that already exists. The way around this is to first re-name the old file (so it is still there if you need it, a temporary file so to speak) with an obscure name (I use a few relevant «ABC» characters) plus a randomly generated number) for new name of the «old» file. Then I use a string to store the new name of the file (so I can still refer to it). Then you save the new information to the old file name (now you have re-named it, it won’t clash). At this point if it goes wrong you can then re-name the «backup» file and you will be where you were before. If there is no problem and the new file is saved then you just delete the temporary file. If you don’t then the folder will become full of the temporary files.
This sounds confusing. I think Comatose will understand what I mean. I hope you do as well.
Comatose
290
Taboo Programmer
Team Colleague
17 Years Ago
That was a trick I used to use in Batch file fun….
17 Years Ago
If you are just trying to create a new file and want to delete the old file. use kill before your open statement.
kill app.path & "file.txt"
But like mrConfused stated, i would rename the file first. You might try nameing each file with the date and time, something like this usually does not get overwritten because the file name is always different, unless someone has reset the system clock or your writing more than one file per second.
Open App.Path & "" & Year(Date) & Month(Date) & Day(Date) & Hour(Time) & Minute(Time) & Second(Time) & ".txt" For Output As #1
Comatose
290
Taboo Programmer
Team Colleague
17 Years Ago
I always find shelling to be a convient way to execute simple operations…. certainly you could always use a rename function or an API call, but it’s just as easy to shell with the rename command.
17 Years Ago
Runtime Error 58
Is that a question?
Reply to this topic
Be a part of the DaniWeb community
We’re a friendly, industry-focused community of developers, IT pros, digital marketers,
and technology enthusiasts meeting, networking, learning, and sharing knowledge.
Rookie_User
-
#1
I am trying to move a file from one folder to another — or at least copy and
delete the old file. I get an error 58 file already exists, and don’t know
why?
Public Sub MoveFiles(ByVal Source As String, ByVal Destination As String)
Dim oFSO As Object
Set oFSO = CreateObject(«Scripting.FileSystemObject»)
With oFSO
If .FileExists(Source) Then
..MoveFile Source, Destination
Else
MsgBox Source & » Doesn’t Exist», vbExclamation
End If
End With
Set oFSO = Nothing
End Sub
Sub RunThroughList()
Dim I As Long
Dim Destination As String
Dim Lastrow As Long
Lastrow = Worksheets(1).Cells(Rows.Count, 1).End(xlUp).Row
For I = 1 To Lastrow
MoveFiles Range(«A» & I).Value, «C:Output»
Next
End Sub
Advertisements
Matthew Herbert
-
#2
Rookie_User,
Are your names fully qualified? For example, you need to use
C:MoveFromtest.txt rather than test.txt.
Have you looked over the help documentation for MoveFile Method (i.e. you
know how source should be set up and you know the implications of leaving off
«» for destination)? Also, you may want to consider the Name Statement (see
the VBE Help files for this).
Without me creating any code to mirror what you are doing, I would start by
examining the help documentation and ensure that your arguments are correct.
Best,
Matthew Herbert
Matthew Herbert
-
#3
Rookie_User,
I left out one of my questions in the original post. Since you are not
testing if the destination already has the source file, do any of source
files already exist in destination?
Best,
Matthew Herbert
Rookie_User
-
#4
Thank you for getting back to me, there are no existing files in the
destination folder — confirmed. I tried to follow the code but when using
ofs — it’s an area I am not familiar with. The code above just fails
(runtime failure error 58) and says file already exists.
In column A I have the full path c:inputtext.txt
and the output folder is c:output
The watch statements appear to have the correct values in them.
Sorry for the late reply — even when I have the box «notify me of replies»
marked, I do not get notified. I have checked my junk mail, etc.. and
nothing so I am unsure why. But I will check more frequently. Thanks again
for your help and effort.
Matthew Herbert
-
#5
Rookie_User,
I did some mock tests. Here are my general observations (and pay close
attention to the subtle differences in «Destination»):
Scenario 1
— Source — C:Inputtest.txt
— Destination — C:Output
— Destination file — test.txt
Result: Run-time error ’58’ File already exists
Scenario 2
— Source — C:Inputtest.txt
— Destination — C:Output
— Destination file — N/A
Result: Run-time error ’58’ File already exists
Scenario 3
— Source — C:Inputtest.txt
— Destination — C:Output
— Destination file — N/A
Result: File Moved
So, what’s the subtle difference? As mentioned previously, the MoveFile
Method helps to shed some light on the issue. The Help file states that «If
…. destination ends with a path separator (), it is assumed that
destination specifies an existing folder in which to move the matching files.
Otherwise, destination is assumed to be the name of a destination file to
create…» So, Scenario 2 is your current scenario for the code in your post
(i.e. NO «» on destination, or «C:Output»). As the help states, if the
separator is absent, then the system tries to create the destination. If
your destination folder ALREADY exists, and you do NOT use the «» on the
destination folder path, then the system tries to create an already existing
folder. Thus, the error occurs because you are trying to recreate a folder
that already exists.
What should be done? You can insert the «» on the end of your destination
folder and/or test for the folder prior to .MoveFile. (Personally, I think
you should test for the existence of the destination folder prior to
..MoveFile (via .FolderExists) AND test for the existence of the source file
in destination prior to .MoveFile (via .FileExists). Testing these two
scenarios will at least this care of two of the situations that will
inevitably occur. I put some code below for you to reference).
Best,
Matt
Public Sub MoveFiles(ByVal Source As String, ByVal Destination As String)
Dim oFSO As Object
Dim strDestPath As String
Set oFSO = CreateObject(«Scripting.FileSystemObject»)
With oFSO
‘test if the destination folder exists
If .FolderExists(Destination) Then
‘test if the source file exists in destination
strDestPath = .GetFolder(Destination) & «» & _
.GetFileName(Source)
If Not .FileExists(strDestPath) Then
‘test if the source file exists
If .FileExists(Source) Then
‘move the file
.MoveFile Source, Destination
Else
MsgBox Source & » Doesn’t Exist», vbExclamation
End If
End If
End If
End With
Set oFSO = Nothing
End Sub
Sub RunThroughList()
Dim I As Long
Dim Destination As String
Dim Lastrow As Long
Lastrow = Worksheets(1).Cells(Rows.Count, 1).End(xlUp).Row
For I = 1 To Lastrow
MoveFiles Range(«A» & I).Value, «C:Output»
Next I
End Sub
Bailey
-
#6
WOW, the dialogue really helps me understand and walk through exactly what
your meaning AND you were exactly correct. Thank you for your time,
education and your efforts.
Advertisements
Bailey
-
#7
Mathew, in your above code in the public sub section — how might I color code
that cell or put a value of missing in the next column — this is so I can
identify all files that are missing or vice versa identify those that are
successful.
I tried passing the value of I into the public sub as a long, but then I did
this
..cells («A»,I).interiorcolor.index=6
but I get a type mismatch?
any suggestiosn
Advertisements
Matthew Herbert
-
#8
Bailey,
Highlighting a cell uses the Interior property of a range, so the syntax
could look like the following:
Range(«A1»).Interior.ColorIndex = 6
In your specific situation, I would probably change your Public Sub to a
Function with a Boolean data type. This way, you can return True for a
successful file move or False for an unsuccessful file move. If False, then
you can color the cell via the RunThroughList procedure. I’ve provided some
illustrative code below (and removed the MsgBox because that will likely get
rather annoying, if that situation every occurs given the pre-tests for file
and folder). When using Boolean data types, the variable is initialized as
False, so unless you explicitly change it to True, the value will always be
False. I did NOT test the code, but I did change the name of the function
from MoveFiles to IsFileMoved.
I want to point out two subtle notes.
(1) Be careful with «qualifying your ranges.» Rather than re-explaining a
concept, see my post (i.e. «Sub QualifyRanges…» procedure and explanation)
in the following thread (the 4th or 5th post):
http://groups.google.com/group/micr…ramming/browse_thread/thread/6f5137ca83744b60
(2) You should probably clear the highlighting prior to running
«RunThroughList» because you may end up with incorrect results if you run
this procedure more than once. (For example, an error on the first run of
«RunThroughList» might be highlighted, but that error might not occur on the
second run (i.e. should not be highlighted but since it was highlighted on
the first run the cell shows an incorrect highlight)). An alternative would
be something like If True Then clear the highlighting (i.e. I think you can
use .Interior.ColorIndex = xlNone) Else highlight as desired.
Best,
Matthew Herbert
Public Function IsFileMoved(ByVal Source As String, _
ByVal Destination As String) As Boolean
Dim oFSO As Object
Dim strDestPath As String
Set oFSO = CreateObject(«Scripting.FileSystemObject»)
With oFSO
‘test if the destination folder exists
If .FolderExists(Destination) Then
‘test if the source file exists in destination
strDestPath = .GetFolder(Destination) & «» & _
.GetFileName(Source)
If Not .FileExists(strDestPath) Then
‘test if the source file exists
If .FileExists(Source) Then
‘move the file
.MoveFile Source, Destination
IsFileMoved = True
Else
IsFileMoved = False
End If
End If
End If
End With
Set oFSO = Nothing
End Function
Sub RunThroughList()
Dim I As Long
Dim Destination As String
Dim Lastrow As Long
Dim blnMoved As Boolean
Lastrow = Worksheets(1).Cells(Rows.Count, 1).End(xlUp).Row
For I = 1 To Lastrow
‘here is how to do it in a single statement:
‘If Not IsFileMoved(Range(«A» & I).Value, «C:Output») Then
‘ color the cell
‘End If
‘here is how to do it with a variable
blnMoved = IsFileMoved(Range(«A» & I).Value, «C:Output»)
If Not blnMoved Then
Range(«A» & I).Interior.ColorIndex = 6
End If
Next I
End Sub