path - BAT File - START not working randomly on some Windows 7 machines -


i have bat file i'm using start googlechromeportable , open web page in kiok mode.

it works great on machine , 3 others, except 1 alerts me .exe cannot found i.e. path set not working. here's code:

@echo off set path=%path%;"./folder/chromefolder" start /b googlechromeportable.exe --kiosk "../../../../index.html" 

i run off usb. ../../../../index.html there because chrome starts 4 layers deep in folder structure though googlechromeportable 3 above chrome.exe (might not relevant).

tested on 1*windows8(worked), 1*windows7(worked), 2*windowsxp(worked) 1*windows7(failed).

error message: "windows cannot find googlechromeportable.exe make sure typed address correctly"

i have tried starting bat in administrator mode , still did not work.

i have tried typing in step step , it's the

start googlechromeportable.exe 

that failing


solution

right. fixed it. no idea why works if knows i'd love know. instead of code above i've used:

start %~dp0folder/chrome/googlechromeportable.exe --kiosk "../../../../index.html" 

and that's it. ideas why works , other method doesn't on 1 machine?

"3 above it" - 3 above what?

you appear attempting add ".\folder\chromefolder" path - perhaps might idea add directory "3 above it" googlechromeportable.exe on path - presumably on usb.

mayhap googlechromeportable.exe on path on other machines...


Comments

Popular posts from this blog

Pull out data related to my apps from Android Play Store and iOS App Store -

Change php variable from jquery value using ajax (same page) -

How can I fetch data from a web server in an android application? -