Check out the PushD and PopD commands. Also, I have seen batch file move to fast for the Net Use command. Even tho you may not be using the mapped drive, it thinks that you still are by the time your Net use /d comes along. You can do one of two things.
A. Sleep for a second. < this option requires a res kit utility "Sleep" B. PushD into your directory, do your work, then PopD out. -----Original Message----- From: Adam Smith [mailto:[EMAIL PROTECTED]] Sent: Monday, July 22, 2002 7:07 AM To: NT 2000 Discussions Subject: Batch woes Hello all, I am attempting to create some batch files to get around a very irritating problem with our Intranet and Internet Explorer, and if someone could give me any ideas I'd be happy. For certain software CDs we provide online internally, I'd like to get a "Point & Click" install happening from our Intranet. My current setup for it is as follows: If a link to an executable is clicked, the user clicks "Open" and the following things can happen depending on the way the installer is programmed: 1. The program launches from the current directory instead of the directory it resides in on the server. - To Resolve: A batch file needs to be created to change directories properly and launch the program from its own directory. 2. The program won't run correctly from a location other than the root of any given drive. - To Resolve: Map a network drive letter to a shared$ directory on the server, and launch the autorun program. Then after it has closed, disconnect that mapped drive. Option 2 is quite an annoyance, and also quite frequent. There's no nice way around it. My current issues are that when I run a "NET USE /DELETE Q:" I get: ------------- There are open files and/or incomplete directory searches pending on the connection to Q:. Is it OK to continue disconnecting and force them closed? (Y/N) [N]: ------------- How can I automatically pass a "Y" to this question? The following command will not work: NET USE /DELETE Q: < \someserver\somepath\y.txt I just end up getting "No valid response was provided." What can you suggest I do about it? Thanks, -- Adam Smith Information Technology Officer SAGE Automation Ltd [EMAIL PROTECTED] http://www.sageautomation.com Phone : (08) 8276 0703 Fax : (08) 8276 0799 Mobile: 0414 895 273 ------ You are subscribed as [EMAIL PROTECTED] Archives: http://www.swynk.com/sitesearch/search.asp To unsubscribe send a blank email to %%email.unsub%% ------ You are subscribed as [email protected] Archives: http://www.swynk.com/sitesearch/search.asp To unsubscribe send a blank email to [EMAIL PROTECTED]
