I didn't have that in the original command line before I changed it! It ran! QB64 supposedly doesn't need CMD /C in its command line either, but it fails too! All I did was change the file name to 2 and change it back and now it dosn't work.
I can drop BAS files directly into the batch file and it works. I can run the command line in another batch file and it works.
Here's the dope on the NEW command parameters for XP up:
%~1 Expands %1 to path and filename. QB call shows filename only.
%~f1 Expands %1 to the fully qualified path with file name.
%~d1 Expands %1 to a drive letter without a \ slash. C:
%~p1 Expands %1 to a path with \ at both ends (NO Drive letter).
%~n1 Expands %1 to a file first name only.(No extension or dot)
%~x1 Expands %1 to the file extension only with the dot.
%~s1 Expands %1 to path with short DOS folder and file names only.
%~a1 Expands %1 to file attributes. --a------
%~t1 Expands %1 to date and time of file. 01/03/2011 01:23 PM
%~z1 Expands %1 to size of file. 1002
%~$PATH:1 Searches the directories listed in the PATH environment variable and
expands %1 to the fully qualified name of the first one found. If the
environment variable name is not defined or the file is not found, this
modifier expands to the empty string.
The following table lists possible combinations of modifiers and qualifiers that you can
use to get compound results.
%~dp1 Expands %1 to a drive letter and path.
%~nx1 Expands %1 to a file name and extension.
%~snx1 Expands to short filename and extension.
%~dp$PATH:1 Searches the directories listed in the PATH environment variable for %1
and expands to the drive letter and path of the first one found.
IF "%PATH%" == "" GOTO NOPATH
@ECHO The PATH environment variable was detected.
@ECHO The PATH environment variable was NOT detected.
Note:In the previous examples, you can replace %1 and PATH with other
batch parameter values. The %* modifier is a unique modifier that
represents all arguments passed in a batch file.
Return to Index
|Response Title||Author and Date|
|*thanks for the info. that might be handy someday.||on Jun 16|