diff --git a/castWebApi.js b/castWebApi.js
index <HASH>..<HASH> 100644
--- a/castWebApi.js
+++ b/castWebApi.js
@@ -30,7 +30,7 @@ interpretArguments();
 if (!windows) {
 	startApi();
 } else {
-	console.log( process.argv[1].split("castWebApi.js")[0] );
+	console.log( process.argv[1].split("\bin\cast-web-api")[0] );
 }
 
 function startApi() {
Changed --windows for global install path