guard
April 28th 03, 10:04 PM
The MountCommand "DeleteMe" will do this cleanly and CONSISTENTLY without
any error messages under NT/2K/XP/K3. Make sure it is the very last line of
the script.
For example:
<YourCompleteScriptHere>
%.DeleteMe%
*******
1. .Mount/\Commands are constructed using ONLY builtin
commands common to all four platforms (NT/2K/XP/K3).
2. .M/\C's are NOT case sensitive. Mixed case is used
for visual clarity only.
*******
See (http://TheSystemGuard.com/MtCmds/GetValue) for more M/\C's.
TheGuardBook contains a "Mounted Help" page for each internal cmd.exe
command. This is a single color-coded page, highlighting the differences
among the NT/2K/XP/K3 versions. The complete help text for each OS is also
available for comparison (http://TheSystemGuard.com/TheGuardBook/CCS-Int).
*******
-tsg
__________________________________________________ __________
TheSystemGuard.com | BoomingOrFuming.com | MountCommands.com
Free and "Almost Free" Knowledge for Windows System Admins!
"Skylyn" > wrote in message
. ..
> Hi,
>
> Is it possible to delete a cmd in the startup folder using the same cmd???
>
> Here is a sample of my script:
>
>
================================================== ==========================
> ====================================
> @echo off
> setlocal
> for %%a in (d e f g h i j k l m n o p q r s t u v w x y z) do (chkntfs.exe
> %%a:|find.exe "cdrom">nul&&if exist %%a:\registry\autologon_disable.reg
set
> CDROM=%%a:)
> if not exist %CDROM%\registry\autologon_disable.reg net send
%computername%
> !! ERROR!! Please insert the CD labled "Cisco VPN Client".&goto :EOF
>
> copy %CDROM%\startup\startup_joindomain.cmd "C:\Documents and Settings\All
> Users\Start Menu\Programs\Startup" /y
> %windir%\wsname.exe ::little app that renames the workstaion and restarts
> the computer with a gui prompt
> del "C:\Documents and Settings\All Users\Start
> Menu\Programs\Startup\startup_changename.cmd" /q
>
>
================================================== ==========================
> ====================================
>
> Will the last line run? If not, any ideas?
>
> Thanks,
>
> Skylyn :0)
>
>
any error messages under NT/2K/XP/K3. Make sure it is the very last line of
the script.
For example:
<YourCompleteScriptHere>
%.DeleteMe%
*******
1. .Mount/\Commands are constructed using ONLY builtin
commands common to all four platforms (NT/2K/XP/K3).
2. .M/\C's are NOT case sensitive. Mixed case is used
for visual clarity only.
*******
See (http://TheSystemGuard.com/MtCmds/GetValue) for more M/\C's.
TheGuardBook contains a "Mounted Help" page for each internal cmd.exe
command. This is a single color-coded page, highlighting the differences
among the NT/2K/XP/K3 versions. The complete help text for each OS is also
available for comparison (http://TheSystemGuard.com/TheGuardBook/CCS-Int).
*******
-tsg
__________________________________________________ __________
TheSystemGuard.com | BoomingOrFuming.com | MountCommands.com
Free and "Almost Free" Knowledge for Windows System Admins!
"Skylyn" > wrote in message
. ..
> Hi,
>
> Is it possible to delete a cmd in the startup folder using the same cmd???
>
> Here is a sample of my script:
>
>
================================================== ==========================
> ====================================
> @echo off
> setlocal
> for %%a in (d e f g h i j k l m n o p q r s t u v w x y z) do (chkntfs.exe
> %%a:|find.exe "cdrom">nul&&if exist %%a:\registry\autologon_disable.reg
set
> CDROM=%%a:)
> if not exist %CDROM%\registry\autologon_disable.reg net send
%computername%
> !! ERROR!! Please insert the CD labled "Cisco VPN Client".&goto :EOF
>
> copy %CDROM%\startup\startup_joindomain.cmd "C:\Documents and Settings\All
> Users\Start Menu\Programs\Startup" /y
> %windir%\wsname.exe ::little app that renames the workstaion and restarts
> the computer with a gui prompt
> del "C:\Documents and Settings\All Users\Start
> Menu\Programs\Startup\startup_changename.cmd" /q
>
>
================================================== ==========================
> ====================================
>
> Will the last line run? If not, any ideas?
>
> Thanks,
>
> Skylyn :0)
>
>