T tseug Unregistered / Unconfirmed GUEST, unregistred user! 2007-03-25 #2 试试这个 echo off mountvol %1 /L>drive.mnt Echo Deleting %1 drive mountvol %1 /D for /f %%I in (drive.mnt) do set changedrive=%%I Echo Remounting %1 as %2 drive mountvol %2 %changedrive% set changedrive= del drive.mnt
试试这个 echo off mountvol %1 /L>drive.mnt Echo Deleting %1 drive mountvol %1 /D for /f %%I in (drive.mnt) do set changedrive=%%I Echo Remounting %1 as %2 drive mountvol %2 %changedrive% set changedrive= del drive.mnt
T tseug Unregistered / Unconfirmed GUEST, unregistred user! 2007-03-25 #3 如果用API可参考 http://msdn2.microsoft.com/en-us/library/aa365735.aspx