Sign in to follow this  
Followers 0
2989

New user Question

3 posts in this topic

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

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

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

Share this post


Link to post
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:>

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

Share this post


Link to post
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
Sign in to follow this  
Followers 0