### ImageMagick version

7.1.10

### Operating system

Windows

### Operating system, version and so on

Windows 11

### Description

Running this command against a mapped network drive, causes an infinite loop of running the same command over and over: 

**C:\test>magick -density 350 "MT-18515 (2).pdf" -alpha remove -compress group4 -scene 1 "V:\PDFs2\MT-18515(2)_%04d.tif"**

even after breaking the command in terminal, rebooting and trying a *different* output directory, it continues with the previous command. Please see the screenshot below

![image](https://github.com/ImageMagick/ImageMagick/assets/111380312/2e5da410-1961-4277-a830-a94639ca2beb)


### Steps to Reproduce

Map a network drive to a SMB path.

Run the command listed above. Trying to run anything using the word "Magick"

### Images

_No response_
Running against a mapped network drive causes infinite loop that maintains between reboots
This is a GitHub Issue
repo:ImageMagick
owner:ImageMagick
Title : Running against a mapped network drive causes infinite loop that maintains between reboots
Issue date:

--- start body ---
### ImageMagick version

7.1.10

### Operating system

Windows

### Operating system, version and so on

Windows 11

### Description

Running this command against a mapped network drive, causes an infinite loop of running the same command over and over: 

**C:\test>magick -density 350 "MT-18515 (2).pdf" -alpha remove -compress group4 -scene 1 "V:\PDFs2\MT-18515(2)_%04d.tif"**

even after breaking the command in terminal, rebooting and trying a *different* output directory, it continues with the previous command. Please see the screenshot below

![image](https://github.com/ImageMagick/ImageMagick/assets/111380312/2e5da410-1961-4277-a830-a94639ca2beb)


### Steps to Reproduce

Map a network drive to a SMB path.

Run the command listed above. Trying to run anything using the word "Magick"

### Images

_No response_
--- end body ---

None