Home > Unable To > Wshshortcut.save Error

Wshshortcut.save Error


Phil Weber http://www.philweber.com Please post questions to the forums, where others may benefit. 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 Instead it raises a false sense of security, while educating people to enter their password whenever something pops up a dialog. If the user deletes the shortcut, they still get that error when they login next time even though the shortcut is recreated.

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? the error that I get is as follows line:18, Char: 3, Error: Unable to save shortcut "c:\users\public\desktop\internet.lnk"\ code: 80070005 source: WshShortcut.Save thanks #3 59cobalt Total Posts : 2548 Scores: Search the board with: superb Board Search or try with google: Web kixtart.org {{offlineMessage}} Store Store home Devices Microsoft Please click back to return to the previous page.

Unable To Save Shortcut 80070005

Creating the shortcut in C:\Users\Public\Desktop will not distribute it to the desktop of each user, but all shortcuts in that folder will be superimposed on each user's desktop. It breaks workflows. Still not perfect, but it does work. #11 59cobalt Total Posts : 2548 Scores: 247 Reward points : 0 Joined: 7/17/2011 Status: offline Re:help with creating a shortcut on all And FTR: there are very, very few things less acceptable than leaving UAC on.

  • Refer to http://www.nirsoft.net/utils/special_folders_view.html With win32-dir gems, you can find the real path name of the desktop folder.
  • Thanks again.
  • The error message OLE error code:80070003 means the target folder "#{USERPROFILE}\Desktop" is not exist on your Windows XP.
  • details Newest Members dgfjgh, mainoir, SPTHEONE, RWebster7, akselc 17281 Registered Users My Cookies · Mark all read Powered by UBB.threads™ Contact Us · KiXtart.org website · Top Generated in 0.033 seconds
  • Instead it raises a false sense of security, while educating people to enter their password whenever something pops up a dialog.

hehehehe Cheers Old ScriptologyVisual Ping 1.8 - Mass Ping Program with export to txt delimited.Desktop 2 RGB and YMCK - Pick a color in the desktop and get the RGB and Edit: BTW, Group Policy Preferences would be a far more elegant way to handle this kind of task. #2 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'm almost done with my MCSE, but i'd LOVE to get more into this.

To create a shortcut, you must: Create an instance of a WshShortcut object.Initialize its properties.Save it to disk with the Save method. Unable To Save Shortcut 80070003 Count down from infinity Trick or Treat polyglot How to deal with colleague that starts arguments? Any thoughts? #1 rasimmer Total Posts : 2386 Scores: 165 Reward points : 0 Joined: 3/19/2009Location: Richmond, VA Status: offline Re:Why does this fail only on some windows 7 workstations? Note A common problem is putting arguments in the TargetPath property of the shortcut object, which doesn't work.

My 21 yr old adult son hates me Pairable strings How would a society develop that has no sense of value or ownership? Seems it doesn't like it only when i use the "%username%" in slinkfile. Register a new account Sign in Already have an account? The time now is 07:19 AM.

Unable To Save Shortcut 80070003

Yes No Additional feedback? 1500 characters remaining Submit Skip this Thank you! I would probably not be able to install software on a large scale as I'm able to do currently. Unable To Save Shortcut 80070005 Is there a technical term for this simple method of smoothing out a signal? Unable To Save Shortcut Powershell it was UAC.

If it doesnt work i will wait for them to be approved. The whole concept behind UAC is so utterly braindead that I'm beginning to suspect mental disabilities with those who invented this crap. Using LUA is mandatory for a reasonably secure setup. Binary Countdown Length Would it be inappropriate to use my workplace's postage machine to mail my tax returns? Autoit

We appreciate your feedback. Faq Reply With Quote July 10th, 2010,12:03 AM #2 No Profile Picture Doug G View Profile View Forum Posts  Grumpier old Moderator Devshed Supreme Being (6500+ posts)   Sign In Sign Up Browse Back Browse Forums Downloads Guides Calendar Forum Rules Online Users Wiki Bug Tracker AutoIt Resources Back Release Back Installer Help file Editor Beta Back Installer Help I can see how powerful VBscript would be (or whatever this is, i've never been big in programming), and I know some people that will sit down and just start hammering

CreateShortcut Method  Creates a new shortcut, or opens an existing shortcut.Syntax Copy object.CreateShortcut(strPathname) ArgumentsobjectWshShell object.strPathnameString value indicating the pathname of the shortcut to create.RemarksThe CreateShortcut method returns either a WshShortcut object 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 confirmed the folder "#{USERPROFILE}\Desktop" is not exist on my Windows XP.

Will applying twenty year old cow manure hurt my vegetable garden?

What am i doing wrong? UAC is enabled by default on new systems and it's a pain in the butt just to do a simple regedit to remove regkeys from within a script. Sign In Sign In Remember me Not recommended on shared computers Sign in anonymously Sign In Forgot your password? Any help appreciated Regards ~Lorenzo Reply With Quote 04-26-2007,09:14 PM #2 Phil Weber View Profile View Forum Posts Visit Homepage Senior Member Join Date Nov 2003 Location Portland, OR Posts 8,387

Either: Run the process elevated, or Save the shortcut in a location where you have write access. That is also setup :) #16 Online Bookmarks Sharing: Jump to: Jump to - - - - - - - - - - [Welcome] - - - - Forum Rules it worked, I ensured it did by switching users, and there the shortcut was in every user's desktop. what is wrong with this code and how to make it work successfully.

I wasnt sure if it needed to be approved first, so im trying once more. Player claims their wizard character knows everything (from books). However, that still doesn't change anything about the fact that normal users don't have write access to that folder (error code 0x80070005 means "access denied"). 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.

Dim objWSH, objFSO, link, desktopPath Set objWSH = WScript.CreateObject("WScript.Shell") Set objFSO = WScript.CreateObject("Scripting.FileSystemObject") desktopPath = objWSH.SpecialFolders("Desktop") 'if file exists define where the shortcut should point to If objFSO.FileExists("%SystemRoot%\System32\internet explorer\iexplore.exe") Then 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 Generally Python's built-in functions give more readable errors than win32com if the same problem arises.) –abarnert Dec 9 '13 at 21:29 Finally, while COM can occasionally be forgiving of Powered by Redmine © 2006-2016 Jean-Philippe Lang You are not logged in. [Log In] KiXtart.org website Register User Forum List Calendar FAQ

Contact us. 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.Save I've put the above in a text HResult error code:0x80020009 Exception occurred.¶ #!/usr/bin/env ruby -w -Eutf-8:utf-8 encoding: utf-8¶ require 'win32ole' module Shortcut USERPROFILE = ENV['USERPROFILE'] def self.gen my_exe, my_params, my_dir, my_desc wsh = WIN32OLE.new('WScript.Shell') link = wsh.CreateShortcut("#{USERPROFILE}\Desktop\#{my_desc}.lnk") link.TargetPath 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

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, Friday, April 08, 2011 6:01 AM (permalink) 0 We actually just figured it out. The whole concept behind UAC is so utterly braindead that I'm beginning to suspect mental disabilities with those who invented this crap. Can Fireballs be saved for later in the Bag of Holding?

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

Follow us