Jakobi Posted December 28, 2006 Share Posted December 28, 2006 Hello, I am noob when it comes to this and was looking to put my first script together but looking for pointers. Basically need a script that will take a file off a shared drive and copy it to a new location on C:\. Then take a shortcut from a shared drive and pin it to the start menu of the same computer. I have been playing around with it today but no success. I have searched the forums and havent come across anything...any know how this would be done or what it would include? Cheers for any help. Link to comment Share on other sites More sharing options...
xcal Posted December 28, 2006 Share Posted December 28, 2006 Lets see what you've tried. How To Ask Questions The Smart Way Link to comment Share on other sites More sharing options...
Zedna Posted December 28, 2006 Share Posted December 28, 2006 Look into HelpFile: FileCopy, FileCreateShortcut, @StartMenuCommonDir, @ProgramsCommonDir Resources UDF ResourcesEx UDF AutoIt Forum Search Link to comment Share on other sites More sharing options...
xcal Posted December 28, 2006 Share Posted December 28, 2006 http://www.autoitscript.com/forum/index.php?showtopic=21048 How To Ask Questions The Smart Way Link to comment Share on other sites More sharing options...
Jakobi Posted December 28, 2006 Author Share Posted December 28, 2006 Well this is what I tried to use...initially. It basically takes a executable zip file and runs it and was trying to get to make a shortcut to pin from a different file. The shortcut is different from the file that is being put in the folder. Then I thought well, couldnt I just leave these on the shared drive and then somehow copy them to the users computer along with the access shortcut that binds the workgroup file and not even use the executable zip file? See I have a database that is near done. However the people that need it are far from me and need to put the FE of the database on their computer along with the shortcut that links to the proper workgroup file. Would like to do this automatically since the people using arent very literate with these kinda of things and am trying to make it as easy as possible for them. So seaching today came across the program autoit. I am really new to this and learning so my knoweledge is shallow. This is the one which invovles the executable zip file, but dont know how difficult it would be to just script it like mentioned above off a shared drive. Run ("PipelineReports.exe") $objShell = ObjCreate ("Shell.Application") $objFolder = $objShell.Namespace("C:\Databases") $ObjCreate = $objFolder.? $objFolderItem = $objFolder.ParseName("PipelineReports.lnk") $objFolderItem.InvokeVerb("P&in to Start Menu") Thanks for any insight. If you know any good links of information to learn from that would be great as well. Link to comment Share on other sites More sharing options...
Jakobi Posted December 28, 2006 Author Share Posted December 28, 2006 Look into HelpFile: FileCopy, FileCreateShortcut, @StartMenuCommonDir, @ProgramsCommonDirhttp://www.autoitscript.com/forum/index.php?showtopic=21048Thank you both...this will get me started. I will see what I can do with this. Thanks. Link to comment Share on other sites More sharing options...
Jakobi Posted December 28, 2006 Author Share Posted December 28, 2006 This is going ok I guess. Easier than I thought, at least I hope.How would I wild card the username for the start menu destination....tried the *, but no go.C:\Documents and Settings\*\Start Menu\ProgramsCan the Icon for it be changed after compiling.DirCreate ( "C:\Databases\Pipeline Reports" ) FileCopy ( "\\nas\trustdivision\DivsionShare\Monthly Tracking\Pipeline Report\Pipeline Reports.mde", "C:\Databases\Pipeline Reports", 8 ) DirCreate ( "C:\Documents and Settings\jlacey\Start Menu\Programs\Trust Reports" ) FileCopy ( "\\nas\trustdivision\DivsionShare\Monthly Tracking\Pipeline Report\Pipeline Reports.lnk", "C:\Documents and Settings\*\Start Menu\Programs\Trust Reports", 8 )Thanks for any help. Link to comment Share on other sites More sharing options...
Thatsgreat2345 Posted December 28, 2006 Share Posted December 28, 2006 @StartMenuDir Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now