Custom shortcut to .vbs script has other .vbs files pinning to it as 'Recent' items (Windows 7)

Hi guys,
More of a nuisance this, rather than a major problem, but one I'd like to take care of.
I have a split Access DB on a network drive, where the BE and a 'master' copy of the FE reside. I have multiple users, so for ease of distribution, I have a .bat file (also on the network) which I can distribute to each user when they want to start
using the DB. All the .bat file does is copy a shortcut to the users desktop and Start menu. The shortcut points to a .vbs file on the network.
The .vbs file checks the users local machine, creates some temporary folders if necessary, makes a local copy of the FE and launches it. All nice and neat, with a custom icon on the shortcut so my DB application looks quite professional, and is easy
to find and launch.
However - I noticed the other day that, if I open another .vbs file (completely unrelated to my DB), Windows automatically pins it to the 'Recent Items' list on my custom shortcut on the Start menu. Simply because it is another .vbs file. I don't want any
'Recent Items' to be associated with this shortcut; it should only ever point to my DB and nothing else. I am worried my users will get confused when this random list of scripts grows out of it.
Is there anything I can do to prevent this happening on the end users' machines? Bear in mind - I don't want to block
all 'Recent Items' on their Start Menus - just for this one custom shortcut?
The .bat file (to create the shortcut) is below...
Thanks
Al
echo.
echo Deleting Old Links...
del "%UserDrive%\apps\xp\desktop\MyDB.lnk"
del "%userprofile%\Start Menu\Programs\MyDB.lnk"
echo.
echo Creating new link to database...
echo.
copy "%NetworkDrive%\Release\MyDB.lnk" "%UserDrive%\apps\xp\desktop\"
copy "%NetworkDrive%\Release\MyDB.lnk" "%userprofile%\Start Menu\Programs\"

The Visual Studio forum for VB is for the .Net version.
For VBS use the scripting guys forum
https://social.technet.microsoft.com/Forums/scriptcenter/en-US/home?forum=ITCG
Success
Cor

