

Set VIEWER=C:\Program Files (x86)\Google\Chrome\Application\chrome.exe You need to configure these variables at the top of the script: REM The location of the viewer to launch. I wanted to show how to do it without forcing the user to rename their. Or how I search for all images in subdirectories, or whatever. Or you can just look at various parts, like how I launch chrome to show a file. Is it possible? Batchs that modify other batchs? Thanks for help! One possible solution is creating a second batch program that changes the directories (copy or move), thus modifying the 1st batch. I did a PrintScreen to see the directorys:

With the default program (Quick Time Player "slow program") and then I tried this way, but it didn't work! This opens the Gifs independently

I tried this way, but it didn't work and exit automatically! :Y2ģ. I want to make a searcher that run the gif and open it with chrome!!!!! This works, but doesn't the function that I want it to do!t HELP ME!!! :YĢ. # with the default program (Quick Time Player "slow program") and then #įOR /F "tokens=2 delims=" %%b IN ('WMIC LogicalDisk Where "DriveType=%%a" Get DeviceID /Format:List') DO (įOR /F "tokens=*" %%c IN ('DIR %%b\GoogleChromePortable.exe "Gif3.gif" /b /s') DO (ġ. # I tried this way, but it didn't work! This opens the Gifs independently # # I tried this way, but it didn't work and exit automatically! #įOR /F "delims=" %F IN ('dir /S /b Gif1.gif) DO SET ExePath="%F" Start GoogleChromePortable.exe "L:\Informatic\GoogleChromePortable-GifViewer\Gif1.gif" # I want to make a searcher that run the gif and open it with chrome!! HELP ME!!! # SET /P M=Type Y, N, or E, then press ENTER: PRESS "Y" or "N" to select your task or "E" to EXIT. "Gif Viewer" with the name of Gif1, or Gif2 Gif3. To open a gif, put the gif in the folder where is the. *-Gifs Viewer \By Hubert Kenobi/ Google Chrome-*. TITLE ***Gif Viewer\**Hubert Kenobi**/GoogleChromePortable***ĮCHO. Here is my full Batch (A little Dinamic): ECHO OFF How can I make a "File Searcher" which find GIF1, 2 or 3, and open it with google chrome (I need to do this to avoid having to be changing the directory of gifs and "google chrome", whenever I change the folder, or copy the program to my classmates). We want to open gifs by "Chrome" because it is fast animated gifs displayer, and it's good to preview the websites that we do in html.Īnother reason is because I'm enjoying learn more about batch. What I wanted to make is that "Google chrome" open up the gifs by a ""simple click"", because I'm in the Graphic Design course, and at our school, the pc's have admin rights, so we can't change the gifs default settings, to be opened by "Google Chrome". I was wondering if it is possible to make a "Gif Viewer" with "Google Chrome" using the batch.
