Install more than 1 IMVU client using batch scripts tutorial

DataMine
by DataMine · 97 posts
11 years ago in IMVU Lounge
Posted 10 years ago · Author
tarchea wrote:
ok ty. doing that right now.

-- Thu Feb 06, 2014 2:56 pm --

ok. it says c:\users\name is not recognized as an internal or external command, operable program, or batch file. press any key to continue........


Paste contents of your batch file here inside code tags:
Code
exmaple code here


I will look at it and help you fix it.
Posted 10 years ago
Code
@echo off
set LAUNCHER=%APPDATA%\IMVUClient-"IMVUL"\IMVUClient.exe
set NAME=IMVUClient-"IMVUL"
set APPDATA=%APPDATA%\%IMVUL%
%LAUNCHER%
pause
EXIT


-- Thu Feb 06, 2014 3:05 pm --

thats one i used

-- Thu Feb 06, 2014 3:06 pm --

and this one
Code
@echo off
set LAUNCHER=%APPDATA%\IMVUClient-"IMVUL"\IMVUClient.exe
set NAME=IMVUClient-"IMVUL"
set APPDATA=%APPDATA%\%NAME%
%LAUNCHER%
EXIT
Posted 10 years ago · Author
tarchea wrote:
Code
@echo off
set LAUNCHER=%APPDATA%\IMVUClient-"IMVUL"\IMVUClient.exe
set NAME=IMVUClient-"IMVUL"
set APPDATA=%APPDATA%\%IMVUL%
%LAUNCHER%
pause
EXIT


-- Thu Feb 06, 2014 3:05 pm --

thats one i used

-- Thu Feb 06, 2014 3:06 pm --

and this one
Code
@echo off
set LAUNCHER=%APPDATA%\IMVUClient-"IMVUL"\IMVUClient.exe
set NAME=IMVUClient-"IMVUL"
set APPDATA=%APPDATA%\%NAME%
%LAUNCHER%
EXIT


Both of those are correct. Make sure you have a folder located in your appdata called IMVUClient-"IMVUL"
Posted 10 years ago
yes that is the name i renamed it to.
Posted 10 years ago · Author
tarchea wrote:
yes that is the name i renamed it to.


If your code looks exactly like what you posted, then you shouldn't be getting that error you mentioned. Would you like me to help you over TeamViewer?
Posted 10 years ago
yes that will help. i dont get it smh.
Posted 10 years ago · Author
tarchea wrote:
yes that will help. i dont get it smh.


Download and install TeamViewer if you need to, then PM me your connection info.
Posted 10 years ago
ok its done
Posted 10 years ago · Author
The problem was caused by a space in their Windows account name. When dealing with spaces in file/directory names in the command prompt, you have to wrap them in quotes. However, since the code uses an environment variable "%appdata%" this was not possible. Therefore, to fix the problem you have to replace the environment variable with a direct path and wrap it in quotes.

I am not sure why the space was causing an issue when using an environment variable though. I would have assumed using it would have bypassed the space issue but it did not.

So if you ever get an error saying unrecognized command when using this script, that's most likely the problem.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Sign in

Already have an account? Sign in here

SIGN IN NOW

Create an account

Sign up for a new account in our community. It's easy!

REGISTER A NEW ACCOUNT