A Windows XP help forum. PCbanter

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 » PCbanter forum » Microsoft Windows XP » Customizing Windows XP
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

runas script to launch batch file



 
 
Thread Tools Display Modes
  #1  
Old December 8th 09, 04:09 AM posted to microsoft.public.scripting.vbscript,microsoft.public.windows.server.scripting,microsoft.public.windowsxp.customize
Donald MacKenzie
external usenet poster
 
Posts: 10
Default runas script to launch batch file

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



Ads
 




Thread Tools
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 Off
HTML code is Off






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


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 PCbanter.
The comments are property of their posters.