Lolita Posted February 14, 2008 Posted February 14, 2008 Hello, i have directory structure like this6.1.996.1.1006.1.1016.1.102and so oni want to execute command setup.exe /QN1 on the newest directory (or directory with newest version number). Do you know how to do it?
radix Posted February 14, 2008 Posted February 14, 2008 Hello, i have directory structure like this6.1.996.1.1006.1.1016.1.102and so oni want to execute command setup.exe /QN1 on the newest directory (or directory with newest version number). Do you know how to do it?In your directory tree you have one single file wich is named setup.exe?
Yzöwl Posted February 14, 2008 Posted February 14, 2008 Who's created the directory structure? Can you correct their names so the they are numbered correctly? Were the directories created on different dates according to your needs? Do the setup files have dates which can be used instead? etc.
jaclaz Posted February 14, 2008 Posted February 14, 2008 (edited) In other words, this is the output of DIR | FIND "<DIR>" with a "right" numbering:W:\test>dir | FIND "<DIR>"14/02/2008 18.47 <DIR> .14/02/2008 18.47 <DIR> ..14/02/2008 18.45 <DIR> 6.1.09914/02/2008 18.45 <DIR> 6.1.10014/02/2008 18.46 <DIR> 6.1.101and this is the output of the same command with "your" numbering:W:\test>dir | FIND "<DIR>"14/02/2008 18.50 <DIR> .14/02/2008 18.50 <DIR> ..14/02/2008 18.45 <DIR> 6.1.10014/02/2008 18.46 <DIR> 6.1.10114/02/2008 18.45 <DIR> 6.1.99jaclaz Edited February 14, 2008 by jaclaz
Yzöwl Posted February 14, 2008 Posted February 14, 2008 However without renaming the directory:dir/ad/od/bwill returnW:\test>dir/ad/od/b6.1.996.1.1006.1.1016.1.102by sorting according to date/time (oldest first).You could then parse the output to use the latest directory.
Lolita Posted February 14, 2008 Author Posted February 14, 2008 Thank you! It is a good start i think that i can handle it now with use of commandiux.
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now