Jump to content

Batch

Active Members
  • Posts

    73
  • Joined

  • Last visited

Batch's Achievements

Wayfarer

Wayfarer (2/7)

0

Reputation

  1. That's a great idea! Thanks for your reply, although I expect you mean if Filegetsize is EQUAL to, and not NOT EQUAL, otherwise it would exitloop immediately, right? Is that an acknowledgement that neither of these functions are supposed to wait? It seems like that should be a parameter option.
  2. I'm trying to help a buddy do a script that copies a big .pst from a DVD over to a dir on the hard drive, and after the copy is completed open outlook and map that .pst file. It appears that neither FileCopy nor DirCopy wait until they are through doing their job before the rest of the script completes. While the .pst is still copying, outlook opens, and a .pst gets mapped that doesn't exist. I know we could always RunWait( "cmd /c copy f:\mail\*.pst c:\mail" ) and be done, but I just figure I'm missing something for the built in command not to be working. Can you guys point me in the right direction? TIA
  3. I've been through a similar problem with the quotes. The best bet is to use single quotes (') around your entire string, and then all double quotes (") that you use will be treated literally so Send('"send"') would send the word send with double quotes in front of and behind it, hope this helps.
  4. Larry, I saw your post buddy, hehe. Although I haven't needed to do what Cda is wanting to, I did learn from your post how StringSplit works, and have copied your script to my vast armada of little scripts that when I do need them, they will come in handy, how how about a nice bot script for Quake 3? muhahahahah....
  5. Greets uberscripters. For the rest of you support and sysadmins, here's an idea I've implemented at work, thought you might find interesting/useful. We have a server that we load all of our installs on, and I have some scripts out there as well. I created a little script and used our SMS wanna be software to deploy it, and what it did was put this network location in everyone's system path. Now I can write a script, dump it to this network location, call a user and say click start, run, and type fixmystupidmistake or loadthisapp and click OK. It has come in handy many times. I've also written two dinky scripts that just pop up a message box with the users IP address and another one that displays their computer name. No more, start, run, cmd, ipconfig /all, look for the ip address, no no, that's your wireless adaptor, I need the ethernet card, blah blah. On my server there's a lot of continual connections, since everyone is connecting to this location each time they want to run a command. This is a downside to doing this, has anyone else thought of a different or more clever approach to this?
  6. I do a lot of software installs, and like most of you probably, I typically copy the CD over to a network share and create a cdkey.txt or a serial.txt to make it convenient next time I do an install. However, when you actually go to do the install, you typically can't copy and paste from your text file, it will only fill the first box and then stop. Here's a quick solution: HotKeySet( "^d", "plug" ) While 1 Wend Func plug() $cdkey = ClipGet() $cdkey = StringReplace( $cdkey, "-", "" ) Send( $cdkey ) exit EndFunc Not complicated in the least, but I think now that I've created this I will use it very often, thought you might too.
  7. Bub, look up the commands "ControlSend" and "ControlSetText". If you use them instead of the standard "Send" you can manipulate hidden windows, complete installs while they are minimized, and even if the workstation is locked.
  8. Alright, I have completed this script, and it works, but I know you guys could think of a better way to have handle this. When I run the setup for an add-in for Excel, if they already have a previous version of Excel, it initates the uninstall program for it, and then exits. If they do not have a version installed, it begins the install routine. Here's what I did: $test = WinWait( "Confirm File Deletion", "Do you want", 30 ) If $test = 1 Then removeprevious() ElseIf $test = 0 Then installnewone() EndIf And I created functions for removing the old one and installing the new one. At the end of the uninstall, I have a short sleep and then I have it run the installnewone function. This works, and works just fine, but doing the $test seems kinda...cheap? How would you have handled this differently/better? TIA
  9. That's good to know, thanks a lot!
  10. CS, that worked, thanks! Why didn't my code work though? The specific control for the taskbar was "ToolbarWindow322"... Strange, but thank you again!
  11. Well here's what I got: Opt( "WinTitleMatchMode", 4 ) ControlSend( "classname=Shell_TrayWnd", "", "ToolbarWindow322", "{APPSKEY}" ) And uh, it doesn't right click the taskbar. I want to automate the process of adding a toolbar like the quicklaunch bar, but I wasn't able to get beyond step 1. TIA you scripting gurus!
  12. Wow Valik, you just gave me a new favorite quote! hehe
  13. Great tips, ezzetabi. I've considered doing this myself, I've got WOL (Magic Packet from AMD works great) but I was wondering how you would recommend kicking off the program on the PCs you woke up at 3:00am. Just looking for the name of the utility you would use to remotely execute the script. I do know from experience that control commands work when the box is logged off and/or locked. I believe you have to use a RunAsSet when the box isn't logged in, but I could be wrong. Thanks!
  14. Right click on My Computer, go to manage. Right click on your computer name and put in the name of the server hosting the file. Go down to shares, and you can see what is currently in use.
  15. Jon & others, I'm the biggest AutoIt fan I've ever met personally, hehe. I'm not complaining about the icon, just that it's getting left over on some of my clients' PCs. I have implemented ScriptKitty's idea of using a blank icon. I just don't want my users crying because they have a bunch of A's stacking in their tray. I did use the HideTrayIcon option, and the icon stays there until they mouse over it. This is not with everyone, only a few. If I had the tools & knowhow to remove the icon, I would do it myself, since you are kind enough to make AutoIt an open source ubertool, but I don't, unfortunately.
×
×
  • Create New...