TIA
Tony
hope this helps,
- Oisin
"Rose" <To...@Antonio.com> wrote in message
news:bb7afu$ope$1...@news-reader14.wanadoo.fr...
-josephc
--
===========================================================
This posting is provided "AS IS" with no warranties and confers no rights
===========================================================
"Rose" <To...@Antonio.com> wrote in message
news:bb7afu$ope$1...@news-reader14.wanadoo.fr...
BitsNotBytes
"Sam Salhi [MSFT]" <sam...@online.microsoft.com> wrote in message news:<eBkM1msJ...@TK2MSFTNGP11.phx.gbl>...
Glenn
"Sam Salhi [MSFT]" <sam...@online.microsoft.com> wrote in message
news:eBkM1msJ...@TK2MSFTNGP11.phx.gbl...
--
===========================================================
This posting is provided "AS IS" with no warranties and confers no rights
===========================================================
"BitsNotBytes" <bitsno...@yahoo.com> wrote in message
news:946bf591.03053...@posting.google.com...
--
===========================================================
This posting is provided "AS IS" with no warranties and confers no rights
===========================================================
"Glenn Wilson" <gnwi...@optusnet.com.au> wrote in message
news:e$oujOyJD...@TK2MSFTNGP11.phx.gbl...
Rose
"Glenn Wilson" <gnwi...@optusnet.com.au> a écrit dans le message de
news:e$oujOyJD...@TK2MSFTNGP11.phx.gbl...
There are freeware 'bundlers', one named "bundler", that stores your
file as an EXE then upon execution it extracts your file and 'opens'
it with it's 'associated' program...
here, found a link...
http://users.hol.gr/~dck/g4c/res/bundler.htm
Larry
Larry
http://groups.yahoo.com/group/AutoItList/files/MISC/File2EXE.exe
It will create an EXE from 'ANY file'. When you launch that EXE it
will extract the 'ANY file' to the %temp% directory and launch it with
it's "Associated" program. It passes up to 9 arguments to that file
also, in case your .vbs accepts arguments. It is not totally stealth,
but discourages people from looking at your .vbs code...
visit me at
http://groups.yahoo.com/group/AutoItList/
if you have any questions
Larry
Hi, Larry
This looks like it could be useful. But...
On my W98SE, IE5.5, WSH 5.6 system, it puts the original script in the %temp% directory, but does not launch it.
I just tried a one-liner:
msgbox "hello"
It displays the messagebox when I double click the file in %temp%.
-Paul Randall
Hi, Larry
Leaving the source in the %temp% directory seems foolish.
Can your launcher pass something to the script so that code like this can delete it before anyone has a chance to look at it?
Dim objFSO
Set objFSO = CreateObject("Scripting.FileSystemObject")
'If I was started by File2EXE then
' objFSO.DeleteFile WScript.ScriptFullName
'End If
...
'The rest of the script
-Paul Randall
You'd laugh if you knew how I made this... I will try to delete after
it runs... but for now, I just hacked it together to discover the
possibilities.
Larry
try this one... it 'should' delete the file after it closes.
http://groups.yahoo.com/group/AutoItList/files/MISC/File2EXE.exe
Larry
Hi, Larry
Two problems:
1. When I run the executable created by File2EXE.exe, it creates the original .VBS in %temp%, but it never launches it. I proved
that to myself by having two lines in the .VBS -- a 60-second sleep and a message box. The message box never shows up, and if I do
control-alt-delete immediately after running the executable, there is no entry for it in the close-program list.
How are you launching it?
2. The deletion of the script should occur as soon as it is loaded, not after it has completed running. If I insert the deletion
code at the beginning of my script, it does the deletion and runs to completion (but I can't run it again for testing because it is
gone). So I wanted a way to test the script without self-deletion, while retaining the automatic deletion when created by running
the executable created by File2EXE.exe.
Thus code like this at the beginning of the script:
Dim objFSO
Set objFSO = CreateObject("Scripting.FileSystemObject")
'If I was started by File2EXE then
' objFSO.DeleteFile WScript.ScriptFullName
'End If
-Paul Randall
With AutoIt's RunWait command (uses CreateProcess) and
"%comspec%" /c start /w "x:\full\path\to.exe"
start /w uses the registry to discover the files associated program.
If no program is associated, then nothing happens... I guess.. I could
trap the %errorlevel% and pass that out the ass end of the process, I
spose... Anyway... this is not created with a programming language,
but with elements from AutoIt.
Larry