A Microsoft Outlook email forum. Outlook Banter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » Outlook Banter forum » Microsoft Outlook Email Newsgroups » Outlook - Installation
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

AddPst.exe tool.



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old September 17th 09, 04:50 PM posted to microsoft.public.outlook.installation
Dave
external usenet poster
 
Posts: 247
Default AddPst.exe tool.

When using the addpst.exe file in a vbscript below. The path to the moved pst
file in the Outlook data files only places the first word if their are
spaces.

For example:
If the new path is c:\documents and settings\my profile
the path in the data files path will be c:\documents

Everything after the first space will not enter. I have tried variations of
quotations etc but cant seem to get past this...

Thanks

________________________

objshell.Run "c:\lansd\addPst.exe -p autoprofile -t c:\documents and
settings\my Profile -d PSTFile -f u ",0,"TRUE"


  #2  
Old September 17th 09, 08:34 PM posted to microsoft.public.outlook.installation
Brian Tillman [MVP - Outlook]
external usenet poster
 
Posts: 4,874
Default AddPst.exe tool.

"Dave" wrote in message
...

When using the addpst.exe file in a vbscript below. The path to the moved
pst
file in the Outlook data files only places the first word if their are
spaces.

For example:
If the new path is c:\documents and settings\my profile
the path in the data files path will be c:\documents


You need to quote "C:\Documents and Settings\user". Strings containing spaces
must be enclosed in quotes. I don't know how scripts work, but, assuming that
two quotes within a string means one quote gets passed in, then something
like:

objshell.Run "C:\lansd\addPst.exe -p autoprofile -t ""C:\Documents and
Settings\My Profile"" -d PSTFile -f u", 0, "TRUE"

If it uses Unix-like syntax, then perhaps it's

objshell.Run "C:\\lansd\\addPst.exe -p autoprofile -t \"C:\\Documents and
Settings\\My Profile\" -d PSTFile -f u", 0, "TRUE"
--
Brian Tillman [MVP-Outlook]

  #3  
Old September 18th 09, 09:54 AM posted to microsoft.public.outlook.installation
Roady [MVP]
external usenet poster
 
Posts: 2,620
Default AddPst.exe tool.

Your first assumption was correct :-)

Of course don't forget above your code'
Set objShell = CreateObject("WScript.Shell")

--
Robert Sparnaaij [MVP-Outlook]
Coauthor, Configuring Microsoft Outlook 2003
http://www.howto-outlook.com/
Outlook FAQ, HowTo, Downloads, Add-Ins and more

http://www.msoutlook.info/
Real World Questions, Real World Answers

-----

"Brian Tillman [MVP - Outlook]" wrote in message
...
"Dave" wrote in message
...

When using the addpst.exe file in a vbscript below. The path to the moved
pst
file in the Outlook data files only places the first word if their are
spaces.

For example:
If the new path is c:\documents and settings\my profile
the path in the data files path will be c:\documents


You need to quote "C:\Documents and Settings\user". Strings containing
spaces must be enclosed in quotes. I don't know how scripts work, but,
assuming that two quotes within a string means one quote gets passed in,
then something like:

objshell.Run "C:\lansd\addPst.exe -p autoprofile -t ""C:\Documents and
Settings\My Profile"" -d PSTFile -f u", 0, "TRUE"

If it uses Unix-like syntax, then perhaps it's

objshell.Run "C:\\lansd\\addPst.exe -p autoprofile -t \"C:\\Documents and
Settings\\My Profile\" -d PSTFile -f u", 0, "TRUE"
--
Brian Tillman [MVP-Outlook]


 




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
All Day Events on Tool Bar Mike Outlook - General Queries 4 August 21st 09 09:56 PM
Migrating to from one computer using addpst.exe Reid Outlook - Installation 1 July 2nd 09 12:41 AM
Outlook Tool bar Ram Manohar Outlook - Using Forms 1 February 17th 09 01:58 PM
Travel tool JR Outlook - Calandaring 1 July 3rd 07 04:10 AM
tool bar johanna Outlook Express 5 December 24th 06 10:35 AM


All times are GMT +1. The time now is 07:09 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2025 Outlook Banter.
The comments are property of their posters.