Author |
Message |
Cheese Wow Cheese is so helpful!
Joined: Mar 18 2007 Posts: 1017 Offline
|
Posted: Thu Jun 10, 2010 11:58 pm Post subject: Batch files |
|
|
|
|
so ive been working with batch files again, with large success, but theres one thing i havnt figured out yet:
i want to translate a path which could be
*/*/*/*/*/home/src/x/*/*/*.txt
i then want to move it to
*/*/*/*/*/home/bin/x/*/*/*.txt
in a batch file at
*/*/*/*/*/home
without doing chdir.
(where * = wildcard, obviously, and */*/ can be any number of dirs)
any ideas?
i also cant figure out how to tell which dir the batch file is running from, because chdir only does the working dir... _________________ SSC Distension Owner
SSCU Trench Wars Developer
Last edited by Cheese on Fri Jun 11, 2010 12:43 am, edited 2 times in total |
|
Back to top |
|
|
Samapico No, these DO NOT look like penises, ok?
Joined: May 08 2003 Posts: 1252 Offline
|
|
Back to top |
|
|
Cheese Wow Cheese is so helpful!
Joined: Mar 18 2007 Posts: 1017 Offline
|
Posted: Fri Jun 11, 2010 12:43 am Post subject: |
|
|
|
|
wierd, the working dir is the batch files location, but not if you drop files on it for %1... |
|
Back to top |
|
|
sirkillsalot Novice
Joined: Jun 10 2010 Posts: 44 Offline
|
Posted: Fri Jun 11, 2010 9:53 pm Post subject: try this |
|
|
|
|
@echo off
cd path filename.txt move C:\path |
|
Back to top |
|
|
|