Addendum: This method was used to provide a shell-like interface on an XP machine running Citrix server. The "full desktop" application was published (looks like Remote Desktop) but wouldn't let me use the shell due to security questions. Many have wondered why exactly I did what I've done below, so now you know the context.
Remove these ads by
Signing UpStep 1Create the batch file
Inside the file, put the following code:
@ECHO OFF
REM make all environment changes local to the execution of this script.
SETLOCAL
REM show customized welcome message, version of Windows and a blank line
@ECHO --== Welcome to your customized DOS Batch Shell ==--
VER
ECHO.
REM create loop block where user is prompted for a command and
REM that command is executed, displaying the results.
:cmdloop
REM Display working dir prompt, asking for a command.
@set /p USERCMD=%CD%!
REM "quit" or "exit" will both exit this shell.
@IF "%USERCMD%"=="quit" GOTO END
REM execute the received command.
%USERCMD%
REM go back to the beginning of this block.
@GOTO cmdloop
:end
REM end local environment changes
@ENDLOCAL
REM pause briefly before closing this window
@pause
| « Previous Step | Download PDFView All Steps | Next Step » |







































>