jjblackisback Posted February 16, 2011 Posted February 16, 2011 After truecrypt mounts and clcl.exe starts the cmd window stays open even with exit at end, any ideas?"C:\Documents and Settings\e38662\My Documents\TrueCrypt\TrueCrypt.exe" /v "F:\FDriveFiles" /l m /qstart /Dm:\Applications\CLCL /B /WAIT M:\Applications\CLCL\CLCL.exeexitThanksjjblack
jaclaz Posted February 17, 2011 Posted February 17, 2011 After truecrypt mounts and clcl.exe starts the cmd window stays open even with exit at end, any ideas?"C:\Documents and Settings\e38662\My Documents\TrueCrypt\TrueCrypt.exe" /v "F:\FDriveFiles" /l m /qstart /Dm:\Applications\CLCL /B /WAIT M:\Applications\CLCL\CLCL.exeexitThanksjjblackWhat is clcl.exe? If you start an app - and expecially with the /WAIT parameter - it will stay open until the called program ends execution.BTW, NEVER use start without the "title" (or a pair of double quotes):http://ss64.com/nt/start.htmlit tend to give any kind of strange behaviour.If you don't want the command console open you can use another program to start it minimized or hidden.jaclaz
jjblackisback Posted February 17, 2011 Author Posted February 17, 2011 clcl.exe is a clipboard saver.do I need the /wait command in there?Thanks
jaclaz Posted February 17, 2011 Posted February 17, 2011 (edited) clcl.exe is a clipboard saver.Care to provide a link?Is it this one?http://www.nakka.com/soft/clcl/index_eng.htmldo I need the /wait command in there?Myabe yes, maybe not. If you start a GUI app (that waits for input) from a batch, the "parent" console will remain open, that's normal.As said you can minimize or hide the console, but maybe there could be other ways to start the app.Can you try stating what your actual GOAL is?jaclaz Edited February 17, 2011 by jaclaz
jjblackisback Posted February 17, 2011 Author Posted February 17, 2011 Yes that is the site.I want to put this batch file in my startup folder so that It will load Truecrypt, I will put my password in Truecrypt then it will load the container as "M drive". Then I want it to open clcl.exe which is located on the "M drive".Thanks
jaclaz Posted February 17, 2011 Posted February 17, 2011 Which translates to:I would like, each time I start my Windows, to have:the command "C:\Documents and Settings\e38662\My Documents\TrueCrypt\TrueCrypt.exe" /v "F:\FDriveFiles" /l m /qexecutedand the GUI app CLCLstarted (and the app is in the drive just mounted with truecrypt)It is possible to use the Autoplay function of the Truecrypt volume:http://www.ehow.com/how_7241339_autoplay-truecrypt-mounted-volume.htmlBut if I were you, I would use NIRCMD:http://www.nirsoft.net/utils/nircmd.htmlWith a simple NIRCMD .ncl script, that executes the needed actions, like:execmd "C:\Documents and Settings\e38662\My Documents\TrueCrypt\TrueCrypt.exe" /v "F:\FDriveFiles" /l m /qexec2 show "M:\Applications\CLCL" "M:\Applications\CLCL\CLCL.exe"Say that you call it myscript.nclyou just create a shortcut to:C:\whatever\nircmd.exe script myscript.ncland add it in the startup folder.You may want to add a "wait" command to give some time to truecrypt to have the drive accessible.jaclaz
jjblackisback Posted February 17, 2011 Author Posted February 17, 2011 I got this batch file to work:"C:\Documents and Settings\e38662\My Documents\TrueCrypt\TrueCrypt.exe" /v "F:\FDriveFiles" /l m /qstart "Clipboard" "M:\Applications\CLCL\CLCL.exe"However if I add "background" to run Truecrypt in system tray then CLCL.exe will not load:"C:\Documents and Settings\e38662\My Documents\TrueCrypt\TrueCrypt.exe" /v "F:\FDriveFiles" /l m /q backgroundstart "Clipboard" "M:\Applications\CLCL\CLCL.exe"Do I need brackets or quotes around /q background?Thanks for your help.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now