Code: Select all
@echo off
cmd.exe /K title test1&"cd /d G:\Scripts1\batch"
cmd.exe /K title test2&"cd /d F:\Scripts\batch"
TIA
Matt
Moderator: DosItHelp
Code: Select all
@echo off
cmd.exe /K title test1&"cd /d G:\Scripts1\batch"
cmd.exe /K title test2&"cd /d F:\Scripts\batch"
Code: Select all
@echo off
start "" cmd.exe /K "title test1 & cd /d H:"
start "" cmd.exe /K "title test2 & cd /d W:"
Code: Select all
@echo off
start "" cmd.exe /K "title Batch Folder & cd /d F:\Scripts\batch & color 0A & mode con:cols=130 lines=2500"
start "" cmd.exe /K "title Hermes Dev Testing & cd /d G:\ITF\Hermes Install\dev & mode con:cols=130 lines=2500 & color 0A"
Code: Select all
@echo off
mode con:cols=130 lines=2500
set mySysRoot=%%SystemRoot%%
reg add "HKCU\Console\%mySysRoot%_system32_cmd.exe" /v FaceName /t REG_SZ /d Lucinda Console /f
reg add "HKCU\Console\%mySysRoot%_system32_cmd.exe" /v FontSize /t REG_DWORD /d 00140000 /f
reg add "HKCU\Console\%mySysRoot%_system32_cmd.exe" /v FontWeight /t REG_DWORD /d 000002bc /f
reg add "HKCU\Console\%mySysRoot%_system32_cmd.exe" /v QuickEdit /t REG_DWORD /d 1 /f
"Prepare Environment.cmd"
Code: Select all
Windows Registry Editor Version 5.00
[HKEY_CURRENT_USER\Console\%SystemRoot%_system32_cmd.exe]
"ScreenColors"=dword:0000000a
"ScreenBufferSize"=dword:03e70078
"WindowSize"=dword:001e0064
"WindowPosition"=dword:0007000e
"FontSize"=dword:00140000
"FontFamily"=dword:00000036
"FontWeight"=dword:000002bc
"FaceName"="Lucida Console"
"HistoryBufferSize"=dword:00000063
"NumberOfHistoryBuffers"=dword:00000032
"HistoryNoDup"=dword:00100000
"QuickEdit"=dword:00000001
It strikes me that this works with just a desktop shortcut. I put a little zipped file on http://1drv.ms/1RTK4wi that would give you this:Matt Williamson wrote:No, Foxidrive I never did. Honestly, it was so long ago that I forgot all about it. I'd still like to figure it out though. Any thoughts?
Matt Williamson wrote:I'd still like to figure it out though. Any thoughts?
Code: Select all
@echo off
(
echo(Windows Registry Editor Version 5.00
echo(
echo([HKEY_CURRENT_USER\Console\%SystemRoot%_system32_cmd.exe]
echo("ScreenColors"=dword:0000000a
echo("ScreenBufferSize"=dword:03e70078
echo("WindowSize"=dword:001e0064
echo("WindowPosition"=dword:0007000e
echo("FontSize"=dword:00140000
echo("FontFamily"=dword:00000036
echo("FontWeight"=dword:000002bc
echo("FaceName"="Lucida Console"
echo("HistoryBufferSize"=dword:00000063
echo("NumberOfHistoryBuffers"=dword:00000032
echo("HistoryNoDup"=dword:00100000
echo("QuickEdit"=dword:00000001
)>temp.reg
regedit /s temp.reg
del temp.reg
Code: Select all
START "Window 1" CD /D C:\Directory1
START "Window 2" CD /D C:\Directory2
REM ...
ECHO Profit!
michealespinola wrote:This should work - it did on my system:
test.cmd:Code: Select all
START "Window 1" CD /D C:\Directory1
START "Window 2" CD /D C:\Directory2
REM ...
ECHO Profit!
Squashman wrote:michealespinola wrote:This should work - it did on my system:
test.cmd:Code: Select all
START "Window 1" CD /D C:\Directory1
START "Window 2" CD /D C:\Directory2
REM ...
ECHO Profit!
Read the whole thread. There is a little more to it then just open another cmd.exe instance and changing to a directory.
Code: Select all
:: Original: Setting window title and current directory by passing commands as arguments to CMD.
start "" cmd.exe /K "title Batch Folder & cd /d F:\Scripts\batch & color 0A & mode con:cols=130 lines=2500"
start "" cmd.exe /K "title Hermes Dev Testing & cd /d G:\ITF\Hermes Install\dev & color 0A & mode con:cols=130 lines=2500"
Code: Select all
:: Modified: Setting window title and current directory by passing them as arguments to START.
start "Batch Folder" /d "F:\Scripts\batch" cmd.exe /k "color 0A & mode con:cols=130 lines=2500"
start "Hermes Dev Testing" /d "G:\ITF\Hermes Install\dev" cmd.exe /k "color 0A & mode con:cols=130 lines=2500"
Code: Select all
:: Simplest: No need to specify CMD /K if formatting and layout are done already.
start "Batch Folder" /d "F:\Scripts\batch"
start "Hermes Dev Testing" /d "G:\ITF\Hermes Install\dev"