Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
29236 Discussions

Error opening SCRATCH file on Windows XP

davidgraham
Beginner
1,205 Views
I am opening a temporary file on a Windows EX machine using the following statement.
open (33,status='scratch',access='direct',form='binary',recl=6,err=4700)
I get an error 123 - The filename, directory name, or volume label syntax is incorrect.
It works on other operating systems such as Windows 95 or Windows NT.
Alsoopenening temporary files appears works on Windows XP with a different program.
Is there some setting that needs changed?
Is it something to do with it creating the temporary filer in the Windows emp directory rather than the windowsuser emp directory?
David
0 Kudos
7 Replies
dave_frank
Beginner
1,205 Views
Works for me on my XP system using CVF6.6C
0 Kudos
davidgraham
Beginner
1,205 Views

Maybe I'm wrong about Windows XP. Are there any other reasons the problem could be occuring. It only appears to be going wrong on on PC in one program.

David

0 Kudos
Lorri_M_Intel
Employee
1,205 Views

Check carefully the values of TEMP and TMP.

First, make sure they both point to valid directories.

Next, I don't recall which version of CVF you had, but I think it was a relatively recent one, right? There were problems in earlier releases with TEMP/TMP directories containing embedded spaces. There may still be a problem with embedded non-ascii characters. Please check that also.

Finally,a more obscure problem would be if you didn't have write access to those directories (hey, some people set their systems up differently than I would, butwho am I to judge? ;-) )

- Lorri

0 Kudos
Steven_L_Intel1
Employee
1,205 Views
I don't think the space-in-path issue is relevant here, but certainly if TEMP and TMP don't point to valid or writeable folders, you could get this error.
0 Kudos
davidgraham
Beginner
1,205 Views

I have investigated this a bit more.

With Windows XP the temporary file locationis c:Documents and SettingsYourNameLocal SettingsTemp.

With one application it writes the temporary file with no error, but with another application it gives an error.

Is there something in the project settings that defines the temporary file location?

David

0 Kudos
Steven_L_Intel1
Employee
1,205 Views
No, the scratch file location is taken from TEMP or TMP (I'm not sure of the order.) There is nothing in the project that affects this.
0 Kudos
davidgraham
Beginner
1,205 Views

If a SCRATCH file is createdwith one application I cannot see any reason why I would get an error with another application.

David

0 Kudos
Reply