Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 153
Default send zip file to desktop

When I send a self extracting zip file to user it
automatically creates a shortcut on the desktop for user
of Windows 98, but does not for Windows 2000. Is there a
way of writing the path for Windows 2000?
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4
Default send zip file to desktop

Hi David,

You can get it by WSH. Please try the code below.

Dim WSHShell, WSH_Folder
Set WSHShell = CreateObject("WScript.Shell")
Set WSH_Folder = WSHShell.SpecialFolders
MsgBox "Your Desktop path would be " & WSH_Folder.Item("Desktop")


Colo



"David" wrote in message
...
When I send a self extracting zip file to user it
automatically creates a shortcut on the desktop for user
of Windows 98, but does not for Windows 2000. Is there a
way of writing the path for Windows 2000?




  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 153
Default send zip file to desktop

Colo
Thanks for this it does exactly what I asked. What I
really wanted to do was create a shortcut on the desktop
to a file located on C: Any ideas!!

David
-----Original Message-----
Hi David,

You can get it by WSH. Please try the code below.

Dim WSHShell, WSH_Folder
Set WSHShell = CreateObject("WScript.Shell")
Set WSH_Folder = WSHShell.SpecialFolders
MsgBox "Your Desktop path would be " & WSH_Folder.Item

("Desktop")


Colo



"David" wrote in

message
...
When I send a self extracting zip file to user it
automatically creates a shortcut on the desktop for user
of Windows 98, but does not for Windows 2000. Is there

a
way of writing the path for Windows 2000?




.

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,718
Default send zip file to desktop

You can create a desktop shortcut to a file like this:

Sub MakeDesktopShortcut()
Dim wsh As Object
Dim SC As Object
Dim DesktopPath As String
Set wsh = CreateObject("WScript.Shell")
DesktopPath = wsh.SpecialFolders.Item("Desktop")
Set SC = wsh.CreateShortcut(DesktopPath & "\test.lnk")
SC.TargetPath = "C:\book1.xls"
SC.Hotkey = "CTRL+ALT+Z"
SC.Save
Set wsh = Nothing
End Sub

--
Jim Rech
Excel MVP
"David" wrote in message
...
| Colo
| Thanks for this it does exactly what I asked. What I
| really wanted to do was create a shortcut on the desktop
| to a file located on C: Any ideas!!
|
| David
| -----Original Message-----
| Hi David,
|
| You can get it by WSH. Please try the code below.
|
| Dim WSHShell, WSH_Folder
| Set WSHShell = CreateObject("WScript.Shell")
| Set WSH_Folder = WSHShell.SpecialFolders
| MsgBox "Your Desktop path would be " & WSH_Folder.Item
| ("Desktop")
|
|
| Colo
|
|
|
| "David" wrote in
| message
| ...
| When I send a self extracting zip file to user it
| automatically creates a shortcut on the desktop for user
| of Windows 98, but does not for Windows 2000. Is there
| a
| way of writing the path for Windows 2000?
|
|
|
| .
|


Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
EXCEL FILES SAVED TO DESKTOP WILL NOT OPEN FROM DESKTOP randy111 Excel Discussion (Misc queries) 3 January 13th 08 10:38 PM
Desktop File Icon Josh O. Setting up and Configuration of Excel 3 August 23rd 07 09:30 PM
File from Desktop Sam Setting up and Configuration of Excel 1 February 3rd 06 08:08 PM
Desktop file sharing calgarydrafter Excel Worksheet Functions 1 July 13th 05 09:56 PM
Desktop shortcut to a named Excel file - every time I open it adds a "1" to the file name - how to disable? [email protected] Setting up and Configuration of Excel 2 November 27th 04 09:02 PM


All times are GMT +1. The time now is 05:44 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"