This website uses cookies. By clicking Accept, you consent to the use of cookies. Click Here to learn more about how we use cookies.
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
- Revenera Community
- :
- InstallAnywhere
- :
- InstallAnywhere Forum
- :
- Re: bat file
Subscribe
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Aug 01, 2008
06:26 AM
bat file
HI Firends.
while installing the application am excuting one .bat file.
in this .bat file second line is working.it is creating the Folder in the desktop.
if i hardcode the value it is working.But if i didnt hardcode the value and excute the .bat file like this $USER_INSTALL_DIR$ it is not creating folder in the installation directory.
please guide me how to do this one.
THIS is my .bat file.after installing the .bat file only am excuting.
mkdir $USER_INSTALL_DIR$$//$DEF"
mkdir "C:\Documents and Settings\rreddy03\Desktop\\DEF"
copy "$USER_INSTALL_DIR$$\ra.dll" "$USER_INSTALL_DIR$$\$DEF$\$ra.dll"
while installing the application am excuting one .bat file.
in this .bat file second line is working.it is creating the Folder in the desktop.
if i hardcode the value it is working.But if i didnt hardcode the value and excute the .bat file like this $USER_INSTALL_DIR$ it is not creating folder in the installation directory.
please guide me how to do this one.
THIS is my .bat file.after installing the .bat file only am excuting.
mkdir $USER_INSTALL_DIR$$//$DEF"
mkdir "C:\Documents and Settings\rreddy03\Desktop\\DEF"
copy "$USER_INSTALL_DIR$$\ra.dll" "$USER_INSTALL_DIR$$\$DEF$\$ra.dll"
(1) Reply
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Aug 01, 2008
08:29 AM
Reddy611 wrote:
HI Firends.
while installing the application am excuting one .bat file.
in this .bat file second line is working.it is creating the Folder in the desktop.
if i hardcode the value it is working.But if i didnt hardcode the value and excute the .bat file like this $USER_INSTALL_DIR$ it is not creating folder in the installation directory.
please guide me how to do this one.
THIS is my .bat file.after installing the .bat file only am excuting.
mkdir $USER_INSTALL_DIR$$//$DEF"
mkdir "C:\Documents and Settings\rreddy03\Desktop\\DEF"
copy "$USER_INSTALL_DIR$$\ra.dll" "$USER_INSTALL_DIR$$\$DEF$\$ra.dll"
This should read something like that:
mkdir $USER_INSTALL_DIR$$\$DEF"
copy "$USER_INSTALL_DIR$$\$ra.dll" "$USER_INSTALL_DIR$$\$DEF$\$ra.dll"
There is no such thing as $//$, only $\$ or $/$ is a valid option. And by the way I strongly urge you to read the InstallAnywhere manual. You're doing things in this .bat file that can be natively done in IA (like a folder creation, and copying a .dll into it).