1.

Solve : Codes?

Answer»

Hey everyone....
I have a doubt....
plz...do help me out...


When we type
%systemdrive%
we are redirected to C drive(by default) or wer we have installed our XP....

Now can anyone plz tell me is their a way I could go to my CD drive....

regards.....Just type CODE: [Select]D: on command prompt and it will send you to your CD Drive,
but of course you have to have a CD in to be able to goto that drive.Not every CD drive is has the driveletter D. If there are more than one hard drive, or there is one drive, but partitioned, the drive letter can be further along the alphabet. In fact in Disk Management you can assign any letter not being used already. My CD/DVD drive is drive X.

Best to open My Computer and look to see what drive letter the optical drive has.
Why would you need to access the optical drive from a command prompt anyways ? ?
Not much else can be done from there at that point.Perhaps just run a program off of the CD?LIKE i said...Thanks everyone

But the THING is I wish to make a CD which autoruns a batch file & it installs the softwares in it...

Now this CD, I want to, make it run in any PC I use...&...all of them need not have the same drive letter for the CD-Drive...

So what should I do... A batch file knows its own drive letter, path and filename

Code: [Select]@echo off
echo drive %~d0
echo folder %~p0
echo name %~n0
echo extension %~x0
echo drive, folder, name, extension %~dpnx0

Code: [Select]drive s:
folder \batch\
name test
extension .bat
drive, folder, name, extension s:\batch\test.bat Quote from: Joaquin on August 05, 2009, 01:06:02 AM

Thanks everyone

But the thing is I wish to make a CD which autoruns a batch file & it installs the softwares in it...

I smell virus...Quote from: macdad- on August 05, 2009, 12:26:15 PM
I smell virus...

Na re .... not a virus....but I wish to make a CD of my fav. softwares....& try batch in it....
So that it installs the one I need....

But the virus thing is ALSO good... ...I might try...

Lool.......

And thankyou..."Salmon Trout"Not to be rude but by the way that your typing, you seem to get more suspicious.


Discussion

No Comment Found