Jump to content

Recommended Posts

Posted

with things like this it is hard sometimes to think where to put this in what form...

Ok I did made a post for me to set drives, now I need to find which drive a drive really should be. I am going to put a file on each drive but C:, so I can use "if EXIST" but I would like a to not be doing a A-L "if EXIST" for every drive drive I have. I would like to have it look to see what the file is then set a %L% to it.

if it help the post to chage drives letters is here.

I have a lot of useless posbo code below so maybe you should not read it, and just read what is below it.

I will do some posbo code in Java LIKE! way with some DOS, I need something thats like this but NOT java, and NOT VB; it is for the a [string] in a .inf:

char[] y = new char[/* there will be a value for this */]// letters are set

char[] x = new char[/* there will be a value for this */] //letters are set

for(char letter = y[1];letter<y /*this will not work!*/; letter++) {

for(char letter2 = x[1];letter2 <L /*this will not work!*/; letter2++)

{

if EXIST (letter:/letter2)

{

letter2 = letter; //ones more this will NOT work!!!

remove letter 2 from x[], and letter 1 from y[];

moves back one in the arrays // if you know java you know why

break out of the x loop; //if you think that work, lol!!

}

}}

....

the above made 2 char arrays: one for the real drive letters, one for what I would like it to be referd as.

....

then I did a loop that looked if the a drive that is of the 1st letter had a file letter from the 2nd array.

...

if not tryed the next in the 2nd array of letters.

if true it gives the 1st drive letter a letter of the 2nd that it has. then del the 1st letter and the 2nd letter from the there array.

...

repeat with the next in the 1st array, then next after that, on, and on...

if you can understand what I just said... you are a great one.... :)

this is to only find out what a drive in setup should be


Posted
this is to only find out what a drive in setup should be

after finding them out what r u going to do.

I asking this bc there might be other ways to accomplish what u're trying to do.

and in inf's I don't really think that this dos like programming method will work..

Posted

I have drives setup on my computer like this:

I have 7 partisons of drives

C Windows:

D Data:

E A^2:

F Free:

H Han:

P Programs:

S Swap:

but in windows setup it sees the drives like this:

c:

d:

e:

f:

g:

h:

i:

so in the donoted link scp made a program that would chage one drive to the right

letter I like it to be, but I need to know which drive is which to do it.

add one more thing to 100 and 1 resouns I wish I had time to set up linx ones more...

Posted

I am doing this so I don't have to spend days editing the reg to move all the programs to P:, and the users to D:. And the program don't just use the key value! thay sometimes will make hole key that I have to del and make new keys! it is painful.

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...