Forum Discussion
Altera_Forum
Honored Contributor
15 years ago --- Quote Start --- Here is my solution/workaround for now anyways. creatNiosApps.bat --------------------------------------------------------------- copy "C:\Development\Ethernet_ES\NIOS\test.sh" "C:\altera\91\nios2eds\user.bashrc" "C:\altera\91\nios2eds\Nios II Command Shell.bat" --------------------------------------------------------------- test.sh --------------------------------------------------------------- NIOS_DIR="C:/Development/Ethernet_ES/NIOS" mkdir $NIOS_DIR"/Hex_Files" make -C $NIOS_DIR"\software\output_app" clean make -C $NIOS_DIR"\software\output_app" all $SOPC_KIT_NIOS2/bin/elf2hex --base=0x41060000 --end=0x41067fff --width=8 --input=$NIOS_DIR"/software/output_app/output_app.elf" --output=$NIOS_DIR"/Hex_Files/output_app.hex" rm -rf "C:\altera\91\nios2eds\user.bashrc" exit -------------------------------------------------------------------- Thanks for all the help --- Quote End --- Your quoting is all wrong.... You probably want to include the shell variable substitutions in "" (eg "$NIOS_DIR") not the literal text. This will ensure that any spaces or shell wildcard characters don't generate multiple parameters. You need to always use forward slashes /, in a shell script \ is a single character escape.