maxXPsoft

For %%I IN

3 posts in this topic

This works in Windows 7 installation but not in Windows 8.1. %MyDrive% returns blank

And doi I really need the setlocal enableextensions?

Running this from a usb jump drive

this is from here http://www.msfn.org/board/topic/138899-se7en-ua-with-sp1-inject-or-get-full-sp1-iso/#entry888486

I changed it this way to skip the blank memory card slots and works in 7

Color 1Fcd /d %~dp0setlocal enableextensions@ECHO OFFCLSFor %%I IN (A B C D E F G H I J K L M N O P Q R S T U V W X Y Z) DO for /f "tokens=4,6*" %%k in ('vol %%I: 2^>nul^|find "drive"') DO IF EXIST %%I:\Windows\Panther SET MyDrive=%%kECHO.ECHO FOUND %MyDrive%:\Windows\Panther
Edited by maxXPsoft
0

Share this post


Link to post
Share on other sites

figured out what was up. tried to run too early before Windows is localized to a drive. Works fine after that.

0

Share this post


Link to post
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

  • Recently Browsing   0 members

    No registered users viewing this page.