desktop and startup folders

  • Thread starter Thread starter Dale Fye
  • Start date Start date
D

Dale Fye

How do I refer to the users desktop using the DIR()
function?

How do I add a shortcut or an application to a users
startup folder?
 
How do I refer to the users desktop using the DIR()
function?

Try this (Win XP directory structure):
Dir ("C:\Documents And Settings\" & Environ("username")
& "\Desktop\")
How do I add a shortcut or an application to a users
startup folder?
Try this:
FileCopy "C:\Path\SourceFileName.xxx", "C:\Documents And
Settings\" & Environ("username") & "\Start
Menu\Programs\Startup\"

HTH
Jason
 
Hi,
How do I refer to the users desktop using the DIR()
function?

If you don't matter using File System Object, here is an example (spanish):

http://www.mvp-access.com/juanmafan/wsh/specialfolders.htm
How do I add a shortcut or an application to a users
startup folder?

Here is an example, using File System Object as well (spanish):

http://www.mvp-access.com/juanmafan/wsh/crearaccesodirecto.htm

this example creates a shorcut of the current db in the desktop, but you
only have to change the line

Escritorio = WScript.SpecialFolders("Desktop")

to

Escritorio = WScript.SpecialFolders("Startup")

HTH
 
Thanks. That helped.

Juan M Afan de Ribera said:
Hi,
How do I refer to the users desktop using the DIR()
function?

If you don't matter using File System Object, here is an example (spanish):
http://www.mvp-access.com/juanmafan/wsh/specialfolders.htm

How do I add a shortcut or an application to a users
startup folder?

Here is an example, using File System Object as well (spanish):

http://www.mvp-access.com/juanmafan/wsh/crearaccesodirecto.htm

this example creates a shorcut of the current db in the desktop, but you
only have to change the line

Escritorio = WScript.SpecialFolders("Desktop")

to

Escritorio = WScript.SpecialFolders("Startup")

HTH

--
Saludos,
Juan M Afan de Ribera
[MVP Access]
http://www.mvp-access.com/juanmafan


Dale Fye said:
How do I refer to the users desktop using the DIR()
function?

How do I add a shortcut or an application to a users
startup folder?
 
Back
Top