Embedding vbs file to image - vbscript

how to embed vbs file to image and run the vbs file when an image is clicked or open by the users? Please provide me with a good solution

Running arbitrary code in the background when a user opens an image file would be a severe vulnerability. So no, there is no regular way to achieve what you want.

Related

How do I open an image in prolog and display it in terminal?

I'm working on a minesweeper program and would like to know if there is a way to open an image file from my desktop and display it when running during my application which runs on the terminal.
Thanks in advance.
You can simply use open image.jpeg and it will open the image whenever you call it in your bash code. If you want to open it with a specific program, do open -a Program image.jpeg

How do file extensions work?

I did a quick Google search of "how do Windows extensions work," but it only came up with how to change file extensions.
I was making my own file extension for an image compressor, and as of now you'd have to load the text file into a program and its processed, but in a real-world environment that's not something you want to make people use.
I'm not saying I want to build the next best image compressor but it'd be useful to understand how file extensions work.
I understand a file had content, and the content is defined for use by the extension, but when you execute a file (double click) what happens?
If I click a .x file (example), would there be a bind that has to be done in a system/environment level, to say point to a batch file that runs everything else?
Thanks in advance!

How to hide the preview window in windows explorer?

I am making a batch file to password protect a hidden folder.
How can I make it so the user cant view the preview window at the side, since the preview window allows them to see the password that is set in the .bat file.
To make the code of your batch file both hidden and un-editable, the best option is to convert it to an exe. I would recommend you use this bat-to-exe converter.
Also FYI, making a folder hidden is a rather ineffective protection step that only works against layman tech users. Perhaps encrypting the folder may be a better solution for you.

How to close a PDF file using Ruby?

I have been working on Vanilla, a LaTex preprocessor. I and most people open their PDF files to see how their output looks like. But sometimes, we forget to close it down before starting the compiling process again. If the PDF file is open, then the LaTex compiler complains that it cannot write to that file. So I want to add code to the preprocessor which will look if the output PDF file is open and it will close the PDF file if it is open. I have been looking everywhere to see how to go about doing it. I am not an expert in Ruby. I don't want to kill the whole process of Acrobat32.exe or any other PDF viewing program used to view that file because the user might have other PDFs open in the same program. I just need a way to kill the process of that one PDF file. So can anyone suggest me a way to do it?
Can't you just move the old file first, remove it if possible, and then generate a new version of the same PDF with the name you want?

How to change windows logon background by code

I would like to set programatically a background image for the windows logon screen.
How can I do that ?
Prefered language is C# but I can read other languages and adapt :)
Best regards
Try read this link.
http://www.intowindows.com/how-to-change-windows-7-logon-screen-easily-without-using-hacks-tools/
In the program, you must make creating of one directory and copy JPG file to this directory.

Resources