Create Batch File to Open and Start File with CC Viewer

Feel free to ask any question here
Post Reply
eliscio
Posts: 10
Joined: Tue Nov 22, 2011 12:37 am

Create Batch File to Open and Start File with CC Viewer

Post by eliscio »

Hello,

I would like to know if it's possible to create a batch file that would open the CC Viewer and open a specific bin file? Ideally, I would like this to work from a relative path so I can put files on a USB key and give it to someone to open who does not have CC installed on their computer.

Do you think this can work? Would a separate batch file be required for Windows and Mac?

Thanks!
DA523
Posts: 166
Joined: Mon May 25, 2020 4:02 pm

Re: Create Batch File to Open and Start File with CC Viewer

Post by DA523 »

in Windows

start.bat


@echo off

if exist "d:\123.bin" (
"d:\ccViewer_v1.41.alpha_bin_x64\ccViewer.exe" "d:\123.BIN"
)

if exist "e:\123.bin" (
"e:\ccViewer_v1.41.alpha_bin_x64\ccViewer.exe" "e:\123.BIN"
)

if exist "f:\123.bin" (
"f:\ccViewer_v1.41.alpha_bin_x64\ccViewer.exe" "f:\123.BIN"
)

exit
Post Reply