Solved Writing Desktop Shortcut Using .bat file

bear21

Member
I have had success in the past using a .bat file to create a desktop shortcut.

I was infected a week ago with a virus or malware of some sort and cleaned it, No virures or malware on my system as of right now.

Here is an example of how I wrote my desktop shortcut .bat files:

@echo off

start iexplore.exe "www.yahoo.com" (as an example)
This is the syntax I always have used and it worked.

When I click on the shortcut I get an error message that reads: Windows cannot find 'iexplore.exe'. Make sure you typed etc. etc.

My system is working fine. IE 9 is working faster than ever and have no problems with Internet Explorer.

I checked Internet Explorer in my Program files and it indeed lists iexplore.exe in the folder.

Again, my system is clean of any virurs, malmare, rootkits and all PUP's.

Any help on why Windows cannot find iexplore.exe?

My level of experience is intermediate.

Thanks in advance.
 

My Computer

System One

  • Manufacturer/Model
    Dell/ Inspirion 530
    CPU
    Intel Pentium Dual CPU E2200 @ 2.20 GHZ
    Memory
    2GB
    Graphics Card(s)
    Intel G33/G31 Express Chipset Family
    Sound Card
    Realtek High Definition Audio
    Monitor(s) Displays
    HP 2009 Series Wide LCD Monitor
Hello bear, and welcome to Vista Forums.

Close, but the command just needs to have the full path to iexplorer.exe included.

Code:
@echo off

start "%ProgramFiles%\Internet Explorer\iexplore.exe" http://www.yahoo.com


Option Three in the tutorial below can give you some more ideas about this. Especially if you would like to create a normal shortcut instead of a .bat file.

Internet Website Shortcut - Create - Windows 7 Forums

Hope this helps, :)
Shawn
 

My Computers

System One System Two

  • Operating System
    Windows 10 Pro 64-bit
    Manufacturer/Model
    Custom
    CPU
    Intel i7-8700K 5 GHz
    Motherboard
    ASUS ROG Maximus XI Formula Z390
    Memory
    64 GB (4x16GB) G.SKILL TridentZ RGB DDR4 3600 MHz (F4-3600C18D-32GTZR)
    Graphics Card(s)
    ASUS ROG-STRIX-GTX1080TI-O11G-GAMING
    Sound Card
    Integrated Digital Audio (S/PDIF)
    Monitor(s) Displays
    2 x Samsung Odyssey G7 27"
    Screen Resolution
    2560x1440
    Hard Drives
    1TB Samsung 990 PRO M.2,
    4TB Samsung 990 PRO PRO M.2,
    8TB WD MyCloudEX2Ultra NAS
    PSU
    Seasonic Prime Titanium 850W
    Case
    Thermaltake Core P3
    Cooling
    Corsair Hydro H115i
    Keyboard
    Logitech wireless K800
    Mouse
    Logitech MX Master 3
    Internet Speed
    1 Gb/s Download and 35 Mb/s Upload
    Other Info
    Logitech Z625 speaker system,
    Logitech BRIO 4K Pro webcam,
    HP Color LaserJet Pro MFP M477fdn,
    APC SMART-UPS RT 1000 XL - SURT1000XLI,
    Galaxy S23 Plus phone
  • Operating System
    Windows 10 Pro
    Manufacturer/Model
    HP Envy Y0F94AV
    CPU
    i7-7500U @ 2.70 GHz
    Memory
    16 GB DDR4-2133
    Graphics card(s)
    NVIDIA GeForce 940MX
    Sound Card
    Conexant ISST Audio
    Monitor(s) Displays
    17.3" UHD IPS touch
    Screen Resolution
    3480 x 2160
    Hard Drives
    512 GB M.2 SSD
Hello Shawn, thank you for your quick response. Your syntax worked perfectly. I do remember though previously that I only had to type the file name, "iexplore.exe". Why it worked without the complete path is anyone's guess. Very strange.

Wish all problems were this easy to fix. Thank you.
 

My Computer

System One

  • Manufacturer/Model
    Dell/ Inspirion 530
    CPU
    Intel Pentium Dual CPU E2200 @ 2.20 GHZ
    Memory
    2GB
    Graphics Card(s)
    Intel G33/G31 Express Chipset Family
    Sound Card
    Realtek High Definition Audio
    Monitor(s) Displays
    HP 2009 Series Wide LCD Monitor
You're most welcome Bear. :)
 

My Computers

System One System Two

  • Operating System
    Windows 10 Pro 64-bit
    Manufacturer/Model
    Custom
    CPU
    Intel i7-8700K 5 GHz
    Motherboard
    ASUS ROG Maximus XI Formula Z390
    Memory
    64 GB (4x16GB) G.SKILL TridentZ RGB DDR4 3600 MHz (F4-3600C18D-32GTZR)
    Graphics Card(s)
    ASUS ROG-STRIX-GTX1080TI-O11G-GAMING
    Sound Card
    Integrated Digital Audio (S/PDIF)
    Monitor(s) Displays
    2 x Samsung Odyssey G7 27"
    Screen Resolution
    2560x1440
    Hard Drives
    1TB Samsung 990 PRO M.2,
    4TB Samsung 990 PRO PRO M.2,
    8TB WD MyCloudEX2Ultra NAS
    PSU
    Seasonic Prime Titanium 850W
    Case
    Thermaltake Core P3
    Cooling
    Corsair Hydro H115i
    Keyboard
    Logitech wireless K800
    Mouse
    Logitech MX Master 3
    Internet Speed
    1 Gb/s Download and 35 Mb/s Upload
    Other Info
    Logitech Z625 speaker system,
    Logitech BRIO 4K Pro webcam,
    HP Color LaserJet Pro MFP M477fdn,
    APC SMART-UPS RT 1000 XL - SURT1000XLI,
    Galaxy S23 Plus phone
  • Operating System
    Windows 10 Pro
    Manufacturer/Model
    HP Envy Y0F94AV
    CPU
    i7-7500U @ 2.70 GHz
    Memory
    16 GB DDR4-2133
    Graphics card(s)
    NVIDIA GeForce 940MX
    Sound Card
    Conexant ISST Audio
    Monitor(s) Displays
    17.3" UHD IPS touch
    Screen Resolution
    3480 x 2160
    Hard Drives
    512 GB M.2 SSD
One other thing I'd suggest... for folks who like to use shortcuts like this. Download "nircmd". It's a terrific little command prompt utility that can do a myriad of things, including the launch of applications with all kinds of parameters you wish. I gave those guys a donation, which I rarely do for freeware. I like it that much.
 

My Computer

System One

  • Manufacturer/Model
    HP Pavillion dv5t
    CPU
    Intel Core Duo 2.53GHz
    Memory
    4Gb
    Graphics Card(s)
    NVidia GeForce 9600M GT 512Mb
    Screen Resolution
    1280x800 32bit
    Hard Drives
    Seagate Momentus XT 500Gb
    Hitachi Travelstar HTS543225L9A300 250Gb
    Mouse
    Microsoft 4000

My Computer

System One

  • Manufacturer/Model
    HP Pavilion m9515y
    CPU
    Phenom X4 9850
    Memory
    8 GB
    Graphics Card(s)
    Some Radeon Cheapie with 512 MB Ram
    Monitor(s) Displays
    CRT
    Screen Resolution
    1280x1024
    Hard Drives
    750 GB SATA 3G
    2 SIIG Superspeed docks w/WD Caviar Black Sata II or III
Back
Top