Vern Vonheeder III, 18.08.2006 01:41:
    If you want a batch file - either ".bat" or ".cmd" extensions to run
your Scite program from your USB drive regardless of what drive letter
it is assigned when you plug it in - then the following may help you. It is what I use.

    1.  For this example, create a file called "Frank.cmd" on your USB
drive.  So if your USB stick was assigned the letter "G" when you put it
in your computer, then you would create a file with the path of
"G:\Frank.cmd" after you create it.

    2.  If it's not already open in Notepad, right click on this file
and select Edit.

    3.  Copy & Paste the following into this open file:

@echo off
Start /b /min %~d0Apps\SciTE\SciTE.exe
exit
@echo on

    4.  Change the path to match your own SciTE application on your USB
drive, leaving out the drive letter.  In the above example, the
SciTE.exe program resides in a folder called "SciTE" which itself
resides in a folder called "Apps".

    5. Save and close the file.  Double click on it to run it.

    This part "@echo off" is telling the batch file not to show what
commands are being run.
    This part "Start /b /min" is telling the batch file not to open a
new command prompt window, and to minimize it.  This is helpful if
you're starting more than one application in this batch file.
    This part "%~d0" is built into Windows and is returning whatever
drive letter that this batch file is being run from.
    This part "Apps\SciTE\SciTE.exe" is the path to your SciTE
application on your USB drive.
    This part "exit" is telling the command prompt window to close
immediately.

    I know that some of this is very basic but I thought it wouldn't
hurt to mention it anyway.
    If you need more help on Windows command prompt syntax,
http://msdn.microsoft.com is a good place to start.

    I'm not sure if this is what you're looking for or not but I hope it
helps.  This is what works for me.

i know how to create batch-files, but i need to say scite that i should use its directory as %USERPROFILE%. elsewhere it tries to read sciteuser.properties from "C:\documents & properties\username\" (is this the english path?). do you understand my problem? imho your script only starts scite like i would start it by doubleclicking the exe ;)

Frank
_______________________________________________
Scite-interest mailing list
[email protected]
http://mailman.lyra.org/mailman/listinfo/scite-interest

Reply via email to