문제

I have this script for mounting iso files

@echo off

set fileiso=%~1
set Exedir="C:\Program Files\OSFMount"

cd /d %Exedir%
osfmount -a -t file -f "%fileiso%" -m #:

if the path is like this:(%fileiso%) D:\Download\another path with some iso inside\Iso\any.iso not work

any help please :D

도움이 되었습니까?

해결책

This works for me:

@echo off
set "fileiso=%~1"
set Exedir="C:\Program Files\OSFMount"
pushd "%Exedir%"
osfmount -a -t file -f "%fileiso%" -m #:
popd
pause

Output:

C:\Program Files\OSFMount
Creating device...
Created device 1: G: ->
D:\Old C Drive\Users\williamsonm\Downloads\clonezilla-live-20130314-quantal-i386.iso
Notifying applications...
Done.
Press any key to continue . . .
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top