INTERACT FORUM

More => Old Versions => JRiver Media Center 27 for Windows => Topic started by: MusicBringer on April 03, 2021, 01:37:59 pm

Title: Directory Write Test
Post by: MusicBringer on April 03, 2021, 01:37:59 pm
My c:\drive is full of these tmp files.

For example Directory Write Test (10132).tmp
Please tell me How do I Stop This.
Thanks,
Title: Re: Directory Write Test
Post by: JimH on April 03, 2021, 03:23:59 pm
Why do you think JRiver is doing that?
Title: Re: Directory Write Test
Post by: zybex on April 04, 2021, 04:50:12 am
It's a known issue:
https://yabb.jriver.com/interact/index.php?topic=127064.0

Also 1st google result:
https://www.tenforums.com/general-support/164577-directory-write-test-tmp-files-created.html
"Using sysinternals process monitor, I found that the culprit was JRiver Media Center. Everytime I save tags with mp3tag, the file is created."

Try clearing the "Start in" folder of the MC Desktop Shortcut, it should be empty.
Also, check if you have TEMP pointing to a non-existing folder.

(proof: MC EXE file contains the string, check attachment)
Title: Re: Directory Write Test
Post by: MusicBringer on April 04, 2021, 09:54:47 am
Bless you zybex,
Thank you so much for your reply.
My "Start in" is empty already.
I have a C:\Users\MCFAN\AppData\Roaming\J River\Media Center 27\Temp - and its empty.
 :)
Title: Re: Directory Write Test
Post by: zybex on April 05, 2021, 03:57:18 am
I meant Windows' TEMP folder.
You can open it by doing WIN+R (Run) and typing %TEMP% in there. On your machine this should open this folder:
C:\Users\MCFAN\AppData\Local\Temp

If it opens C:\ or if it throws an error then it's not configured correctly.

@Jim, maybe JR could investigate on which circumstances this file gets written to C:\ ?
Title: Re: Directory Write Test
Post by: Matt on April 05, 2021, 07:25:41 am
I'm riddled by what could be creating those files at C:\.

I looked at MP3 tagging and when we need to re-write the file, we build a path right next to where the file is:
      JRString strTemporaryFilename = JRFilename::GetFilenamePathAndName(strFilename) + _T(".xxx");
      JRFileSystem::MakeUniqueFilename(strTemporaryFilename);

So I don't think that's building files at C:\.

Do any of you know what it is that's writing there?

Thanks.
Title: Re: Directory Write Test
Post by: JimH on April 05, 2021, 07:48:15 am
Read Zybex's post and the link at Microsoft.   We must be trying to write to root.
Title: Re: Directory Write Test
Post by: MusicBringer on April 05, 2021, 08:49:43 am
@zybex, My C:\Users\MCFAN\AppData\Local\Temp looks happy, thank you zybex
Title: Re: Directory Write Test
Post by: marko on April 05, 2021, 10:14:24 am
It's a known issue:
https://yabb.jriver.com/interact/index.php?topic=127064.0

Also 1st google result:
https://www.tenforums.com/general-support/164577-directory-write-test-tmp-files-created.html
"Using sysinternals process monitor, I found that the culprit was JRiver Media Center. Everytime I save tags with mp3tag, the file is created."

I'm a little confused by this, as surely, Media Center and Mp3tag are not the same thing?
Title: Re: Directory Write Test
Post by: zybex on April 05, 2021, 11:07:28 am
Maybe MC re-importing the file after Mp3Tag changes it, is what's causing the issue?
Perhaps Mp3Tag is writing some tag with a filename (TOFN?) and MC is checking if it has a valid folder path... @Matt?

It doesn't seem related to the code you pasted above - that seems to be creating a random filename, where here the filename has a fixed prefix and a .tmp extension. It looks like a test to determine if a folder is writable.
Title: Re: Directory Write Test
Post by: Matt on April 05, 2021, 11:19:38 am
I maybe know what's going on.

There is code in MC that occasionally checks if a folder is writable by creating a "Directory Write Test..." file.  But it deletes the file as soon as it opens it.  But the file is still open when it tries to delete.

It also doesn't delete if it fails to open (which could happen on a protected folder).

I'll change that coming sometime in the future.

Thanks for the help.