×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

I apologize for this not being NX question

I apologize for this not being NX question

I apologize for this not being NX question

(OP)
Does anyone know where I can go to ask a question on Windows7 Folders and Command Prompt?

RE: I apologize for this not being NX question

no, but try here. There are quite a few knowledgeable guys in this forum.

There is a forum named sevenforum or similar,try search that .

Regards,
Tomas

RE: I apologize for this not being NX question

(OP)
I know this sounds stupid but I have two different versions of a file and I need them both to have identical names. The only difference is the style info inside of the files. We have a Global version and a North American version. There can be 50 different folders that have the Global version and another 30 folders that have the NA version. When I get new updates to these two files every few months, I need to replace the old ones in all of their folders with the correct new version. Because they have the same name, I cannot use the command prompt to replace them because that would only replace all of them with one version and mess everything up.

I tried creating a Global folder with shortcuts to all of the folders with the global version of the file in them and then I created a North American folder with shortcuts to all of the folders with that version of the file in them. Then I found out that command prompt does not recognize short cut folders as folders and the replace code in command prompt wont work that way. I guess short cut folders are recognized as links or something instead.

Is there any way to replace all the correct ones quickly rather than one at a time? It is a pain in the but going into each folder and pasting the file one at a time.

RE: I apologize for this not being NX question

1) Who invented this system for you ? - Give him a knee somewhere! smile

2) If i was you, i would create two source directories similar to "source_american" and "source_global"
In these i would place the new source files.

then create a .bat-file with the following content: ( supposing that your destination is on the "F-drive" and that your source files are on the C-drive.)
One line per target directory ( i think )
robocopy C:\source_american F:\directory_a\directory_b /COPY:DAT
robocopy C:\source_american F:\directory_a\directory_c /COPY:DAT
robocopy C:\source_american F:\directory_a\directory_D /COPY:DAT

robocopy C:\source_global F:\directory_1\directory_2 /COPY:DAT
etc etc.

Then you only need to drop the correct files in the source directories, and then double click that .bat file.


regards,
Tomas



RE: I apologize for this not being NX question

Write a batch file that copies the original to all of the required Global and NA folders.
Place the files in common directories and use search paths to load the proper Global or NA files. Only one file to update when changes come along.
I am guessing you do not use a PDM system!

"Wildfires are dangerous, hard to control, and economically catastrophic."

Ben Loosli

RE: I apologize for this not being NX question

(OP)
Toost, I would love to give that knee. Believe me. Unfortunately it was GM. lol It is a program that they insist we still use, called WESS, and yet to my knowledge they do not support it anymore and have not updated the program itself since 2003. How's that for making sense huh? This is just one of the minor problem we run into with it.

Thanks to both of you for the help. I don't know much about bat files but I do have someone here who does, so he can help me get that done right. Thanks.

RE: I apologize for this not being NX question

All you need to know about batfiles is in my example above. I think that you can see the syntax for robocopy.
write it using the "notepad" and when you are done, rename the file from ".txt" to ".bat" and you are done.(!)


Regards,
Tomas



Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members!


Resources