Question

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

Was it helpful?

Solution

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 . . .
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top