Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New Coder
    Join Date
    Sep 2009
    Posts
    54
    Thanks
    4
    Thanked 0 Times in 0 Posts

    Batch File for Shortcut Creation(s)

    Hey guys, not sure which catigory this belongs in, but...i have a delima...i created a Batch file with several echos...so my batch file looks like this:

    PHP Code:
    echo URL=https://www.1***.com >> "%userprofile%\desktop\1.url"
    echo URL=https://www.2***.com >> "%userprofile%\desktop\2.url"
    echo URL=https://www.3***.com >> "%userprofile%\desktop\3.url"
    echo URL=https://www.4***.com >> "%userprofile%\desktop\4.url"
    echo URL=https://www.5***.com >> "%userprofile%\desktop\5.url" 
    when i run the .bat file...it creates the shortucuts on my desktop...BUT when i try to open either one of the shortcuts, i get an error that says "The target "" of this internet shortcut is not valid."

    any ideas guys?

  • #2
    Master Coder
    Join Date
    Jun 2003
    Location
    Cottage Grove, Minnesota
    Posts
    9,531
    Thanks
    8
    Thanked 1,091 Times in 1,082 Posts
    EDIT:

    I thought I had the right answer, but I think it was wrong ... so I removed it.

    EDIT AGAIN:

    I found this:
    http://www.addictivetips.com/windows...ktop-shortcut/
    Last edited by mlseim; 03-03-2010 at 07:55 PM.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •