Vista and Mail
Moderators: JRL, Dorian (MJT support)
Vista and Mail
I have a script that runs fine on XP and on one Vista Machine but not another. I can only assume it has to do with security, so I turned off the firewall and still no go. When the script runs it gives me a failure notice and asks if I want to send the report to Microsoft. Please note: This is a clean install of Vista.
The portion of the script that uses mail, just checks the mail settings the actual mail is handled with a command line utility that sends mime mail. This portion fails as well on the Vista Machine, one more reason that I think it is a security setting.
Does anyone have any ideas as to what would cause the mail funcitions in the script to fail?
The portion of the script that uses mail, just checks the mail settings the actual mail is handled with a command line utility that sends mime mail. This portion fails as well on the Vista Machine, one more reason that I think it is a security setting.
Does anyone have any ideas as to what would cause the mail funcitions in the script to fail?
- Bob Hansen
- Automation Wizard
- Posts: 2475
- Joined: Tue Sep 24, 2002 3:47 am
- Location: Salem, New Hampshire, US
- Contact:
mail and Vista
Thanks for the help in advance - You don't know what you got yourself into!! IF I disable UAC it works - but I don't think I should have to - As you will see a lot of this will have to be changed for testing as it reads a registry entry for the path. The Java detect is not relevant for testing purposes. The other thing that may seen odd is the way it determines the folder, this is because it it private labeled for different companies. The third thing that is odd is that it creates folders that are not used. This is by design as this is a setup program. Bob, if you think you need the rest of the scripts please private message me and I will post them on my ftp site.
I really don't get this, as I have rebuilt the install, everything I can think of.
// COMPILE_OPTS|C:\Program Files\edocfile\Batch Scan to Email\Setup Barcode Mail Sender.exe|C:\Documents and Settings\Keith Passaur\My Documents\Icons\pc.ico|CONSOLE=0|INCLUDES=1| /LOGFILE=\dev\nul /NOSYSTRAY /NOSTOPKEY
Let>APP_TITLE=Setup Barcode Mail Sender
RegistryReadKey>HKEY_LOCAL_MACHINE,SOFTWARE\Batch Scan to Email,AppFolder,ProgramFolder
Separate>%ProgramFolder%,\,pf_array
Let>company=PF_array_3
Let>removecomma=,
VBSTART
Function GetFolder(Folder)
Set WShell = CreateObject("WScript.Shell")
GetFolder = WShell.SpecialFolders(Folder)
Set WShell = Nothing
End Function
VBEND
VBEval>GetFolder("AppData"),AppData
Let>settinsdir=%AppData%\%company%\Batch Scan to Email
IfDirExists>%settinsdir%,haveappdir
Let>RP_WAIT=1
Let>RP_WINDOWMODE=0
RunProgram>cmd /c MD "%settinsdir%"
Label>haveappdir
IfFileExists>%settinsdir%\javadetect.exe,reinstalled
Copyfile>%ProgramFolder%\javadetect.exe,%settinsdir%
Label>reinstalled
Let>RP_WAIT=1
Let>RP_WINDOWMODE=0
ChangeDirectory>%settinsdir%
RunProgram>javadetect.exe
ReadLn>%settinsdir%\testjava.txt,1,javainstalled
If>javainstalled=no
MDL>This Program requires Java to Merge Files - it can be downloaded at http://www.java.com
Ask>Would you like to download Java now?,dj
If>dj=YES
ExecuteFile>Http:\\www.java.com
Exit>0
ELSE
MDL>The program cannot be run without Java - Setup will now exit.
Endif
Exit>0
Endif
ReadIniFile>%ProgramFolder%\Colors.ini,Colors,Line,linecolor
ReadIniFile>%ProgramFolder%\Colors.ini,Colors,Text,textcolor
IfDirExists>%settinsdir%\Mailsettings,havemaildir
Let>RP_WAIT=1
Let>RP_WINDOWMODE=0
RunProgram>cmd /c MD "%settinsdir%\Mailsettings"
Label>havemaildir
IfDirExists>%settinsdir%\logfiles,havetempdirforlog
Let>RP_WAIT=1
Let>RP_WINDOWMODE=0
RunProgram>cmd /c MD "%settinsdir%\logfiles"
Label>havetempdirforlog
IfDirExists>%settinsdir%\images,haveimagesdir
Let>RP_WAIT=1
Let>RP_WINDOWMODE=0
RunProgram>cmd /c MD "%settinsdir%\images"
Label>haveimagesdir
IfDirExists>%settinsdir%\tempprocess,havetempprocessidr
Let>RP_WAIT=1
Let>RP_WINDOWMODE=0
RunProgram>cmd /c MD "%settinsdir%\tempprocess"
Label>havetempprocessidr
IfDirExists>%settinsdir%\tempin,havetempin
Let>RP_WAIT=1
Let>RP_WINDOWMODE=0
RunProgram>cmd /c MD "%settinsdir%\tempin"
Label>havetempin
Dialog>Dialog3
Caption=Setup Rules
Width=800
Height=588
Top=CENTER
Left=CENTER
Max=0
Min=0
Close=1
Resize=0
Image=%ProgramFolder%\images\Setuprules.bmp,0,0,793,569,msImage1,0
Image=%ProgramFolder%\images\logo1.bmp,12,8,89,41,msImage2,0
Label=Setup Delivery Rules,255,20,true
Label=___________________________________________________________________________________,0,30,true
Memo=rulebox,20,83,749,150,%rules%
Label=Example One: Send as an eMail Attachment,23,372,true
Label=No Matching Rule will send the file as an attachment by default,87,348,true
Button=Help,619,512,75,25,5
Button=Save,545,512,75,25,1
Button=Exit,693,512,75,25,2
Label=Example Two: Send a Link to a file on the Network,23,409,true
Label=[email protected]=Z:\Network Shared Files\Joe=\\x-series\Network Shared Files\Joe,87,422,true
Label=or,309,435,true
Label=[email protected]=\\x-series\Network Shared Files\Joe=\\x-series\Network Shared Files\Joe,87,448,true
Label=Example Three: Send to an FTP Site,23,471,true
Label=[email protected]=ftp://www.edocfile.info/Joe=http://www. ... 7,485,true
Label=Example Four: No mail and send to a shared folder on the Network,23,506,true
Label=[email protected]=\\x-series\Network Shared Files=NOMAIL,87,519,true
Label=Copyright© eDocFile Inc. 2004-2009,565,538,true
Label=Format of a Rule,336,294,true
Label=Rule for delivery to an FTP Site - eMail Address=FTP Path=UNC Path=User Name=Password=Port,87,317,true
Label=Rule for delivery to an Network Folder - eMail Address=FTP Path=UNC Path,87,333,true
Label=Enter Nothing it will be sent as an attachment by default,87,385,true
Label=All Rules are Case Sensitive - If no message is to be sent subsitute "NOMAIL" for the UNC Path - The software will match the first barcode eMail,56,248,true
Label=address with the cover page the delivery eMail address can be to mulitple addresses separated by a comma; however the match is the first,56,264,true
Label=barcode in the rule - All Rules will be Processed,56,280,true
EndDialog>Dialog3
SetDialogObjectFont>Dialog3,MSLABEL1,Gotthard,12,0,%textcolor%
SetDialogObjectFont>Dialog3,MSLABEL2,Arial,20,1,%linecolor%
Iffileexists>%settinsdir%\Mailsettings\emailnotice.ini,readini,skipreadini
Label>skipreadini
Let>RP=
Let>Sub=
Let>frad=
Let>fname=
Let>Body=%ProgramFolder%\error message for email body.txt
Let>Pass=
Let>Uid=
Let>MS=
Let>MF=
Let>AF=
Let>portnumb1=25
Let>saveatt=True
Let>sendaspdf=True
Let>CS=False
GoTo>reademaillist
Label>readini
ReadIniFile>%settinsdir%\Mailsettings\emailnotice.ini,BulkSettings,fromadd,frad
ReadIniFile>%settinsdir%\Mailsettings\emailnotice.ini,BulkSettings,Fromname,fname
ReadIniFile>%settinsdir%\Mailsettings\emailnotice.ini,BulkSettings,SMTPPASS,Pass
ReadIniFile>%settinsdir%\Mailsettings\emailnotice.ini,BulkSettings,smtpuid,Uid
ReadIniFile>%settinsdir%\Mailsettings\emailnotice.ini,BulkSettings,MailServer,MS
ReadIniFile>%settinsdir%\Mailsettings\emailnotice.ini,BulkSettings,Authrequired,Autreg
//ReadIniFile>%settinsdir%\Mailsettings\emailnotice.ini,BulkSettings,Showstatus,SStat
ReadIniFile>%settinsdir%\Mailsettings\emailnotice.ini,BulkSettings,STMPPort,portnumb1
ReadIniFile>%settinsdir%\Mailsettings\emailnotice.ini,BulkSettings,Subject,Sub
ReadIniFile>%settinsdir%\Mailsettings\emailnotice.ini,BulkSettings,Message File,Body
ReadIniFile>%settinsdir%\Mailsettings\emailnotice.ini,BulkSettings,Monitored Folder,MF
ReadIniFile>%settinsdir%\Mailsettings\emailnotice.ini,BulkSettings,Save File Attachment,saveatt
ReadIniFile>%settinsdir%\Mailsettings\emailnotice.ini,BulkSettings,Send as PDF,sendaspdf
ReadIniFile>%settinsdir%\Mailsettings\emailnotice.ini,BulkSettings,Scan Resolution,scanr
ReadIniFile>%settinsdir%\Mailsettings\emailnotice.ini,BulkSettings,Cover Page Paper,CP
ReadIniFile>%settinsdir%\Mailsettings\emailnotice.ini,BulkSettings,Auto Set Res and Paper,AD
ReadIniFile>%settinsdir%\Mailsettings\emailnotice.ini,BulkSettings,Custom Settings,CS
ReadIniFile>%settinsdir%\Mailsettings\emailnotice.ini,BulkSettings,Page Rotation,PR
ReadIniFile>%settinsdir%\Mailsettings\emailnotice.ini,BulkSettings,Apply Delivery Rules,APYR
ReadIniFile>%settinsdir%\Mailsettings\emailnotice.ini,BulkSettings,Archive Folder,AF
ReadIniFile>%settinsdir%\Mailsettings\emailnotice.ini,BulkSettings,Save in Archive,SA
If>%CP%=Letter
Let>Dialog22.CPPS.itemindex=0
Endif
If>%CP%=Legal
Let>Dialog22.CPPS.itemindex=1
Endif
If>%CP%=A4
Let>Dialog22.CPPS.itemindex=2
Endif
If>%PR%=0
Let>Dialog22.Rotfile.itemindex=0
Else
Let>Dialog22.Rotfile.itemindex=1
Endif
If>%scanr%=200
Let>Dialog22.SR.itemindex=0
Endif
If>%scanr%=300
Let>Dialog22.SR.itemindex=1
Endif
If>%scanr%=400
Let>Dialog22.SR.itemindex=2
Endif
Label>reademaillist
Dialog>Dialog22
Caption=Batch Scan to eMail Setup
Width=531
Height=610
Top=CENTER
Left=CENTER
Max=0
Min=0
Close=1
Resize=0
Image=%ProgramFolder%\images\setuptwo1.bmp,0,0,625,610,msImage1,0
Image=%ProgramFolder%\images\logo1.bmp,12,8,89,41,msImage2,0
Label=Setup Batch Scan to eMail,108,20,true
Label=___________________________________________________________________________________,0,30,true
Label=________________________________ Image Settings _______________________________,34,259,true
Label=________________________________ eMail Settings _______________________________,36,73,true
Label=_________________________________ Processing ________________________________,36,436,true
Edit=fromadd,107,103,143,%frad%
Edit=Fromname,337,101,163,%fname%
Edit=MailServer,107,126,143,%MS%
Edit=smtpuid,338,126,162,%Uid%
Edit=SMTPPASS,107,150,143,%Pass%
Edit=portnumb,337,149,26,%portnumb1%
Edit=emailsub,107,174,393,%Sub%
CheckBox=authrequired,SMTP Authentication,371,153,120,%Autreg%
Edit=Mailtxt,36,223,373,%Body%
Button=Body Text File,410,221,92,25,0
Edit=monfol,32,319,373,%MF%
Button=Monitored Folder,406,317,97,25,0
CheckBox=Autodet,Automatically Detect Page Size and Resolution,28,348,243,%AD%
ComboBox=SR,29,403,65,200%CRLF%300%CRLF%400
ComboBox=CPPS,118,403,65,Letter%CRLF%Legal%CRLF%A4
ComboBox=Rotfile,207,403,69,0%CRLF%Right 90
CheckBox=custset,Use Custom Page Settings,326,348,155,%CS%
Label=From Address,38,107,true
CheckBox=pdfout,Convert Attachment to PDF,29,474,153,%sendaspdf%
CheckBox=savepdf,Save Attachment with Log File,29,457,172,%saveatt%
Button=Test Mail,242,545,67,25,1
Button=Help,308,545,66,25,5
Button=Exit,373,545,66,25,2
Button=Save,438,545,65,25,7
Button=Setup Delivery Rules,235,462,126,25,8
CheckBox=applyrules,Apply Delivery Rules,370,466,119,%APYR%
CheckBox=saveall,Save All Incoming Files in Archive,155,496,182,%SA%
Edit=archfold,27,515,373,%AF%
Button=Archive Folder,402,513,97,25,0
Label=From Name,278,103,true
Label=SMTP User ID,263,130,true
Label=SMTP Password,23,154,true
Label=Mail Server,49,128,true
Label=Copyright© eDocFile Inc. 2004-2009,16,554,true
Label=Port,313,154,true
Label=Subject,66,178,true
Label=eMail Message Body Text File - must be plain text only,134,206,true
Label=Input Folder to be Monitored for Tif Images scanned at either 200%removecomma% 300 or 400 dpi,53,281,true
Label=Image DPI,32,387,true
Label=Page Size,126,387,true
Label= **** For Best Results use G4 Compression at 300 dpi ****,116,298,true
Label=Rotation,220,387,true
Label=See Help or Contact eDocfile,328,366,true
Label=_______________ Manual Settings _____________,32,368,true
Label=for assistance in setting up a,330,380,true
Label=Custom Page Settings file,337,394,true
FileBrowse=Body Text File,Mailtxt,Text Files|*.txt|
FileBrowse=Monitored Folder,monfol,|*.*|,dir
FileBrowse=Archive Folder,archfold,|*.*|,dir
EndDialog>Dialog22
SetDialogObjectFont>Dialog22,MSLABEL1,Gotthard,12,0,%textcolor%
SetDialogObjectFont>Dialog22,MSLABEL2,Arial,20,1,%linecolor%
/*
SetDialogObjectFont>Dialog22,MSLABEL3,Arial,8,1,0
SetDialogObjectFont>Dialog22,MSLABEL4,Arial,8,1,0
SetDialogObjectFont>Dialog22,MSLABEL5,Arial,8,1,0
*/
Show>Dialog22
Label>MainLoop2
GetDialogAction>Dialog22,result
If>result=2,EOF
If>result=7,saveit
If>result=1,testit
If>result=5,DisplayHelp
If>result=8,setuprules
Wait>0.1
Goto>MainLoop2
SRT>DisplayHelp
ResetDialogAction>Dialog22
ChangeDirectory>%ProgramFolder%
Let>RP_WAIT=0
Let>RP_WINDOWMODE=3
RunProgram>hh.exe -mapid 40 ms-its:%ProgramFolder%\Batch Scan to eMail.chm
END>DisplayHelp
SRT>setuprules
IfFileExists>%AppData%\%company%\Batch Scan to Email\rules.txt
ReadFile>%AppData%\%company%\Batch Scan to Email\rules.txt,rules
Else
Let>rules=
Endif
ResetDialogAction>Dialog22
CloseDialog>Dialog22
Show>Dialog3,res
Label>rulesloop
If>res=2,returntomenu
If>res=1,writerules
Goto>rulesloop
Label>writerules
Let>Dialog3.rulebox=%Dialog3.rulebox%
ResetDialogAction>Dialog3
DeleteFile>%AppData%\%company%\Batch Scan to Email\rules.txt
WriteLn>%AppData%\%company%\Batch Scan to Email\rules.txt,result,%Dialog3.rulebox%
Label>returntomenu
CloseDialog>Dialog3
Show>Dialog22
END>setuprules
Label>saveit
GoSub>writesettings
Endif
Goto>EOF
SRT>testit
//GoSub>writesettings
GoSub>testmail
End>testit
SRT>writesettings
Let>CustomSettings=%Dialog22.custset%
If>%Dialog22.custset%=True
IfFileExists>%ProgramFolder%\CPSSettings\custom.ini,havecustomsettingsfile
MDL>There is no Custom Settings File%CRLF%%CRLF%%ProgramFolder%\CPSSettings\custom.ini%CRLF%%CRLF%Until it is created the Custom Settings Option cannot be used. See Help or Contact eDocfile at 813-413-5599 or [email protected]%CRLF%%CRLF%The option will remain unavailable.
Let>CustomSettings=False
Label>havecustomsettingsfile
Endif
IfDirExists>%Dialog22.monfol%,haveinputdir
Let>RP_WAIT=1
Let>RP_WINDOWMODE=0
RunProgram>cmd /c MD "%Dialog22.monfol%"
Label>haveinputdir
DeleteFile>%settinsdir%\Mailsettings\emailnotice.ini
WriteLn>%settinsdir%\Mailsettings\emailnotice.ini,result,[BulkSettings]
WriteLn>%settinsdir%\Mailsettings\emailnotice.ini,result,fromadd=%Dialog22.fromadd%
WriteLn>%settinsdir%\Mailsettings\emailnotice.ini,result,Fromname=%Dialog22.Fromname%
WriteLn>%settinsdir%\Mailsettings\emailnotice.ini,result,SMTPPASS=%Dialog22.SMTPPASS%
WriteLn>%settinsdir%\Mailsettings\emailnotice.ini,result,smtpuid=%Dialog22.smtpuid%
WriteLn>%settinsdir%\Mailsettings\emailnotice.ini,result,MailServer=%Dialog22.MailServer%
WriteLn>%settinsdir%\Mailsettings\emailnotice.ini,result,Authrequired=%Dialog22.authrequired%
// WriteLn>%settinsdir%\Mailsettings\emailnotice.ini,result,Showstatus=%Dialog22.showstatus%
WriteLn>%settinsdir%\Mailsettings\emailnotice.ini,result,STMPPort=%Dialog22.portnumb%
WriteLn>%settinsdir%\Mailsettings\emailnotice.ini,result,Subject=%Dialog22.emailsub%
WriteLn>%settinsdir%\Mailsettings\emailnotice.ini,result,Message File=%Dialog22.Mailtxt%
WriteLn>%settinsdir%\Mailsettings\emailnotice.ini,result,Monitored Folder=%Dialog22.monfol%
WriteLn>%settinsdir%\Mailsettings\emailnotice.ini,result,Save File Attachment=%Dialog22.savepdf%
WriteLn>%settinsdir%\Mailsettings\emailnotice.ini,result,Send as PDF=%Dialog22.pdfout%
WriteLn>%settinsdir%\Mailsettings\emailnotice.ini,result,Scan Resolution=%Dialog22.SR%
WriteLn>%settinsdir%\Mailsettings\emailnotice.ini,result,Cover Page Paper=%Dialog22.CPPS%
WriteLn>%settinsdir%\Mailsettings\emailnotice.ini,result,Auto Set Res and Paper=%Dialog22.Autodet%
WriteLn>%settinsdir%\Mailsettings\emailnotice.ini,result,Custom Settings=%CustomSettings%
WriteLn>%settinsdir%\Mailsettings\emailnotice.ini,result,Page Rotation=%Dialog22.Rotfile%
WriteLn>%settinsdir%\Mailsettings\emailnotice.ini,result,Apply Delivery Rules=%Dialog22.applyrules%
WriteLn>%settinsdir%\Mailsettings\emailnotice.ini,result,Archive Folder=%Dialog22.archfold%
WriteLn>%settinsdir%\Mailsettings\emailnotice.ini,result,Save in Archive=%Dialog22.saveall%
saveall
End>writesettings
Label>EOF
ChangeDirectory>%ProgramFolder%
Let>RP_WAIT=0
Let>RP_WINDOWMODE=1
RunProgram>BSTEMMainMenu.exe
Exit>0
SRT>testmail
//Reset All to blank before Test
Let>fromadd=
Let>Fromname=
Let>Pass=
Let>Uid=
Let>MS=
Let>Autreg=
Let>Sub=
Let>Body=
Let>SMTP_AUTH=
Let>SMTP_USERID=
Let>SMTP_PASSWORD=
Let>fromadd=%Dialog22.fromadd%
Let>Fromname=%Dialog22.Fromname%
Let>Pass=%Dialog22.SMTPPASS%
Let>Uid=%Dialog22.smtpuid%
Let>MS=%Dialog22.MailServer%
Let>Autreg=%Dialog22.authrequired%
Let>Sub=%Dialog22.emailsub%
Let>Body=%Dialog22.Mailtxt%
Let>SMTP_PORT=%Dialog22.portnumb%
If>%Autreg%=True,Secure,notSecure
Label>Secure
Let>SMTP_AUTH=1
Let>SMTP_USERID=%Uid%
Let>SMTP_PASSWORD=%Pass%
Label>notSecure
Let>SENDMAIL_STATUS=1
Let>attachedfile=%newpdf%
IfFileExists>%Body%
ReadFile>%Body%,mbody
Else
ReadFile>error message for email body.txt,mbody
StringReplace>%mbody%,%removecomma%,,mbody
Endif
Let>FT=%frad%
//SMTPSendMail>recipients,server,from_address,from_name,subject,body,attachments
//MDL>%fromadd%,%MS%,%fromadd%,%Fromname%,%Sub%,%mbody%
SMTPSendMail>%fromadd%,%MS%,%fromadd%,%Fromname%,%Sub%,%mbody%
POS>250,%SMTP_RESULT%,1,sendresult
If>%sendresult%=1
MDL>Mail was sent sucessfully - The Results were %SMTP_RESULT%%CRLF%Please check your inbox.
Else
MDL>Mail failed - The Results were %SMTP_RESULT%
Endif
ResetDialogAction>Dialog22
END>testmail
I really don't get this, as I have rebuilt the install, everything I can think of.
// COMPILE_OPTS|C:\Program Files\edocfile\Batch Scan to Email\Setup Barcode Mail Sender.exe|C:\Documents and Settings\Keith Passaur\My Documents\Icons\pc.ico|CONSOLE=0|INCLUDES=1| /LOGFILE=\dev\nul /NOSYSTRAY /NOSTOPKEY
Let>APP_TITLE=Setup Barcode Mail Sender
RegistryReadKey>HKEY_LOCAL_MACHINE,SOFTWARE\Batch Scan to Email,AppFolder,ProgramFolder
Separate>%ProgramFolder%,\,pf_array
Let>company=PF_array_3
Let>removecomma=,
VBSTART
Function GetFolder(Folder)
Set WShell = CreateObject("WScript.Shell")
GetFolder = WShell.SpecialFolders(Folder)
Set WShell = Nothing
End Function
VBEND
VBEval>GetFolder("AppData"),AppData
Let>settinsdir=%AppData%\%company%\Batch Scan to Email
IfDirExists>%settinsdir%,haveappdir
Let>RP_WAIT=1
Let>RP_WINDOWMODE=0
RunProgram>cmd /c MD "%settinsdir%"
Label>haveappdir
IfFileExists>%settinsdir%\javadetect.exe,reinstalled
Copyfile>%ProgramFolder%\javadetect.exe,%settinsdir%
Label>reinstalled
Let>RP_WAIT=1
Let>RP_WINDOWMODE=0
ChangeDirectory>%settinsdir%
RunProgram>javadetect.exe
ReadLn>%settinsdir%\testjava.txt,1,javainstalled
If>javainstalled=no
MDL>This Program requires Java to Merge Files - it can be downloaded at http://www.java.com
Ask>Would you like to download Java now?,dj
If>dj=YES
ExecuteFile>Http:\\www.java.com
Exit>0
ELSE
MDL>The program cannot be run without Java - Setup will now exit.
Endif
Exit>0
Endif
ReadIniFile>%ProgramFolder%\Colors.ini,Colors,Line,linecolor
ReadIniFile>%ProgramFolder%\Colors.ini,Colors,Text,textcolor
IfDirExists>%settinsdir%\Mailsettings,havemaildir
Let>RP_WAIT=1
Let>RP_WINDOWMODE=0
RunProgram>cmd /c MD "%settinsdir%\Mailsettings"
Label>havemaildir
IfDirExists>%settinsdir%\logfiles,havetempdirforlog
Let>RP_WAIT=1
Let>RP_WINDOWMODE=0
RunProgram>cmd /c MD "%settinsdir%\logfiles"
Label>havetempdirforlog
IfDirExists>%settinsdir%\images,haveimagesdir
Let>RP_WAIT=1
Let>RP_WINDOWMODE=0
RunProgram>cmd /c MD "%settinsdir%\images"
Label>haveimagesdir
IfDirExists>%settinsdir%\tempprocess,havetempprocessidr
Let>RP_WAIT=1
Let>RP_WINDOWMODE=0
RunProgram>cmd /c MD "%settinsdir%\tempprocess"
Label>havetempprocessidr
IfDirExists>%settinsdir%\tempin,havetempin
Let>RP_WAIT=1
Let>RP_WINDOWMODE=0
RunProgram>cmd /c MD "%settinsdir%\tempin"
Label>havetempin
Dialog>Dialog3
Caption=Setup Rules
Width=800
Height=588
Top=CENTER
Left=CENTER
Max=0
Min=0
Close=1
Resize=0
Image=%ProgramFolder%\images\Setuprules.bmp,0,0,793,569,msImage1,0
Image=%ProgramFolder%\images\logo1.bmp,12,8,89,41,msImage2,0
Label=Setup Delivery Rules,255,20,true
Label=___________________________________________________________________________________,0,30,true
Memo=rulebox,20,83,749,150,%rules%
Label=Example One: Send as an eMail Attachment,23,372,true
Label=No Matching Rule will send the file as an attachment by default,87,348,true
Button=Help,619,512,75,25,5
Button=Save,545,512,75,25,1
Button=Exit,693,512,75,25,2
Label=Example Two: Send a Link to a file on the Network,23,409,true
Label=[email protected]=Z:\Network Shared Files\Joe=\\x-series\Network Shared Files\Joe,87,422,true
Label=or,309,435,true
Label=[email protected]=\\x-series\Network Shared Files\Joe=\\x-series\Network Shared Files\Joe,87,448,true
Label=Example Three: Send to an FTP Site,23,471,true
Label=[email protected]=ftp://www.edocfile.info/Joe=http://www. ... 7,485,true
Label=Example Four: No mail and send to a shared folder on the Network,23,506,true
Label=[email protected]=\\x-series\Network Shared Files=NOMAIL,87,519,true
Label=Copyright© eDocFile Inc. 2004-2009,565,538,true
Label=Format of a Rule,336,294,true
Label=Rule for delivery to an FTP Site - eMail Address=FTP Path=UNC Path=User Name=Password=Port,87,317,true
Label=Rule for delivery to an Network Folder - eMail Address=FTP Path=UNC Path,87,333,true
Label=Enter Nothing it will be sent as an attachment by default,87,385,true
Label=All Rules are Case Sensitive - If no message is to be sent subsitute "NOMAIL" for the UNC Path - The software will match the first barcode eMail,56,248,true
Label=address with the cover page the delivery eMail address can be to mulitple addresses separated by a comma; however the match is the first,56,264,true
Label=barcode in the rule - All Rules will be Processed,56,280,true
EndDialog>Dialog3
SetDialogObjectFont>Dialog3,MSLABEL1,Gotthard,12,0,%textcolor%
SetDialogObjectFont>Dialog3,MSLABEL2,Arial,20,1,%linecolor%
Iffileexists>%settinsdir%\Mailsettings\emailnotice.ini,readini,skipreadini
Label>skipreadini
Let>RP=
Let>Sub=
Let>frad=
Let>fname=
Let>Body=%ProgramFolder%\error message for email body.txt
Let>Pass=
Let>Uid=
Let>MS=
Let>MF=
Let>AF=
Let>portnumb1=25
Let>saveatt=True
Let>sendaspdf=True
Let>CS=False
GoTo>reademaillist
Label>readini
ReadIniFile>%settinsdir%\Mailsettings\emailnotice.ini,BulkSettings,fromadd,frad
ReadIniFile>%settinsdir%\Mailsettings\emailnotice.ini,BulkSettings,Fromname,fname
ReadIniFile>%settinsdir%\Mailsettings\emailnotice.ini,BulkSettings,SMTPPASS,Pass
ReadIniFile>%settinsdir%\Mailsettings\emailnotice.ini,BulkSettings,smtpuid,Uid
ReadIniFile>%settinsdir%\Mailsettings\emailnotice.ini,BulkSettings,MailServer,MS
ReadIniFile>%settinsdir%\Mailsettings\emailnotice.ini,BulkSettings,Authrequired,Autreg
//ReadIniFile>%settinsdir%\Mailsettings\emailnotice.ini,BulkSettings,Showstatus,SStat
ReadIniFile>%settinsdir%\Mailsettings\emailnotice.ini,BulkSettings,STMPPort,portnumb1
ReadIniFile>%settinsdir%\Mailsettings\emailnotice.ini,BulkSettings,Subject,Sub
ReadIniFile>%settinsdir%\Mailsettings\emailnotice.ini,BulkSettings,Message File,Body
ReadIniFile>%settinsdir%\Mailsettings\emailnotice.ini,BulkSettings,Monitored Folder,MF
ReadIniFile>%settinsdir%\Mailsettings\emailnotice.ini,BulkSettings,Save File Attachment,saveatt
ReadIniFile>%settinsdir%\Mailsettings\emailnotice.ini,BulkSettings,Send as PDF,sendaspdf
ReadIniFile>%settinsdir%\Mailsettings\emailnotice.ini,BulkSettings,Scan Resolution,scanr
ReadIniFile>%settinsdir%\Mailsettings\emailnotice.ini,BulkSettings,Cover Page Paper,CP
ReadIniFile>%settinsdir%\Mailsettings\emailnotice.ini,BulkSettings,Auto Set Res and Paper,AD
ReadIniFile>%settinsdir%\Mailsettings\emailnotice.ini,BulkSettings,Custom Settings,CS
ReadIniFile>%settinsdir%\Mailsettings\emailnotice.ini,BulkSettings,Page Rotation,PR
ReadIniFile>%settinsdir%\Mailsettings\emailnotice.ini,BulkSettings,Apply Delivery Rules,APYR
ReadIniFile>%settinsdir%\Mailsettings\emailnotice.ini,BulkSettings,Archive Folder,AF
ReadIniFile>%settinsdir%\Mailsettings\emailnotice.ini,BulkSettings,Save in Archive,SA
If>%CP%=Letter
Let>Dialog22.CPPS.itemindex=0
Endif
If>%CP%=Legal
Let>Dialog22.CPPS.itemindex=1
Endif
If>%CP%=A4
Let>Dialog22.CPPS.itemindex=2
Endif
If>%PR%=0
Let>Dialog22.Rotfile.itemindex=0
Else
Let>Dialog22.Rotfile.itemindex=1
Endif
If>%scanr%=200
Let>Dialog22.SR.itemindex=0
Endif
If>%scanr%=300
Let>Dialog22.SR.itemindex=1
Endif
If>%scanr%=400
Let>Dialog22.SR.itemindex=2
Endif
Label>reademaillist
Dialog>Dialog22
Caption=Batch Scan to eMail Setup
Width=531
Height=610
Top=CENTER
Left=CENTER
Max=0
Min=0
Close=1
Resize=0
Image=%ProgramFolder%\images\setuptwo1.bmp,0,0,625,610,msImage1,0
Image=%ProgramFolder%\images\logo1.bmp,12,8,89,41,msImage2,0
Label=Setup Batch Scan to eMail,108,20,true
Label=___________________________________________________________________________________,0,30,true
Label=________________________________ Image Settings _______________________________,34,259,true
Label=________________________________ eMail Settings _______________________________,36,73,true
Label=_________________________________ Processing ________________________________,36,436,true
Edit=fromadd,107,103,143,%frad%
Edit=Fromname,337,101,163,%fname%
Edit=MailServer,107,126,143,%MS%
Edit=smtpuid,338,126,162,%Uid%
Edit=SMTPPASS,107,150,143,%Pass%
Edit=portnumb,337,149,26,%portnumb1%
Edit=emailsub,107,174,393,%Sub%
CheckBox=authrequired,SMTP Authentication,371,153,120,%Autreg%
Edit=Mailtxt,36,223,373,%Body%
Button=Body Text File,410,221,92,25,0
Edit=monfol,32,319,373,%MF%
Button=Monitored Folder,406,317,97,25,0
CheckBox=Autodet,Automatically Detect Page Size and Resolution,28,348,243,%AD%
ComboBox=SR,29,403,65,200%CRLF%300%CRLF%400
ComboBox=CPPS,118,403,65,Letter%CRLF%Legal%CRLF%A4
ComboBox=Rotfile,207,403,69,0%CRLF%Right 90
CheckBox=custset,Use Custom Page Settings,326,348,155,%CS%
Label=From Address,38,107,true
CheckBox=pdfout,Convert Attachment to PDF,29,474,153,%sendaspdf%
CheckBox=savepdf,Save Attachment with Log File,29,457,172,%saveatt%
Button=Test Mail,242,545,67,25,1
Button=Help,308,545,66,25,5
Button=Exit,373,545,66,25,2
Button=Save,438,545,65,25,7
Button=Setup Delivery Rules,235,462,126,25,8
CheckBox=applyrules,Apply Delivery Rules,370,466,119,%APYR%
CheckBox=saveall,Save All Incoming Files in Archive,155,496,182,%SA%
Edit=archfold,27,515,373,%AF%
Button=Archive Folder,402,513,97,25,0
Label=From Name,278,103,true
Label=SMTP User ID,263,130,true
Label=SMTP Password,23,154,true
Label=Mail Server,49,128,true
Label=Copyright© eDocFile Inc. 2004-2009,16,554,true
Label=Port,313,154,true
Label=Subject,66,178,true
Label=eMail Message Body Text File - must be plain text only,134,206,true
Label=Input Folder to be Monitored for Tif Images scanned at either 200%removecomma% 300 or 400 dpi,53,281,true
Label=Image DPI,32,387,true
Label=Page Size,126,387,true
Label= **** For Best Results use G4 Compression at 300 dpi ****,116,298,true
Label=Rotation,220,387,true
Label=See Help or Contact eDocfile,328,366,true
Label=_______________ Manual Settings _____________,32,368,true
Label=for assistance in setting up a,330,380,true
Label=Custom Page Settings file,337,394,true
FileBrowse=Body Text File,Mailtxt,Text Files|*.txt|
FileBrowse=Monitored Folder,monfol,|*.*|,dir
FileBrowse=Archive Folder,archfold,|*.*|,dir
EndDialog>Dialog22
SetDialogObjectFont>Dialog22,MSLABEL1,Gotthard,12,0,%textcolor%
SetDialogObjectFont>Dialog22,MSLABEL2,Arial,20,1,%linecolor%
/*
SetDialogObjectFont>Dialog22,MSLABEL3,Arial,8,1,0
SetDialogObjectFont>Dialog22,MSLABEL4,Arial,8,1,0
SetDialogObjectFont>Dialog22,MSLABEL5,Arial,8,1,0
*/
Show>Dialog22
Label>MainLoop2
GetDialogAction>Dialog22,result
If>result=2,EOF
If>result=7,saveit
If>result=1,testit
If>result=5,DisplayHelp
If>result=8,setuprules
Wait>0.1
Goto>MainLoop2
SRT>DisplayHelp
ResetDialogAction>Dialog22
ChangeDirectory>%ProgramFolder%
Let>RP_WAIT=0
Let>RP_WINDOWMODE=3
RunProgram>hh.exe -mapid 40 ms-its:%ProgramFolder%\Batch Scan to eMail.chm
END>DisplayHelp
SRT>setuprules
IfFileExists>%AppData%\%company%\Batch Scan to Email\rules.txt
ReadFile>%AppData%\%company%\Batch Scan to Email\rules.txt,rules
Else
Let>rules=
Endif
ResetDialogAction>Dialog22
CloseDialog>Dialog22
Show>Dialog3,res
Label>rulesloop
If>res=2,returntomenu
If>res=1,writerules
Goto>rulesloop
Label>writerules
Let>Dialog3.rulebox=%Dialog3.rulebox%
ResetDialogAction>Dialog3
DeleteFile>%AppData%\%company%\Batch Scan to Email\rules.txt
WriteLn>%AppData%\%company%\Batch Scan to Email\rules.txt,result,%Dialog3.rulebox%
Label>returntomenu
CloseDialog>Dialog3
Show>Dialog22
END>setuprules
Label>saveit
GoSub>writesettings
Endif
Goto>EOF
SRT>testit
//GoSub>writesettings
GoSub>testmail
End>testit
SRT>writesettings
Let>CustomSettings=%Dialog22.custset%
If>%Dialog22.custset%=True
IfFileExists>%ProgramFolder%\CPSSettings\custom.ini,havecustomsettingsfile
MDL>There is no Custom Settings File%CRLF%%CRLF%%ProgramFolder%\CPSSettings\custom.ini%CRLF%%CRLF%Until it is created the Custom Settings Option cannot be used. See Help or Contact eDocfile at 813-413-5599 or [email protected]%CRLF%%CRLF%The option will remain unavailable.
Let>CustomSettings=False
Label>havecustomsettingsfile
Endif
IfDirExists>%Dialog22.monfol%,haveinputdir
Let>RP_WAIT=1
Let>RP_WINDOWMODE=0
RunProgram>cmd /c MD "%Dialog22.monfol%"
Label>haveinputdir
DeleteFile>%settinsdir%\Mailsettings\emailnotice.ini
WriteLn>%settinsdir%\Mailsettings\emailnotice.ini,result,[BulkSettings]
WriteLn>%settinsdir%\Mailsettings\emailnotice.ini,result,fromadd=%Dialog22.fromadd%
WriteLn>%settinsdir%\Mailsettings\emailnotice.ini,result,Fromname=%Dialog22.Fromname%
WriteLn>%settinsdir%\Mailsettings\emailnotice.ini,result,SMTPPASS=%Dialog22.SMTPPASS%
WriteLn>%settinsdir%\Mailsettings\emailnotice.ini,result,smtpuid=%Dialog22.smtpuid%
WriteLn>%settinsdir%\Mailsettings\emailnotice.ini,result,MailServer=%Dialog22.MailServer%
WriteLn>%settinsdir%\Mailsettings\emailnotice.ini,result,Authrequired=%Dialog22.authrequired%
// WriteLn>%settinsdir%\Mailsettings\emailnotice.ini,result,Showstatus=%Dialog22.showstatus%
WriteLn>%settinsdir%\Mailsettings\emailnotice.ini,result,STMPPort=%Dialog22.portnumb%
WriteLn>%settinsdir%\Mailsettings\emailnotice.ini,result,Subject=%Dialog22.emailsub%
WriteLn>%settinsdir%\Mailsettings\emailnotice.ini,result,Message File=%Dialog22.Mailtxt%
WriteLn>%settinsdir%\Mailsettings\emailnotice.ini,result,Monitored Folder=%Dialog22.monfol%
WriteLn>%settinsdir%\Mailsettings\emailnotice.ini,result,Save File Attachment=%Dialog22.savepdf%
WriteLn>%settinsdir%\Mailsettings\emailnotice.ini,result,Send as PDF=%Dialog22.pdfout%
WriteLn>%settinsdir%\Mailsettings\emailnotice.ini,result,Scan Resolution=%Dialog22.SR%
WriteLn>%settinsdir%\Mailsettings\emailnotice.ini,result,Cover Page Paper=%Dialog22.CPPS%
WriteLn>%settinsdir%\Mailsettings\emailnotice.ini,result,Auto Set Res and Paper=%Dialog22.Autodet%
WriteLn>%settinsdir%\Mailsettings\emailnotice.ini,result,Custom Settings=%CustomSettings%
WriteLn>%settinsdir%\Mailsettings\emailnotice.ini,result,Page Rotation=%Dialog22.Rotfile%
WriteLn>%settinsdir%\Mailsettings\emailnotice.ini,result,Apply Delivery Rules=%Dialog22.applyrules%
WriteLn>%settinsdir%\Mailsettings\emailnotice.ini,result,Archive Folder=%Dialog22.archfold%
WriteLn>%settinsdir%\Mailsettings\emailnotice.ini,result,Save in Archive=%Dialog22.saveall%
saveall
End>writesettings
Label>EOF
ChangeDirectory>%ProgramFolder%
Let>RP_WAIT=0
Let>RP_WINDOWMODE=1
RunProgram>BSTEMMainMenu.exe
Exit>0
SRT>testmail
//Reset All to blank before Test
Let>fromadd=
Let>Fromname=
Let>Pass=
Let>Uid=
Let>MS=
Let>Autreg=
Let>Sub=
Let>Body=
Let>SMTP_AUTH=
Let>SMTP_USERID=
Let>SMTP_PASSWORD=
Let>fromadd=%Dialog22.fromadd%
Let>Fromname=%Dialog22.Fromname%
Let>Pass=%Dialog22.SMTPPASS%
Let>Uid=%Dialog22.smtpuid%
Let>MS=%Dialog22.MailServer%
Let>Autreg=%Dialog22.authrequired%
Let>Sub=%Dialog22.emailsub%
Let>Body=%Dialog22.Mailtxt%
Let>SMTP_PORT=%Dialog22.portnumb%
If>%Autreg%=True,Secure,notSecure
Label>Secure
Let>SMTP_AUTH=1
Let>SMTP_USERID=%Uid%
Let>SMTP_PASSWORD=%Pass%
Label>notSecure
Let>SENDMAIL_STATUS=1
Let>attachedfile=%newpdf%
IfFileExists>%Body%
ReadFile>%Body%,mbody
Else
ReadFile>error message for email body.txt,mbody
StringReplace>%mbody%,%removecomma%,,mbody
Endif
Let>FT=%frad%
//SMTPSendMail>recipients,server,from_address,from_name,subject,body,attachments
//MDL>%fromadd%,%MS%,%fromadd%,%Fromname%,%Sub%,%mbody%
SMTPSendMail>%fromadd%,%MS%,%fromadd%,%Fromname%,%Sub%,%mbody%
POS>250,%SMTP_RESULT%,1,sendresult
If>%sendresult%=1
MDL>Mail was sent sucessfully - The Results were %SMTP_RESULT%%CRLF%Please check your inbox.
Else
MDL>Mail failed - The Results were %SMTP_RESULT%
Endif
ResetDialogAction>Dialog22
END>testmail
- Bob Hansen
- Automation Wizard
- Posts: 2475
- Joined: Tue Sep 24, 2002 3:47 am
- Location: Salem, New Hampshire, US
- Contact:
I am guessing we did not really need all of that, only need the section giving a problem. Sorry I was not clear about that. Is this the relevant code that fails?
You said
"This portion fails as well....." How does it fail? You are using SMTPSendMail, what is the code that is being returned? What is %SMTP_RESULT%
What are these values ( %fromadd%,%MS%,%fromadd%,%Fromname%,%Sub%,%mbody% ) just before executing the email command line? Put in a BreakPoint and look at those values in the WatchList.
Code: Select all
SMTPSendMail>%fromadd%,%MS%,%fromadd%,%Fromname%,%Sub%,%mbody%
POS>250,%SMTP_RESULT%,1,sendresult
If>%sendresult%=1
MDL>Mail was sent sucessfully - The Results were %SMTP_RESULT%%CRLF%Please check your inbox.
Else
MDL>Mail failed - The Results were %SMTP_RESULT%
Endif
ResetDialogAction>Dialog22
END>testmail
"When the script fails......" where does it fail? On whiich line? Have you single stepped through the code. Have you looked at a log file to see how it is being processed?When the script runs it gives me a failure notice and ......
The portion of the script that uses mail, just checks the mail settings the actual mail is handled with a command line utility that sends mime mail. This portion fails as well on the Vista Machine ......
"This portion fails as well....." How does it fail? You are using SMTPSendMail, what is the code that is being returned? What is %SMTP_RESULT%
What are these values ( %fromadd%,%MS%,%fromadd%,%Fromname%,%Sub%,%mbody% ) just before executing the email command line? Put in a BreakPoint and look at those values in the WatchList.
Hope this was helpful..................good luck,
Bob
A humble man and PROUD of it!
Bob
A humble man and PROUD of it!
Permissions elevation?
Hi kpassaur,
Are you logged in with administrator permissions on both Vista machines? Vista is more fussy. Any other differences? Are they sending to the same recipient?
If you set a breakpoint just prior to sending the email, are there any errors? Any setup that failed to occur with or without error messages?
If all looks good in the setup, what happens when you resume the script?
If all looks good in the setup, what happens if you stop the script and just send the email with the attachments?
If it is still failing, what if you send the email without the attachments?
Good luck and let us know what it turned out to be.
Gale
Are you logged in with administrator permissions on both Vista machines? Vista is more fussy. Any other differences? Are they sending to the same recipient?
If you set a breakpoint just prior to sending the email, are there any errors? Any setup that failed to occur with or without error messages?
If all looks good in the setup, what happens when you resume the script?
If all looks good in the setup, what happens if you stop the script and just send the email with the attachments?
If it is still failing, what if you send the email without the attachments?
Good luck and let us know what it turned out to be.
Gale
Vista
I am either gettting closer or futher from a solution.
As mentioned the script works so stepping through it does not really help me. What happens is it will only work on a Vista machine where UCA is disabled or if I manually go into each executable and change the properties and set them to "Run as an Administrator".
Saying that please keep in mind that it is doing this on two out of three Vista Machines. (I only have three for testing.) The security settings are all the same, on each machine.
The one machine where it works also has MS installed. The others do not.
I believe it has to do with the mail portion of the script as on one test I set this script manually to run as an administrator and it ran and then I recieved a failure when the program itself ran. The failure mentioned the command line progam that sends the mail. I changed that portion to run as an administrator and it ran. So, it appears that Vista is blocking the mail unless it is manually set to Run as an Administrator. (On other posts - not on this forum - there has been mention of Vista blocking ports)
Now is where it gets really screwy. The script that calls this up (compiled MS exe) prompts the user to Allow this program to run each time when it loads. The script is just a dialog that allows the other scripts to be called. It does not do it on any other of my other scripts. Each of these scripts are virtually the same as far as the menu that selects them.
So I thought it was the install, so I rebuilt it and have the same issue. I was thinking that (however wrong I may be) when the installer places the files in the Programs folder it was adding some settings that allow it to be run. Anyway that failed to correct it.
Next, I browsed to each of the compiled exe's. right clicked and set them to run as administrator. Naturally the progam ran as designed. So, it has to do with permissions. So, I ran the uninstall and removed manually all files and folders the program creates. Ran a registry cleaner and then reinstalled it and it worked on one try, not on another. Please keep in mind these are pretty clean Vista Machines. It is as if after changing the permissions to run as an administrator when you remove the software, reboot, and reinstall it the permissons are what they were set to before. (however when you view them they are unchecked).
When I say clean Vista Machine, one has nothing installed on it, just Vista, the other is actually my daughters and it has Office, Photo Shop, and Acrobat that's it. The third Vista machine (the one where it works) has, MS, Office, Acrobat Professional, and scripts that I have compiled and tested.
So it pretty much is, how do you allow a compiled script to run from program files in Vista with out having to manually change the security settings or disabling UAC?
As mentioned the script works so stepping through it does not really help me. What happens is it will only work on a Vista machine where UCA is disabled or if I manually go into each executable and change the properties and set them to "Run as an Administrator".
Saying that please keep in mind that it is doing this on two out of three Vista Machines. (I only have three for testing.) The security settings are all the same, on each machine.
The one machine where it works also has MS installed. The others do not.
I believe it has to do with the mail portion of the script as on one test I set this script manually to run as an administrator and it ran and then I recieved a failure when the program itself ran. The failure mentioned the command line progam that sends the mail. I changed that portion to run as an administrator and it ran. So, it appears that Vista is blocking the mail unless it is manually set to Run as an Administrator. (On other posts - not on this forum - there has been mention of Vista blocking ports)
Now is where it gets really screwy. The script that calls this up (compiled MS exe) prompts the user to Allow this program to run each time when it loads. The script is just a dialog that allows the other scripts to be called. It does not do it on any other of my other scripts. Each of these scripts are virtually the same as far as the menu that selects them.
So I thought it was the install, so I rebuilt it and have the same issue. I was thinking that (however wrong I may be) when the installer places the files in the Programs folder it was adding some settings that allow it to be run. Anyway that failed to correct it.
Next, I browsed to each of the compiled exe's. right clicked and set them to run as administrator. Naturally the progam ran as designed. So, it has to do with permissions. So, I ran the uninstall and removed manually all files and folders the program creates. Ran a registry cleaner and then reinstalled it and it worked on one try, not on another. Please keep in mind these are pretty clean Vista Machines. It is as if after changing the permissions to run as an administrator when you remove the software, reboot, and reinstall it the permissons are what they were set to before. (however when you view them they are unchecked).
When I say clean Vista Machine, one has nothing installed on it, just Vista, the other is actually my daughters and it has Office, Photo Shop, and Acrobat that's it. The third Vista machine (the one where it works) has, MS, Office, Acrobat Professional, and scripts that I have compiled and tested.
So it pretty much is, how do you allow a compiled script to run from program files in Vista with out having to manually change the security settings or disabling UAC?
Vista and Mail
More testing and the end results appears (perhaps not a fact) that you cannot run a command line program in Vista that accesses mail without manually giving the program administrative rights or turning off UAC.
ShellRunas
You probably already tried this:
http://technet.microsoft.com/en-us/sysi ... 00361.aspx
It does not meet your needs?
Gale
http://technet.microsoft.com/en-us/sysi ... 00361.aspx
It does not meet your needs?
Gale
Not tried it
I was unaware of it and it looks like it may work. The key is to launch it as an administrator, and not have the user go into each exe and change the properties.
Thanks, I will give it a go.
Thanks, I will give it a go.