Jump to content
MSFN is made available via donations, subscriptions and advertising revenue. The use of ad-blocking software hurts the site. Please disable ad-blocking software or set an exception for MSFN. ×

how to separate arguments?


 Share

Recommended Posts

This is the problem:

I have 2 arguments in winnt.sif in [GuiUnattended] , together doesn't work, anyone know how to separate arguments?

1 argument:

DetachedProgram=CMD.EXE
Arguments="/Q /C FOR /F %? IN ('%SYSTEMROOT%\SYSTEM32\MOUNTVOL.EXE^|FINDSTR :\') DO (IF EXIST %?\OEM\QuickLch\QuickLch.exe (START %?\OEM\QuickLch\QuickLch.exe && exit))"

2 argument:

DetachedProgram=".\system32\cmd.exe"
Arguments="/Q /C FOR /F %I IN (%SystemRoot%\SYSTEM32\$WINNT$.INF) DO (FOR %J IN (%I$OEM$) DO (IF EXIST %J (start /min /D%J NirCmd.exe exec hide Drivers.cmd)))";

And i try this:

DetachedProgram=".\system32\cmd.exe"
Arguments="/Q /C FOR /F %I IN (%SystemRoot%\SYSTEM32\$WINNT$.INF) DO (FOR %J IN (%I$OEM$) DO (IF EXIST %J (start /min /D%J NirCmd.exe exec hide Drivers.cmd)))"
"/Q /C FOR /F %? IN ('%SYSTEMROOT%\SYSTEM32\MOUNTVOL.EXE^|FINDSTR :\') DO (IF EXIST %?\OEM\QuickLch\QuickLch.exe (START %?\OEM\QuickLch\QuickLch.exe && exit))"

Sorry for me english but you sure understand :rolleyes:

Link to comment
Share on other sites


Also what is this supposed to do?

FOR /F %I IN (%SystemRoot%\SYSTEM32\$WINNT$.INF) DO (FOR %J IN (%I$OEM$) DO (IF EXIST %J

In a general $WINNT$.INF that would produce lines like this:

FOR %J IN ([Unattend]$OEM$) DO (IF EXIST [Unattended]$OEM$

and

FOR %J IN (UnattendMode=FullUnattended$OEM$) DO IF EXIST UnattendMode...
IF EXIST FullUnattended$OEM$...

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    No registered users viewing this page.


×
×
  • Create New...