[AccessD] OT: Create .bat in WinXP Pro

Mcgillivray, Don [ITS] donald.a.Mcgillivray at mail.sprint.com
Mon May 2 16:43:48 CDT 2005


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





More information about the AccessD mailing list