December 18, 200718 yr Hi all,I wanna to know how i can make up one level using cmd script as i have .cmd file and i wanna it to search for file reside in folder one level form the folder where .cmd inMain folder |___ Folder 1 |___ .cmd file |___ Folder 2 |___ file required to check for it.btw, the path for Main folder get changed from user to another.How this action done?! Edited December 18, 200718 yr by xtremee
December 18, 200718 yr . -> refers to the current folder.. -> refers to the parent folderso 'cd .' leaves you in your current folder 'cd ..' takes you up one level. Also works for running commands, reeferencing files etc...\myexe.exeruns myexe.exe out of parent folder..\..\goaway.batruns goaway.bat from folder two levels upshowit ..\bestpic.jpgruns showit and loads bestpic.jpg from folder one level up.Best practice go live on a dos 6.22 machine for awhile without windows 3.1x you'll catch on quickly.
December 19, 200718 yr This is a good scripting site, covers IcemanND's favoured OS too...http://www.robvanderwoude.com/
December 19, 200718 yr This is a good scripting site, covers IcemanND's favoured OS too...http://www.robvanderwoude.com/I saw nothing on that site refering to TRS-DOS.
Create an account or sign in to comment