Better method which doesn't expose the password:

http://www.autoitscript.com/autoit3/...ions/RunAs.htm


"Donald MacKenzie" wrote:

> Hello again. I have another program that need to be lauched by a batchfile
> however it needs to be run as a different user
>
> here we go.
>
> batchfile name is: mount-truecrypt.bat
> inside has this:
>
> REM mounting truecypt volumes !! do not change !!
> "c:\program files\truecrypt\truecrypt.exe" /volume
> "\Device\Harddisk1\Partition1" /letter F /favorites /p newutopianewutopia10
> /q
> "c:\program files\truecrypt\truecrypt.exe" /volume
> "\Device\Harddisk2\Partition1" /letter N /favorites /p newutopianewutopia10
> /q
>
>
> REM starting sharing for truecrypt /y is required for unattended interaction
> net stop server /y
> net start server /y
> net start "computer browser" /y
> exit
>
> i need this file to run as the user truecrypt with the password 1234567890
>
>
>
> .
>