# \*restart, write + overlay bug

**URL:** <https://calculix.discourse.group/t/restart-write-overlay-bug/1813>\
**Category:** Uncategorized\
**Created:** [September 12, 2023, 10:49am UTC](https://calculix.discourse.group/t/restart-write-overlay-bug/1813 "2023-09-12T10:49:41Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Disla](https://yyz2.discourse-cdn.com/free1/user_avatar/calculix.discourse.group/disla/32/3548_2.png) [@Disla](https://calculix.discourse.group/u/Disla)\
**Post date:** [September 12, 2023, 10:49am UTC](https://calculix.discourse.group/t/restart-write-overlay-bug/1813/1 "2023-09-12T10:49:41Z")

</div>

\*RESTART,WRITE,OVERLAY in Windows system throws an error message.

“rm” is not recognized as an internal or external command,  
program or executable batch file.

“mv” is not recognized as an internal or external command,  
program or executable batch file.

I guess those are Linux commands

---

<div class="post-metadata">

**Author:** ![jbr](https://avatars.discourse-cdn.com/v4/letter/j/ecccb3/32.png) [@jbr](https://calculix.discourse.group/u/jbr)\
**Post date:** [September 12, 2023, 1:30pm UTC](https://calculix.discourse.group/t/restart-write-overlay-bug/1813/2 "2023-09-12T13:30:19Z")

</div>

> [@Disla](#):
>
> I guess those are Linux commands

Looks like you are correct, lines 489-496 of restartwrite.f:  
`! if overlay mode: rename temporaryrestartfile into .rout file`  
` if(irstrt(2).eq.1) then`  
` close(15)`  
` call system("rm -f "//fnrstrt(1:ipos+4))`  
` call system("mv temporaryrestartfile "//fnrstrt(1:ipos+4))`  
` endif`
