![]()
[<<]Message[>>] [<<]Author[>>] [<<]Subject [<<]Thread
Number : 4763 Date : 2003-06-06 Author : Garry Deane Subject : Re: Install.bat Size(KB) : 1
--- In xxcopy@yahoogroups.com, Kan Yabumoto wrote: > XXCOPY install is nothing but invoking the "XXCOPY /INSTALL" > command. If you run XXCOPY.EXE directly (as opposed to > running the INSTALL.BAT), you may run it from anywhere. > XXCOPY.EXE will figure out where it is stored and find its > companion files and copies all necessary files to the > target directory. Kan, due to the noise of my posts, maybe you overlooked the other method I mentioned to run xxcopy /install. Rather than doing a CD to the install.bat directory, you can eliminate all that and simply have the following in install.bat: %0\..\xxcopy.exe /install Since you say xxcopy.exe will find itself once it is running, the above will work even more reliably than the methods to CD to the install.bat directory. It will still fail in the rare case that that install.bat is in the path and invoked from a different directory without specifying the path (gives a 'bad command or file name' or equivalent). However this could be dealt with by a slight change to the error messages in install.bat. I haven't tested this 100% (I only proceeded as far as the licence details screen before stopping) but it seemed to work fine on everything I tried except as noted above. The advantage to doing it this way is that it doesn't rely on the %OS% variable and of course it's more succinct. Garry
This message if part of XXCOPY's message Archive. The archive contains all the messages posted at Yahoo!Groups: XXCOPY.