All Things WinBatch > WebBatch

Does webbatch have a problem with linked paths?

(1/2) > >>

bottomleypotts:
I don't seem to be able to "call" a subroutine from webbatch. The file exists in the path, however the path has been created with a "mklink /D".

td:
Not sure what you mean by calling a subroutine since calling a subroutine does not in and of itself involve accessing a file. But assuming you are referring to calling a second script from a running script, WebBatch does not have any "problems" with symbolic links. Your problem is more likely than not file/directory permissions related. Web server processes run with very restricted user account permissions.

bottomleypotts:

--- Quote from: td on December 09, 2022, 08:14:41 am ---Not sure what you mean by calling a subroutine since calling a subroutine does not in and of itself involve accessing a file. But assuming you are referring to calling a second script from a running script, WebBatch does not have any "problems" with symbolic links.

--- End quote ---

Yes. That is why I enclosed the "call" in quotations, so that readers understood that I was using the call function - ie. Call ( filename, parameters ). Sorry, don't know how I would make that any more clearer.


--- Quote from: td on December 09, 2022, 08:14:41 am ---Your problem is more likely than not file/directory permissions related. Web server processes run with very restricted user account permissions.

--- End quote ---

The first script appears to be running correctly, and is called from the same linked path. The subsequent call is being called from the same location. And yes, I have checked file permissions. I can fileget() the file. I cannot call() the file.

The error message is: 102:  Specified menu/batch file not found.

td:


--- Quote ---Yes. That is why I enclosed the "call" in quotations, so that readers understood that I was using the call function - ie. Call ( filename, parameters ). Sorry, don't know how I would make that any more clearer.

--- End quote ---

There are a lot of ways to make something more straightforward. For example, say you are using the "call" function to load a second script. The term "subroutine" has several meanings in WinBatch including making a"call" to a user-defined-subroutine.


--- Quote ---The first script appears to be running correctly, and is called from the same linked path. The subsequent call is being called from the same location. And yes, I have checked file permissions. I can fileget() the file. I cannot call() the file.

The error message is: 102:  Specified menu/batch file not found.

--- End quote ---

It would have been useful to provide that information in your original post. However, I am not sure what is causing the error but I doubt it is because of a symbolic link since the call function and the fileget function open files for reading in the same way. Are you using full paths or relative paths for each function?

bottomleypotts:
I am using a variable to test. It has the full path to the file included. Both the "call" function and the "fileget" function use the variable.

Navigation

[0] Message Index

[#] Next page

Go to full version