Home > OS >  Ask a simple batch problem
Ask a simple batch problem

Time:10-06

SET _HOME_EXT=% % ~ do ~ p0XTVY

This line refers to a set _HOME_EXT asked with hierarchical directory of the current directory XTVY file?
Such as the current directory is C: \ bin
_HOME_EXT is C: \ binXTVY?

The SET UNIFIER_BASE=% _HOME_EXT: \ weblogic \ XTVY=%
The line between the two % % : didn't quite understand,


Thank you,
Didn't contact with batch, have a great god know where to ask questions,

CodePudding user response:

Full path to the % 0, batch file (C: \ ABC \ xx bat)
% ~ d0, take the full path to the batch file drive (C:)
% ~ p0, take the path of the batch file part (ABC \ \)
% % % ABC: x=y, replace the ABC % variable x, replace with y, your UNIFIER_BASE when replacement, x is \ weblogic \ XTVY, y is empty, is deleted _HOME_EXT all variable x,
  • Related