Similar Messages

  • Unable to view scripts or other project files

    I am unable to view anything from my projects. The page loads and but it is plank.

    Can you please try after clearing your browser's cache?
    Firefox: https://support.mozilla.org/en-US/kb/how-clear-firefox-cache
    Chrome: http://www.wikihow.com/Clear-Your-Browser's-Cache ( steps 1-5 )

  • Script busy when downloading files, or just opening up the downloads window

    All of FF locks up until a pop up appears and says that this script chrome://mozapps/content/downloads/download.xml:68 is busy.
    There is another suppport entry like this, but it was for the MAC, and I did not see a way to add "Me too" but with a different configurations.

    Try to reset the download history and delete downloads.sqlite (plus downloads.rdf, if it exists) in the [http://kb.mozillazine.org/Profile_folder_-_Firefox Profile Folder]
    See:
    * http://kb.mozillazine.org/Unable_to_save_or_download_files#Manually_delete_download_history
    Start Firefox in [[Safe Mode]] to check if one of the add-ons is causing the problem (switch to the DEFAULT theme: Tools > Add-ons > Themes).
    * Don't make any changes on the Safe mode start window.
    See:
    * [[Troubleshooting extensions and themes]]

  • Unable to run iTunes based VBS files

    I'm guessing this is something to do with Vista because it works fine on my laptop, but basically I'm trying to run a VBS script which clears out duplicates from iTunes. The VBS file runs fine on my laptop which is running XP, but doesn't run on my desktop running Vista x64 Ultimate (only doing so because it exceeds the max spec for XP Pro).
    When I try and run the script I get the following:
    C:\Users\Enverex\Desktop>cscript RemoveDup_iTunesTracks.vbs
    Microsoft (R) Windows Script Host Version 5.7
    Copyright (C) Microsoft Corporation. All rights reserved.
    C:\Users\Enverex\Desktop\RemoveDup_iTunesTracks.vbs(32, 1) Microsoft VBScript
    runtime error: ActiveX component can't create object: 'iTunes.Application'
    (this forums lack of a "code" paste option is wrecking the output a little but you should get the idea).
    I've tried reinstalling iTunes and I've tried installing the x86 version of iTunes, no change. It does this for any iTunes VBS script, not just this one (and as I said they work fine on my laptop). Tried using iTunes 7 instead which also had no effect. The "register the vbs dll file" also has no effect (also that's only a fix for the issue of iTunes not installing in the first place). User is admin and can do anything else on the machine, it's just VBS files for iTunes that don't work.
    So any ideas? I really need to be able to sort this out because I can't sync my iPod till It's done :/

    Tried the registering thing ages ago, it claims to have registered fine but no change.
    I tried the scripts on that site but only the VBS ones (as it's VBS I'm having an issue with). I just tried his EXE version, ran the program and it gave me a list of all his scripts, I tried 2 different ones, they opened a command prompt window (with nothing written in them) and then disappeared after about 2 seconds silently.
    I assume I have VBS installed, I thought it was a prerequisite to install iTunes but I'm not sure what else to try, as you mentioned it only seems to be for 2k, XP and 2k3.

  • Error at end of VBS File during DataPlugin Creation

    Anytime I try to use a DataPlugin that I've created, I get an error when it reaches the end of the ReadStore subroutine. Just after it executes the End Sub of this subroutine, I get an error in a messagebox that reads:
    "Cannot load the (fullpath) file with the loading mode (DataPlugin Name)!
    Refer to log file."
    When I go to the log file, I don't see anything, I don't understand what's going on here, here is full text of my VBS file that's being used to create the DataPlugin:
    OPTION EXPLICIT
    Sub ReadStore(File)
    call msgbox(file.info.fullpath)
    End Sub
    That is word for word of what I'm trying to accomplish, I'm a complete n00b at this point. I just need to know how, what, when, where, and why this keeps happening. Thanks.

    Walter-
    I am using 5.6.0.8820 of the Visual Basic Scripting Edition from Microsoft. I am using DIAdem version 9.10.2036 20040319 with Windows XP 5.1.2600 Service Pack 2. I think I know why I was getting this error, Brad set me straight, if you do not create at least one implicit channel, then the script engine returns an error when the ReadStore Sub is complete. This would be helpful if this got included in the DataPlugin examples and the explanation. I'd like to know if there will be any published books on DIAdem in the near future. Please let me know, and thanks for your help.

  • Not able to set custom shortcut for increase/decrease brush size in Photoshop CC 2014 on Win 8

    I am using Windows 8 and PS CC2014 and the issue is that I can't assign custom shortcut to the dot. I have been using , and . as decreasing and increasing brush size and it has worked well in every photoshop, even cc2014 in win7 but not in win8 it seems. It lets me to change the , and just tells me that it is in use in somewhere else but i can still change it. But I can't do the same with . as it complains it being used by an application although I have cleared that from the original place and left it empty, photoshop still recognizes it if I press it although it would be empty but I can't assign that key to anything else either.
    Small thing but drives me crazy as I had to assign it to another keys and I am using the shortcuts from muscle memory mostly and end up changing the brush when I had an intention to increase the size. I tried to google this but couldn't find anything similar solution.

    I didn't manage to get it to work :c Restart won't do anything and I tried to reset the preferences by deleting manually the file with keyboard shortcuts. I managed to get them to the factory settings but that was about it. Everytime I try to assign "." to somewhere (including to the place where it already is), it gives the red x and says "the shortcut is not valid. It is being used by another application." (not sure what it is in english exactly, I happen to have my PS in finnish unfortunately ). Plugin disabled mode did nothing either.
    I have changed that shortcut many times to different versions earlier and this is first time I see that message or am not being able to change the shortcut. And I installed the photoshop yesterday from fresh and first thing I did was making the shortcuts and it gave the error from the first use.

  • Any way to link a controls' custom shortcut menu to a new .rtm file?

    My project programmatically generates controls from a template. The template has a custom shortcut menu that is saved in the project directory, and the generated controls all work fine with this. However, now I need to be able to export the project to other directories/machines, and so now the generated controls can no longer 'find' the .rtm shortcut file, despite it being in the same folder as the control. This means if I want to be able to use the menu I have to open every generated control (which there can be hundreds of) and right-click -> advanced -> run-time shortcut menu -> and then reopen the file. 
    Is there any way to programmatically link a controls' shortcut menu to a new .rtm file, or is there any way to set a controls' custom shortcut file as a relative path instead of an absolute one?
    Cheers

    Many people can solve their problems with the 20 page limit using custom components. You should check out this thread
    http://forums.adobe.com/message/2500263#2500263
    It is possible to use the onClick -> go to State and set states on a custom component or any of its subcomponents.
    Catalyst does not currently support linking to a local files.
    -Bear

  • Adding custom navigation to the script

    One of the scripts which I am preparing at the moment is giving me some problems.
    This script has 5 nodes. In the first three, a new user account is created, and in the 3rd node I get a special user ID (it can be found in the pages html source).
    Then the 4th node navigates to an absolutely unrelated page, and the user ID I get from node 3 is used to construct the address for node 4. And node 5 just does more work on that page which I navigate to in node 4.
    As such, I have to use a custom navigation here, which can be implemented, if I am not mistaken, with provided the e-Load Navigation Editor. I do all the steps mentioned in the manual, and it all seems clear and well described. But when I try to run run that node 4 I get something like
    http://mysiteaddress/clever.page?&sp={{UserId[3]_#_Uo2k0k4g0000hk464a1h0000000}}&sp=en
    i.e. the substitution in the address with that custom variable somehow fails, and I get the regular expression code as the output instead of the processed expression. UserId[3] is the variable defined on step 3, which contains the id I mentioned.
    Anyone knows what could be the problem here?
    I know how to do that with PI, but I would like to try and use the Navigation Editor first.

    Can you try this "session.serverVariables.VARIABLENAME"

  • How to add a keyboard shortcut to the Scripts... menu in Photoshop CC 2014? [was: Mune Bar Shortcut]

    Is it possible to add a shortcut to the Scripts... menu item in Photoshop CC 2014
    OSX10.9

    Do you mean add a keyboard shortcut to one of the scripts listed under File>Scripts?
    Look at Edit>Keyboard Shortcuts in photoshop.
    http://helpx.adobe.com/photoshop/using/customizing-keyboard-shortcuts.html

  • Shortcut for a Script

    How do you create a shortcut for a script? I'm not referring to a keyboard shortcut.

    Hi John,
    I am referring to the physical location of the script.
    Here are some explanations of the shortcut:
    1. (From Dave Saunders)
    Consider Using Aliased Sub-folders
    Having scripts located physically inside the application folder can be somewhat inconvenient, particularly if you are a scripter, working on the scripts themselves, rather than just using them as tools. But even script users might be frustrated if they forget that the scripts are there and for some reason re-install InDesign, obliterating the Scripts folder in the process.
    While you could use an alias of the whole Scripts folder to work around this issue, I have found it better to work with aliased sub-folders. This allows me to keep my scripts in folders inside my Documents folder, while for some projects, I have a Scripts folder associated with the project itself for custom scripts that apply to just that project.
    2. (From page 4 of the InDesign CS3 Scripting Tutorial)
    You also can put aliases/shortcuts to scripts (or to folders containing scripts) in the Scripts Panel folder, and they will appear in the Scripts panel.
    3. Save the script as a text file with the file extension ".js" and put itor an alias/shortcut to itin the Scripts folder in the Presets folder inside your InDesign folder. Run the script from the Scripts palette.

  • Custom presets without coding/scripting?

    The shortcut I presently use is to save my customized settings as Animation Presets in the Effects Panel. Using keywords, like "Bill Keylight" and "Bill Colorista", all I have to do is type "Bill" in the Effects & Presets search bar and every preset I customized and saved for Bill is displayed. I can then select them all and apply them to the layer. However, is there a way to take all my "Bill" presets and combine them into one preset without having to do any scripting/coding?
    Thanks, everyone.
    Paul

    You can make an animation preset for every effect and keyframe you have on a single layer. Just press the "U" key twice to reveal everything that's not at the default values, select them all and create your preset.
    If you want to combine a bunch of presets that you've already created then apply them all to a layer, select all the properties and create a new Animation Preset.
    If you want to use multiple layers you have to write a script.

  • Custom shortcuts in Lion?

    In Snow Leopard I set up several custom shortcuts for the system and for Safari. Has that functionality completely gone away in Lion? Or has it moved, or am I just getting senile?
    Thank you.

    Thanks, but how does that let me create a custom one?

  • Popup message is not showing from vbs file - SCCM 2012 Package

    Hi,
    I am deploying a package that needs the outlook should be closed prior to install. For that, we have included popup message in the vbs script(setup.vbs) file. When deploying the package via SCCM(using package deployment method), the popup message is not appearing
    but it is working when we run the script file manually. i have modified SCCM program setting but no luck.
    Could you advise what setting needs to be changed in SCCM Program & deployment?

    Running it with user rights might cause an issue with installing it, as the user might not have the appropriate permissions. You should be able to run it with administrative rights and select
    Allow users to interact with this program. That way the user should still be able to interact with the program messages.
    My Blog: http://www.petervanderwoude.nl/
    Follow me on twitter: pvanderwoude

  • When trying to creat a desktop icon, it does not go to the URL.....instead I get 'script' and not a website......the script has http//etc but I am not directed to the website......I previously had IE 8 (on Vista).....is that the problem...

    Question
    When trying to create a desktop icon, it does not go to the URL.....instead I get 'script' and not a website......the script has http//etc but I am not directed to the website......I previously had IE 8 (on Vista).....is that the problem?I do not have any installed plugins....at least none that I know of.....remember I am a new user......Basically, the desktop icon is not going directly to the Mozilla FF to get me to the web site I need to go to.....FF works when I use the Mozilla FF icon.....just not the icons I create.....THANKS!!! I have also tried reinstalling FF and get the same results.....HELP!!!

    The address beginning with file:/// denotes a saved file (local file). The file may not be present. You can try dragging the site icon of this page on the left edge of the location (Address) bar and release it on the desktop. Please try opening it. If it still shows an error it could be a problem with the system's zone permissions. You can try setting each zone in the Windows Control Panel or IE > '''Internet Options''' > '''Security''' tab to '''Default Level'''.

  • Is there a way to create a custom shortcut key to paste my email address?  I would like to be able to press a key combination that will paste whatever I set it to, i.e. my email address.

    Is there a way to create a custom shortcut key to paste my email address?  I would like to be able to press a key combination that will paste whatever I set it to, i.e. my email address.

    There are multiple ways to do similar things. One, built into the system, is to use text replacement. See:
    http://www.tuaw.com/2009/12/31/mac-101-making-text-replacement-work/
    There are other programs you can buy that can do the job in different ways, such as TextExpander. You could also just create a clipping file by dragging your e-mail address to somewhere like the desktop, and then you can simply drag that file to wherever you like to insert your e-mail address there.

Maybe you are looking for