Change Directories in Intel Fortran - intel-fortran

I am trying to access a directory in which the path has some spaces.
For example, this is what is in Fortran Help:
USE IFPORT
LOGICAL(4) status
status = CHANGEDIRQQ('d:\fps90\bin\bessel')
Is it possible to change this to:
status = CHANGEDIRQQ('d:\fps90\bin\bessel modified')
I tried this and the status returns as NAN. Any help regarding this is highly appreciated.

You could try the short name of the directory, which should b D:\fps90\bin\bessel~1 in this case. Check with dir /x if unsure.

Related

Clarification of code to change target of a Shortcut(.lnk) file

I am a Java programmer, and I do not know anything about VBScript. I needed a way to modify the target path of a certain shortcut, and I according to my research, only VBScript can help me. I tried it, but there were many errors.
I tried to resolve them by a butt ton of googling, but I think there is some other problem.
Here is the code:
Set sh = CreateObject("WScript.Shell")
Set shortcut = sh.CreateShortcut("C:\Users\pedne\Desktop\Zoom.lnk")
shortcut.TargetPath = "C:\Users\pedne\AppData\Roaming\Zoom\bin\Zoom.exe ""--url=zoommtg\://zoom.us/join?action=join&confno=955 1234 1234&pwd=12345"""
shortcut.Save
I do not know whether I need any prerequisites or external libraries for writing VBScript code, and I wrote it on notepad.I would also like to know whether there is any 100% Java or any other workaround to this. (Totally up to you)
Please excuse me if I do not understand anything about your answers as I copied the code from Change a shortcut's target from command prompt
The last error I got was at Line 3 char 1, Invalid procedure or call
Do not append the arguments to the target path. Use the Arguments property instead:
shortcut.TargetPath = "C:\Users\pedne\AppData\Roaming\Zoom\bin\Zoom.exe"
shortcut.Arguments = "--url=zoommtg\://zoom.us/join?action=join&confno=955 1234 1234&pwd=12345"
shortcut.Save

I want to recover the filename in Java I/O

I had name file in JAVA I/O:
f1 = new File("C:\\Program Files\directory\FileDir\file.txt");
I want to recover the filename only: FileDir(type String).
.getName() should help you.
new File("C:\Program Files\directory\FileDir\file.txt").getName();
There are other methods for File as well. Please go through the documentation here to find out how to get absolute path, canonical path, etc. and what are the differences between them.

Inquire in fortran 90

I have the statement:
Inquire( FILE = "myfile.dat", EXIST = existence )
My question is where does the function inquire() look for this file? Does it look first in the present working directory and if the file is not there, where else does inquire() look? Does it look in my bash $PATHs?
/M
The INQUIRE is not a function, it is a statement.
Fortran standard doesn't have any notion of directories, so it depends on the operating system and the compiler, where it has access to. In practice it looks in the current directory. You can also use absolute path, of course.

Command line SVN help to check the working copy is an outdated copy of the one present in the server

Hello
I want to implement the following flow in my application.(as shown in the pseudocode)
LatestRevision = IsMyFileLatest(); // some method which should check the svn and compare the working copy of the file.
if (! LatestRevision) //this flag compares with the Head Revision
{
//Display error message..The file is not the latest copy
}
else
{
// Commit the file changes in the subversion server
FileCommit(); //commits the file(whichever file im working to the server)
}
For this i need help of the following svn commands executed in the command line.
to check whether the current file is the latest file ?
committing only those files which are modified..in a directory.
Any help or pointers regarding the subversion command line is deeply appreciated.
Thanks and Best regards
The VisualSVN site hosts a 'book' on Subversion, located here, which should give you a good starting point - though off the top of my head I'm not sure of the exact commands you'd need to use...
There is a chapter which is a reference for commands:
SVN Reference.
Explained there is svn info which may help you out well enough.
EDIT:
On the other hand, after reading your altered title, svn status may be what you're looking for?
EDIT 2:
Ok, given that the programming language used in your question is not explicitly stated, and the fact it's such a common syntax that we could liken the guesswork to that of beating a dead horse, here's a little snippet in the universal (in the Windows world) VBScript...
Dim shell, svn
Set shell = CreateObject("WScript.Shell")
Set svn = shell.Exec("svn info [working_copy_path]")
WScript.Sleep 1000
Dim revision
Do While svn.StdOut.AtEndOfStream <> True
revision = svn.StdOut.ReadLine
If left(revision, 8) = "Revision" Then
Exit Do
End If
Loop
WScript.Echo revision
I'm far from proud of the Sleep mechanism utilised, but luckily I'm not the one with (much of) a responsibility here, so I'll leave generating a clean-cut approach to yourself and just put this out there as an example.

How to use wildcard in Windows command-line?

I some animations, they are like this:
/OP/
/OP/OP1/
/OP/OP1/OP1.rmvb
/OP/OP2/
/OP/OP2/OP2.rmvb
/OP/OP3/
/OP/OP3/OP3.rmvb
/OP/OP4/
/OP/OP4/OP4.rmvb
...and more
I want to make it like
/OP/
/OP/OP1.rmvb
/OP/OP2.rmvb
/OP/OP3.rmvb
/OP/OP4.rmvb
I tried
move \OP\*\*.rmvb \OP
It gave me error says
The file name, directory name, or volume label syntax is incorrect.
I also tried
dir \OP\*
This shows all the folders
But if I try
dir \OP**
It gave me the same error.
Could anyone please help me?? Thank you very much
Is that a programming question? Requiring to do this on the command line?
Otherwise, I would just do a Windows Search *.rmvb, and drag'n'drop the result to the folder of your choice...

Resources