Obi-Wahn Posted June 15, 2007 Share Posted June 15, 2007 Hi! Since I found the scriptlanguage AutoHotKey, which is quite similar to AutoIT, I started developing some tools. Here some, which are -I think- maybe useful for your Switchblade. All of my Apps are OpenSource. So feel free to modify it, as you want, but you have to add the modified Sourcecode again to the Program, and Add a Comment to the Source or to a textdocument, where the Changes, the date and your name (at least the forumname) have to be stored. I'M NOT RESPONSIBLE FOR ANY DAMAGES OF THE SYSTEM, WHERE MY APPS ARE EXECUTED ======================================================================= FileCopier (fc.exe) DOWNLOAD fc is a tool, which searches a path for files, and copy them to a defined folder. There are some settings, which are stored into the Help dialogue. The Script is OpenSource, you'll get the Sourcecode with typing "fc.exe /Src" (Without "" ) Why I've created this: Because "Caryl3" needs a possibility to copy files, and I've a little sparetime, so I coded this. (SEE THIS THREAD) Help dialogue: fc.exe "Drive:Searchstring" "Targetfolder" [/I] [/O] [/Box] fc.exe [/Src] [/?] "Drive:Searchstring" Defines a Drive and a String which is searched for. "Targetfolder" Defines a Targetfolder where the files will be copied to. /I Includes Subfolders to the search. /O Overwrites existing files /Box Displays a Messagebox with the amount of copied files /Src Appends the Source of this program to a file /? Displays this Help Example: fc.exe "C:*.txt" "X:Files" /I /Box Copies every textdocument of drive C: to folder X:Files and displays a Popup after finishing fc.exe /Src Appends the Source of this tool to a .ahk File Changelog: 16.May.2K7 (15:37 GMT +1) + Added 2nd example to the Help + Added explanation of examples + Added "commandlinetool-beaviour" (if less than 2 parameters passed to the scipt, a cmd.exe window popps up shortly) + Bugfix: Recompile is now easier for developer who appended the source. (you don't have to rename the source now again) + Lil more explanation of the code into the source + Added credits + Sourcecode-Cleanup ---------------------------------------- Launcher (launch.exe) DOWNLOAD This is a tool for the Launch menue of a Non-U3 Switchblade. Execute the Program first in normal mode, and it will append a new, predefined autorun.inf file. The .inf file have a Shell entry, for this who have the Autoplay feature disabled, hidden as a Virusscan, which actually opens a small message, that no virus was found, when all apps are launched. Why I've created this: Because for my Switchblade release (which is comming soon). Predefined autorun.inf [autorun] open=launch.exe /S icon=%windir%system32shell32.dll,4 action=Open folder to view files label=Obi-Wahn ShellScan=Scan for Viruses ShellScanCommand=launch.exe /S /V [Launch] 1=switchblade.exe 2=explorer.exe . # Additional programs can be added with adding programs to the list, # one per line, asc. index no. # If you want to execute the Program, File whatever, in hidden mode, simply add after the name " , , Hide" # (Without "", but the first space is IMPORTANT) # Example: # 3=additionalitem.cmd , , Hide Infos: I call the Icon from the shell32.dll, so that It's in the Autoplay diaogue as the "Open folder" entry I've tried to call the String (Open folder to view files) from the shell too, but I wasn't able to do this. IMPORTANT: This tool is in developing phase. Parameter: /S lauches every entry into the [Launch] Section /V (As second parameter) displays a pseudo "no-Virus" message at the end of launching /Src Append the Sourcecode to a file. ---------------------------------------- File (file.exe) DOWNLOAD This tool is similar to fc.exe. But while the function is the same, operations are differen, you can choose more than one searchmask and do diferent tasks like Copying, Moving, Deleting, ... Warning: Like my other tools, this is Beta software. I'm not responsible for any damages on your or other systems. Why I've created this: Because fc.exe has several bugs, some fixed here. Parameter: file.exe /A:[C D M SD] "C:*.txt + C:*.doc" "X:Files" [/I] [/O] [/P] [/Box] [/Log] [/Debug] file.exe /A:SC <Target> <Linkfile> [<Workingdir> <Args> <Description> <Icon> <Shortcutkey> <IconNo> <Max|Min|Normal>] [/Debug] file.exe /A:E file.exe /Src /A:C Copies found Files to the Targetfolder /A:M Moves found Files to the Targetfolder /A:D Deletes found Files /A:SD Moves found Files to Paper Bin /A:SC Creates a Shortcut /A:E Empties the Paper Bin /I Includes Subfolders to the Search /O Overwrites Files into the Targetdirectory (Only Copying and Moving) /P Creates the same Folder Structure as Found (Only Copying and Moving) /Box Shows a Messagebox after Finishing /Log Creates a Logfile into the Targetfolder (Copying and Moving into the Targetfolder, Deleting into Tempfolder) /Debug Shows a Messagebox which Contains all Variables and their Values /Src Appends the Sourcecode to a .ahk File "C:*.txt + C:*.doc" Strings which shall be searched "X:Files" Targetfolder where the Files shall be copied/moved For the Shortcutsyntax: If you want to obmit a parameter you have to define it like "" for empty space. Else it will fail or define the parameter wrong. Examples: file.exe /A:SC C:Downloads Downloads.lnk "" "" Downloaddirectory Creates a Shortcut to the Folder C:Downloads, Linkfile is Downloads.lnk at the Scriptdirectory, no workingdir, no arguments but a Diescription (It's the Downloaddirectory) file.exe /A:D "C:Dokumente und EinstellungenObi-WahnDesktop*.lnk" Deletes all Shortcuts on the Desktop WITHOUT moving them to the Paperbin file.exe /A:SD "C:Dokumente und EinstellungenObi-WahnDesktop*.lnk" Deletes all Shortcuts on the Desktop and moves them to the Paperbin. file.exe /A:C "C:*.txt" "X:Files" /I /P Copies all Textfiles to the Targetdirectory (X:Files), includes Subfolders to the search and creates the same folder structure as on the Computer. -------------------------------- Obi-Wahn's Switchblade SEE THIS TOPIC -------------------------------- Processkiller (pkill.exe) DOWNLOAD This tool is used to terminate processes. THIS IS NOT A ANTIVIRUS / FIREWALLKILLER (but may works) You write in a file a processname per line, and define this file as 1st parameter. The second parameter is optional. If you define another file as the 2nd parameter, pkill.exe will write every found processname to the 2nd file. Why I've created this: Because this is may be usefull. I use it all time when i have to speed up my system quick. Parameters pkill.exe <list> <output> pkill.exe /? Shows the Help pkill.exe /Src Appends the Sourcecode to a file <list> List of Processnames (e.g.: ashServ.exe, one entry per line req) <output> List of Found Processes Example: pkill.exe processes.lst found.txt Reads every FULL line of "processes.lst", and If the processname exists, it will try to close the process, and write the processname to "found.txt" ----------------------- That's it. Maybe someone need this, so download it and use it. Future: Rapidshare full auto downloader (I know, there exist several, but I try to code one by myself). If any of you has a wish for a tool, so feel free to send me a pm. If it's possible for me (skill and time), I'll try to realize this. (Only if it makes sense, because if it's possible with a simple command in the batch, or there allready tools released, I don't code this) Regards Obi-Wahn Quote Link to comment Share on other sites More sharing options...
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.