![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| change 43% to 43.5 | nortypig | Shell Programming and Scripting | 2 | 08-20-2006 03:55 AM |
| IP change | kuultak | UNIX for Dummies Questions & Answers | 2 | 07-13-2005 09:01 AM |
| UID Change | mcateriny | AIX | 4 | 10-06-2003 12:02 PM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
how I change dir in dos
Hi
I have a dos batch file in window server where I call a cmd command for creating some db. this cmd commad is located in e:\data\abcd\xyz.cmd. Now I call this batch file from unix ssh.sh but my access point is D in window server here I want to change the dos prompt to e:\data\abcd. in xyz.bat. here is my batch file regards JAmil SETLOCAL set DateStr=%~2&if "%~2"=="" set DateStr=%date% for /f "skip=1 tokens=2-4 delims=(-)" %%a in ('"echo.|date"') do ( for /f "tokens=1-3 delims=/.- " %%A in ("%DateStr:* =%") do ( set %%a=%%A&set %%b=%%B&set %%c=%%C)) rem set /a "yy=10000%yy% %%10000,mm=100%mm% %% 100,dd=100%dd% %% 100" set filename=%yy%%mm% %dd% echo.%filename% Cd E: cd \data cd E:\data\local-ch-da E:\data\local-ch-da\start_local-CH-DA_cablecom.cmd %yy%%mm% %dd% endlocal |
|
||||
|
you mean
i write just e: in dos bat file it change the directory. from doller prompt i call a bat file ssh user@connection e:\data\abc.bat and in this batch I want to change the directory to e: because i get d: as default prompt. abc.bat like this e: cd \data start_xzy.cmd |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|