[AccessD] OT: Create .bat in WinXP Pro

Penn 227 penn227 at yahoo.com
Mon May 2 19:44:46 CDT 2005


Hmm.  CD c:\ worked in DOS and it appears to
work when I bring up a DOS window in XP Pro.
The bat file and the txt file are both on the same
drive.  CD \ also works to return to the root but
when I tried it in the bat file, it still didn't work.
It stops executing sitting in the folder where the
bat file is located.  It doesn't change directories
and it certainly doesn't rename anything.

??

Penn

----- Original Message ----- 
From: "Mcgillivray, Don [ITS]"
<donald.a.Mcgillivray at mail.sprint.com>
To: "Access Developers discussion and problem solving"

<accessd at databaseadvisors.com>
Sent: Monday, May 02, 2005 5:43 PM
Subject: RE: [AccessD] OT: Create .bat in WinXP Pro


> Penn,
>
> CD C:\ isn't valid syntax.
>
> Assuming the target lives at c:\ and the bat file is
being run from some
> other drive, try:
>
> c: <== moves cursor to the c: drive
> CD \ <== moves cursor to the root of C:
> ren DevFile.txt DevFileX.txt
>
> If the target lives at c:\ and the bat file is being
run from a folder
> on the C: drive, you don't need to point to c:
before issuing the CD.
> (you can if you want)
>
> CD \
> ren DevFile.txt DevFileX.txt
>
> HTH,
>
> Don
>
> -----Original Message-----
> From: accessd-bounces at databaseadvisors.com
> [mailto:accessd-bounces at databaseadvisors.com] On
Behalf Of Penn 227
> Sent: Monday, May 02, 2005 2:10 PM
> To: Access Developers discussion and problem solving
> Subject: [AccessD] OT: Create .bat in WinXP Pro
>
>
> This is completely off topic but I can't find
> any answers on the web and thought perhaps
> someone on the list had experience with it.
>
> I would like to automate renaming
> a file.
>
> I tried writing a batch file but
> it didn't work.
>
> ******* Batch File ******
> run cmd
> cd c:\
> ren DevFile.txt DevFileX.txt
> exit
> ***** End *****
>
> Any ideas greatly appreciated.
>
> Penn
>
>
> __________________________________________________
> Do You Yahoo!?
> Tired of spam?  Yahoo! Mail has the best spam
protection around
> http://mail.yahoo.com
> -- 
> AccessD mailing list
> AccessD at databaseadvisors.com
> http://databaseadvisors.com/mailman/listinfo/accessd
> Website: http://www.databaseadvisors.com
>
>
> -- 
> AccessD mailing list
> AccessD at databaseadvisors.com
> http://databaseadvisors.com/mailman/listinfo/accessd
> Website: http://www.databaseadvisors.com
> 


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 



More information about the AccessD mailing list