Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Click here to start participating now! Also, check out the New User Guide.
Bat File Help
Name: taraw3 Date: February 3, 2004 at 12:18:45 Pacific OS: Windows 2000 Pro CPU/Ram: 1.7 1.0
Comment:
I need some help with a bat file that I created. I am trying to make it stay minimized on my user's screens. Do I simply put Echo Off or @Echo Off in the bat file and where do I put it to take effect? Also, if I am disconnecting a network mapped drive, and it asks the user Y or N, isn't there a way to just say Y without asking? Thank you in advance for any help that anyone can give me! :)
Name: CyberSlug Date: February 3, 2004 at 14:44:48 Pacific
Reply:
I don't think you can do that easily with just a batch file.
I recommend looking into the scripting language AutoIt v3. It lets you run commands, simulate, keypresses and much more. Also, scripts can be compiled into a small, stand-alone executable.
0
Response Number 2
Name: kaepeekay Date: February 4, 2004 at 05:50:31 Pacific
Reply:
I think you use net use to disconnect a drive. use net use (driveletter) /delete /yes. It won't ask for confirmation.
0
Response Number 3
Name: taraw3 Date: February 4, 2004 at 09:47:10 Pacific
Reply:
Thank you so much for your help with the net use command. I tried that and it worked much better. Do you have any clues about making the bat file run minimized? I am applying this bat file as their logon script through Active Directory on Windows 2000. Any help would be appreciated? I don't know if it is that @Echo Off thing or what that actually does. If anyone has any ideas, feel free to reply! Thanks! :)
0
Response Number 4
Name: son of bill Date: February 4, 2004 at 12:10:44 Pacific
Summary: I want to make a bat file that will delete the Recent History in the My Documents . I have this right now . @ECHO OFF :START DEL "C:\Documents and Settings\add your computer name here \Recent\*.*" @E...
Summary: Please help... OK what this sounds like will be a virus, but none the less all a virus is is a desctructive program right? ok. I am looking for a batch script that when it runs the first time executed...
Summary: quick help needed in DOS . -I want to create a bat file that opens up a txt file and reads data in it (data being the names of files). -Then check to see if the file exists in a folder. -If exists c...