Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations Ron247 on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

I apologize for this not being NX question

Status
Not open for further replies.

Kenja824

Automotive
Nov 5, 2014
958
Does anyone know where I can go to ask a question on Windows7 Folders and Command Prompt?
 
Replies continue below

Recommended for you

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
 
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.
 
1) Who invented this system for you ? - Give him a knee somewhere! :)

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



 
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
 
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.

 
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



 
Status
Not open for further replies.

Part and Inventory Search

Sponsor