Originally posted by graper at 2007-6-28 18:58:
上面这个直接以BAT方式运行可以工作,但如果用工具编译成EXE文件就不行了,路径会变成系统临时目录的路径:(
别外如果我只想取当前文件的上级 ...
一般来说如果用工具编译成EXE文件,在运行EXE文件时,EXE文件会自动将EXE文件解密,其解密后的BAT文件就放在系统临时目录里,所以路径会变成系统临时目录的路径
Originally posted by graper at 2007-6-28 18:58:
The above one can work when run directly in BAT mode, but it doesn't work when compiled into an EXE file with a tool; the path will become the path of the system temporary directory :(
Moreover, if I only want to get the upper level of the current file ...
Generally speaking, when an EXE file is compiled with a tool and then run, the EXE file will automatically decrypt the BAT file, and the decrypted BAT file will be placed in the system temporary directory, so the path will become the path of the system temporary directory