y2kcmoore
Members-
Posts
15 -
Joined
-
Last visited
y2kcmoore's Achievements
Seeker (1/7)
0
Reputation
-
I have spent at least two hours searching through the forum and I have come to the conclusion I am stupid. I want to write a script to deploy IE 7 to work stations that haven't been updated to the IE7 latest build yet. How can I check the build using Autoit? IF RegRead("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Internet Explorer", "Build") I guess I am having the issue of reading the Value Data. Once I have that bit of info I am good to go. Thanks. -C
-
Copy and Delete Directores Within Directories
y2kcmoore replied to Uronacid's topic in AutoIt General Help and Support
Why not use Robocopy from Microsoft? Free tool. -
Ahh DirMove.
-
Thanks.. What about the rename part? Thats whats really holding me up.
-
I have been asked to search for folders named Contact and rename them to Contracts. These folders are in a folders under d:\%officename%\projects\%projectnumber%\Contact and I need to rename them to Contracts. The names in % are a changing variable. Can autoit do something like this? Thanks Chris
-
I have a mixed enviroment of Win2k and WinXP. The Power Toy can only operate on a WinXP box. I tried that route too. Thanks for the help any ways.
-
cameronsdad... You are the man. I suck a$$ at all types of programing. Thanks for your help.
-
"C:\Documents and Settings\%username%\Application Data\Microsoft\Internet Explorer\Quick Launch" FileChangeDir(@AppDataDir & "\Microsoft\Internet Explorer\Quick Launch")
-
Thanks to everyone that gave me guidance. The program is working but not at 100%, but everyone loves it. The script will only work on directories called "Pictures" and it is written only for JPG files. For the script to work you must install Irfanview software which is free and easily scriptable and make sure it's installed in your %systemroot%\system32 directory. http://www.irfanview.com/ Here are the instructions I gave my users. You must name the directory where your pictures are stored pictures (without the quotes) for this program to work. Copy your JPG files to the "Pictures" Directory and "Right Click" on the "Pictures" Directory and in the pull down select "Image Reducer". It will create a sub-directory inside the pictures folder called reduced_pictures and it will copy your JPG files and reduce them to a more manageable size. :Now for the script for image_reducer.exe ; ---------------------------------------------------------------------------- ; ; AutoIt Version: 3.1.0 ; Author: C.Moore ; ; Script Function: ; Reduce JPG Images to 640x480 ; ---------------------------------------------------------------------------- ; Script Start - Add your code below here FileChangeDir(@workingdir & "\pictures") ;Make New Sub Reduced Dir Dircopy(@workingdir, @workingdir & "\reduced_pictures") ;Change working directory FileChangeDir(@workingdir & "\reduced_pictures") ;Runs IV RunWait(@ComSpec & " /c " & "i_view32.exe *.jpg /resize=(640,480) /bpp=4 /convert=*.jpg") ;End of Script -------------------------------------------------------------------------------------- To Intergrate for a right click pull down function Win2K Registry Settings -------------------------------------------------------- Windows Registry Editor Version 5.00 [HKEY_CLASSES_ROOT\Folder\shell\Image_Reducer] @="Image Reducer" [HKEY_CLASSES_ROOT\Folder\shell\Image_Reducer\command] @="\"c:\\winnt\\system32\\reduce_image.exe\" \"%1\"" ------------------------------------------------------------- WinXP Registry Settings ------------------------------------------------------------- Windows Registry Editor Version 5.00 [-HKEY_CLASSES_ROOT\Folder\shell\Resize for PONTIS] [HKEY_CLASSES_ROOT\Folder\shell\Image_Reducer] @="Image Reducer" [HKEY_CLASSES_ROOT\Folder\shell\Image_Reducer\command] @="\"c:\\windows\\system32\\reduce_image.exe\" \"%1\"" -------------------------------------------------------------------- Thanks again for eveyone's guidance -Chris
-
Thanks and I will give it a try in the morning when I return to my office.
-
Its almost working. I made the registry changes for my script but it's not working on the directory I am clicking on. It seems to default to the home directory of the sub directory I am clicking on. Does that make any sense? :bashingHead: --------------------------------------------------------------------------- Here is my Registry Change [HKEY_CLASSES_ROOT\Folder\shell\Image Reducer] @="Image Reducer" [HKEY_CLASSES_ROOT\Folder\shell\Image Reducer\command] @="c:\\windows\\system32\\reduce_image.exe" "%1" ----------------------------------------------------------------------------- Here is my AU3 script ;Make New Sub Reduced Dir Dircopy(@workingdir, @workingdir & "\reduced_images") ;Change working directory FileChangeDir(@workingdir & "\reduced_images") ;Runs IV RunWait(@ComSpec & " /c " & "i_view32.exe *.jpg /resize=(640,480) /bpp=4 /convert=*.jpg")
-
I didn't see your post and I just figured out Dircopy. Much easier than trying to create a new folder and then copy everything into it. I will post the whol thing once finished. Dircopy(@workingdir, @workingdir & "\reduced_images")
-
Ok. I making some progress, but I have run into a snag. I want to copy my images to a new Sub folder called reduced_images which is a sub folder in my working directory. The folder gets creaated but none of the files are copied. Can someone please show me where I screwed up. Thanks -Chris ;Make New Sub Reduced Dir DirCreate(@WorkingDir & "\reduced_images") ;copy files to new Sub Directory FileCopy(@WorkingDir & "*.*", @WorkingDir & "\reduced_images\*.*")
-
Thanks for pointing me in a nice direction. I feel a better sense of accomplishment if somone doesn't just give me the solution. Thanks again. -Chris
-
I have been given a task of finding away to have a user right click on a directory and from a pull down it will give them an option to resize all photos. This I can add in the registry. My problem is how do I use AuotIt to read the current directory and then decrease the color depth and then copy all changed files into a new sub directory. I was going to use Irfanview software to do the color depth changes since it can use command line scripting. Thanks for any input and I will post mine if I figure it out before I have a reply. -Chris