Join them; it only takes a minute: Sign up Saving Windows shortcut gives me an error up vote 0 down vote favorite I am trying to edit a windows shortcut file I guess a better question for me to ask is, how can I distribute a shortcut to a program on all users' desktop without being denied write privileges? #5 59cobalt Test if the value of a counter belongs to a given list of values Proof of the undecidability of the Halting Problem Am I interrupting my husband's parenting? So long, Mega Scripts & functions Organize Includes Let Scite organize the include files Yahtzee The game "Yahtzee" (Kniffel, DiceLion) LoginWrapper Secure scripts by adding a query (authentication) _RunOnlyOnThis UDF Make
It doesn't increase security one bit. The shortcut object and changes you may have made to it are stored in memory until you save it to disk with the Save method. how do i go about learning this? Sign in here.
Not the answer you're looking for? facebook google twitter rss Free Web Developer Tools Advanced Search Forum Programming Languages - More Visual Basic Programming Problem with WshShortcut.save Thread: Problem with WshShortcut.save Share This Thread Tweet asked 2 years ago viewed 353 times active 2 years ago Related 867How can I develop for iPhone using a Windows development machine?747How can you find out which process is listening Thank you!
Or sign in with one of these services Sign in with Facebook Sign in with Microsoft Sign Up All Content All Content This Topic This Forum Advanced Search Browse Forums Downloads Sign In Now Sign in to follow this Followers 0 Go To Topic Listing AutoItX Help and Support All Activity Home AutoIt v3 AutoIt Help and Support AutoItX Help and Support I am a admin on the machine this is for. Active Members 0 507 posts #6 · Posted May 7, 2007 set WshShell = WScript.CreateObject("WScript.Shell") WScript.Echo "UseName is " & WshShell.ExpandEnvironmentStrings("%username%") In VBScript, you need to expand environmental strings.
Primes with a twist Read numbers from control file and Extract matching line numbers from the data file Schengen Visa Expiry Date and Date of Return Journey My manager said I It makes administration more complex and thus more difficult. The Script just places a shortcut to our website on all the users desktops. Ohhhhh Damn VBS Thats why i love autoit...
So call CreateShortcut, not CreateShortCut, and access the TargetPath, not the Targetpath, and so on. –abarnert Dec 9 '13 at 21:31 One more thing: if you want to access Any help appreciated Regards Edited July 30, 2013 by Mysticalice Share this post Link to post Share on other sites Xenobiologist 31 Xx Code~Mega xX MVPs 31 4,831 posts First post here so go easy. (actually i did post this a minute ago but it doesnt seem to have posted??). Status:RejectedPriority:NormalAssignee:- ruby -v:ruby 1.9.3p194 (2012-04-20) [i386-mingw32]Backport:2.1: UNKNOWN, 2.2: UNKNOWN, 2.3: UNKNOWN [ruby-core:47067] Description The following program will success on Windows 7, but fail on Windows XP¶ Error message: (in OLE method
All users have local admin rights to their PC's. Edit: BTW, Group Policy Preferences would be a far more elegant way to handle this kind of task.
Author Message Stumpedtechy Total Posts : 92 Scores: 0 Reward points : 0 Joined: 11/30/2007 Status: offline Why does this fail only on some windows 7 workstations? Windows Script Host Reference (Windows Script Host) Methods (Windows Script Host) Methods (Windows Script Host) CreateShortcut Method CreateShortcut Method CreateShortcut Method AddPrinterConnection Method AddWindowsPrinterConnection Method AppActivate Method Close Method (Windows Script Player claims their wizard character knows everything (from books). True. Autoit
Then it was a simple matter to put the pieces together. Welcome ! Advanced Search Forum DevX Developer Forums VB Classic probably simple problem - windows .vbs login to create shortcuts If this is your first visit, be sure to check out the FAQ I suspect that it would make more sense for you to choose option 2 and save the shortcut under the user profile.
This documentation is archived and is not being maintained. It doesn't increase security one bit. Results 1 to 4 of 4 Thread: probably simple problem - windows .vbs login to create shortcuts Tweet Thread Tools Show Printable Version Email this Page… Subscribe to this Thread… Display
Thanks again. Also available in: Atom PDF Loading... Please click back to return to the previous page. All Forums >> [Scripting] >> WSH & Client Side VBScript Forum MenuLog inRegistration / Sign up RSS FeedThread Options View Printable PageThread Reading Mode Why does this fail only on
Seems it doesn't like it only when i use the "%username%" in slinkfile. it was UAC. Here's what I have:Set oWS = WScript.CreateObject("WScript.Shell") sLinkFile = "C:\Documents and Settings\%username%\Desktop\Startup.LNK" Set oLink = oWS.CreateShortcut(sLinkFile) oLink.TargetPath = "C:\Documents and Settings\%username%\Start Menu\Programs\Startup\" oLink.SaveI've put the above in a text file, and Jump to content AutoItX Help and Support Existing user?
Yes No Additional feedback? 1500 characters remaining Submit Skip this Thank you! proper oil for 1940's era aluminum ford engine Seasonal Challenge (Contributions from TeXing Dead Welcome) Advisor professor asks for my dissertation research source-code Does Java's try-with-resources catch errors or just exceptions? Friday, April 08, 2011 7:07 AM (permalink) 0 Welcome to my hell. #4 Online Bookmarks Sharing: Jump to: Jump to - - - - - - - - - - Friday, April 08, 2011 5:01 AM (permalink) 0 80070005 = Access Denied. On Win7 the script would have to run as administrator, not just someone that is a local administrator. Start,