Jump to content

New user Question


2989
 Share

Recommended Posts

I need to update the stationary in Outlook for various users in my organisation and wish to do a simple copy of the outlook stationary file i have created to each users profile, which is located in C:\Documents and Settings\user profile\Application Data\Microsoft\Stationery

How do identify the path to the current user profile ?

thanks

Link to comment
Share on other sites

Replace

C:\Documents and Settings\user profile\Application Data

with

@AppDataDir

OR

Replace

C:\Documents and Settings\user profile

with

@UserProfileDir

Examples:

@AppDataDir & '\Microsoft\Stationery'

@UserProfileDir & '\Application Data\Microsoft\Stationery'
Edited by MHz
Link to comment
Share on other sites

Thanks worked great. :whistle:

; ----------------------------------------------------------------------------

; <START:>

; ----------------------------------------------------------------------------

; -----Copy Data.-----

filecopy('c:\temp\forksales.htm', @AppDataDir & '\Microsoft\Stationery',"1")

filecopy('c:\temp\email_logo.gif', @AppDataDir & '\Microsoft\Stationery',"1")

;

; -----Cleanup: Delete C:\temp and all subdirs and files.-----

DirRemove("C:\temp", 1)

;

; -----Open outlook and set default Stationary Template.-----

Run("c:\progra~1\microsoft Office\office11\outlook.exe", "",@SW_HIDE)

Winwaitactive("outlook" ,"",2)

send("!t")

send("o")

send("^{TAB 2}")

send("!t")

WinWaitactive("" ,"",2)

send("f")

send("{ENTER}")

send("!a")

send("{ENTER}")

send("!f")

send("x")

exit

; ----------------------------------------------------------------------------

; <END:>

; ----------------------------------------------------------------------------

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...