cd/dvd autorun.inf IE setup to open web doc - autorun

I have basic autorun.inf setup, which opens IE on client machine then tries to open html document located on cd/dvd within just opened IE.
Here it is:
open="C:\Program Files\Internet Explorer\iexplore.exe" index.html
Is it possible to pass somehow global variable or any other shortcut to lets say Program Files? It will be awesome if I could be sure that if user have different directories structure, still autorun will find out and open IE instead of doing nothing.

Try this:
[autorun]
open=start filepathname\index.html

Here is a question that looks like the answer you are looking for, please take a look:
How to make an html page open automatically on a CD/DVD
Hope it helps.

Related

Photoshop - simple Open File action on MAC

Could anyone send the ATN file with only one action -> opening PSD file on Mac?
I've made an action with a lot of steps, it's working good but only on Windows. There is no relative paths in PS actions, and i have no friend that has Mac. Could anyone prepare ATN file (so i will be able to copy "open psd file" step)?
Regards,
Luke
Short answer: this won't work. Even though Photoshop has "shortcuts" paths that are similar for both OSX and Windown (like ~/Desktop is a shortcut for desktop folder no matter of OS and username), Actions don't seem to recognize them. Furthermore, if you record an Open Action on Windows or Mac and open it in a different OS, you'll get a File or folder not found message for this step:
Here're two examples. In bot cases the top Action was made in Windows and the bottom one on Mac. This is a Mac screenshot:
and Windows:
Notice how Action1 on the Mac screenshot has File or folder not found message and on Windows there's the same message for Action2 from fromMac set.
Here's what you can do though.
insert Open as a Menu Item. This way user will be asked for a file you need every time a user calls the Action.
give the file you need to open as a pattern file (.pat) and ask a user to install it. This way you can fill a document with it using the Fill command.
most powerful: use a script. You can convert your action to a script file using the xtools: there's a script within it called ActionToJavascript: this will give you a .jsx file that you can use in Photoshop and that will work exactly as your action. And in this script you can specify a path for your action. Like here I'm specifying a file on my Desktop:
And this script will work on Mac.

browse a file from my PC with selenuim

I want to write a selenium program on a site which I need as part of the process to browse a file from the operating system. How can I do that?
If you mean to use Selenium to open a html file on local, it's easy to do.
1. open the html file on browser
2. copy the url in browser address, it should be like:
file:///C:/workspace/js-projects/tey/protractor-cucumber-tey/reports/cucumber_report.html
3. put above url in browser.get()
Better way it's to caclcute the html file absolute path in your scritp dynamically (rather than hard code), then prefix with file://// on the path, possible need to replace '\' to '/' in path.
I don't know what you mean by "browse a file from the operating system."
If you mean choosing file to upload, you can.
see link below
https://www.programcreek.com/java-api-examples/index.php?api=org.openqa.selenium.remote.LocalFileDetector
If you want to browse a file in the local machine with the OpenFileDialog (not sure if this is what you are looking for), in my case, I created an autoIt script, building it as .exe and then call it from Java code (or any programming language you are using with Selenium).
I found an exmaple, it might works: https://github.com/ellysh/autoit-examples/blob/master/Helpfile/FileOpenDialog.au3

How do I download a file in a custom directory?

I googled it and no help. I am making a program here people register and then they can download some indie games i am creating. But i am having problems with the download function. When i go to download the game / program i am getting a error saying i need a file extension here is the code i am trying
My.Computer.Network.DownloadFile("https://www.dropbox.com/sh/yioya7ek0dq1r60/AABzT-98B4DWPdgv1edYC5SMa?dl=0", "C:\ProgramData\GamingcenterApp\games")
I need it to be like this because it is downloading a games folder that the gaming center will know it is installed so it can open the app.
Thanks GamingBlock
Let me explain what to do. DownloadFile downloads a file to your PC, and not a folder. Here is the fixed code:
My.Computer.Network.DownloadFile("C:\ProgramData\GamingcenterApp\games", "READ_ME.txt")
Folders are purposely not supposed to be downloaded by the DownloadFile call. I haven't tested your code but it could generate an exception.
Argument 1 is the file you want to download from the internet, and Arguement 2 is the file name. Not the directory you want it to download to. Also, You can't set the text in the .txt file by code. And of course this will generate an exception because I tested your code.
If this does not help, Simply comment on this answer and I will try to improve it.

Chrome app file system in kiosk mode

i have an app (signage player) that loads video and placed it in folder which user pointed on the beginning (named 'media').
Then i define source attr of video element as "media/name_of_file.mp4"
In plain mode is works well - local video plays. But i and don't know why. In Kiosk mode app can't find a files at all.
Do you have any ideas about it?
What features has or hasn't file system in kiosk mode - it's really hard to debug it there.
Many thanks for any information about file system in kiosk mode.
https://productforums.google.com/forum/#!topic/chromebook-central/zv1nxWBAce4;context-place=forum/chromebook-central
According to this answer, app in kiosk mode hasn't any access to file system.(but from my experience it isn't quite true, i can wright files and folders, read them via file api)
Main problem that i can't reach them from dom src property.
But anyway google demand additional license for this option, so any
kludges can be blocked in further versions of chrome os...
Create a shortcut to your Chrome executable, right click it, select "Properties" and then make sure the target field looks like this (for example):
"C:\Program Files (x86)\Google\Chrome\Application\chrome.exe" --kiosk "file:///C:/Users/JohnDoe/Desktop/MyHTMLFile.HTML"
The executable must be in double quotes, as well as the file path.
You may need to embed your MP4 inside an HTML5 element on a local HTML file for this to work.

automatically place downloaded files in folder bsed on downloads extension suffix

I’m making a simple web browser for work eeh, what I’d like to know is if its possible to save a file of a particular extension to a particular file.
I currently use google chrome when downloading a file it places this (regardless of extension) in a downloads folder without asking where I ant to download this too.
I want to achieve the same except that downloads with the extension .dwg are placed automatically in a folder named DWG DOWNLOADS…
How to achieve this in vb.net?
In any browser you have a config section.
In Firefox you have browser.download.useDownloadDir;true and browser.download.folderList;1
you can add your own config to allow different saved folder paths and dynamically modify them depending on the extension of the file you uploaded.
See a complete list of the web browser config with about:config in address bar.
Not real sure what you are asking, but if you are actually making a web browser just check the extension of the file you are requesting to download. If the extension is ".dwg" then save the file to the folder you want.
If you are wanting to automatically move Google Chrome downloads to a different directory, you can use a FileSystemWatcher to monitor for new files in Chrome's download directory and move them to another folder based on each file's extension.