Page 1 of 1 1
Topic Options
#11762 - 2001-08-21 08:13 PM Here is an easy one for someone.
Anonymous
Unregistered


It it another outlook question. So far I've had better success with setting up my scripts to use profgen.exe and newprof.exe. However in the file it uses, outlook.prf, I've tried setting the mailbox field to several different variable names. Always, no matter what it never fills in the blank. It always tries to use that actually variable name (%username%, @userid) as the mailbox name. This of course isn't doing me any good. I'm sure whatever I'm doing wrong is something simple that I've overlooked. But I really have no idea what it is anymore. So, if someone could just tell me why that isn't working....

Seeya later.

~Ryan

Top
#11763 - 2001-08-22 02:04 AM Re: Here is an easy one for someone.
Anonymous
Unregistered


Ok, mabye it isn't such an easy one afterall. Oh well, I'll keep checking back but for now I'll just have to abandon this 'travelling e-mail' idea so I can make some actual progress on this script.

~Ryan

Top
#11764 - 2001-08-22 10:38 AM Re: Here is an easy one for someone.
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
please, could you send the part of your script on the board. we can only assume where you are going wrong if we do not see how you are trying to set the value.

cheers,

_________________________
!

download KiXnet

Top
#11765 - 2001-08-23 01:14 AM Re: Here is an easy one for someone.
Anonymous
Unregistered


I don't think my problem is in the script this time. The script runs the program it needs to run (profgen.exe and newprof.exe) but it's a problem there. It uses the file outlook.prf to collect default information for creating an outlook profile. In the outlook.prf file, one field under service two says MailBoxName=%username%. The idea being that it will sub in the name of whoever is logged in and thereby access his or her e-mail. Instead when I go to run outlook it gives me an error that the name cannot be found. This is because it is trying to sub in the acutal "%username%" and not what username contains (ryanl for example) Doesn't seem to matter which variable I try to use either (%username%, @userid, @fullname) it always puts the variable name in and not what it contains. I could create one .prf for every user... but that would be time consuming enough that I might as well create a login script for every user that would set the e-mail profile. Any suggestions?

If you wanna see the part of the .prf file I could post that, but I'm not sure it will be of any help, cause it's not really a kixtart script problem anymore.

~Ryan L

Top
#11766 - 2001-08-24 10:38 AM Re: Here is an easy one for someone.
Anonymous
Unregistered


Ryan, I'm not 100% what exactly you are trying to do as I don't have much experience with outlook, but could you not assign the variable in a kix script and then shel out to change the mailbox?

code:
 
$name=@userid
shell "profgen.exe Mailboxname="+$name


Top
#11767 - 2001-08-25 12:46 AM Re: Here is an easy one for someone.
Anonymous
Unregistered


Hi,

I guess it could be 2 things, your command line. Wich I guess is good, cauze he creates the profile or the %username%.

Try $username$.

The profgen will interpert that as the current username and fill it in correctly. %username% seems more logical, but the program isn't programmed to use variables known to NT.

Hope that helps.

Greetz.

Top
Page 1 of 1 1


Moderator:  Jochen, Allen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Arend_, Mart 
Hop to:
Shout Box

Who's Online
0 registered and 837 anonymous users online.
Newest Members
ManuvdWielNL, Sir_Barrington, batdk82, StuTheCoder, M_Moore
17887 Registered Users

Generated in 0.052 seconds in which 0.024 seconds were spent on a total of 12 queries. Zlib compression enabled.

Search the board with:
superb Board Search
or try with google:
Google
Web kixtart.org