Jump to content

Find Cd With For Command Problem


Recommended Posts


If you know that the memory reader always get the same drive-letter during install, just submit that drive-letter from your batch-file.

for %%i in (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 if exist whateveryouwanttodo

For instance, if the drive-letter is "d:" , just remove "d:" from the above code.

Link to comment
Share on other sites

you could solve it simply by having them put in a card...

Another option is to use the "SetupSourcePath" registry entry. If I get time later I'll do a search, but there has been code posted on it.

Link to comment
Share on other sites

What if you use

SET CDROM=%~d0

That way you don't check all drive letters for the marker file. This command must be executed from a batch file on the CD. I mean it'll assign the %CDROM% variable to the drive it's launched from.

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
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...