cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

The community will undergo maintenance on October 16th at 10:00 PM PDT and will be unavailable for up to one hour.

Windows 7 Batch File launch to copy config.pro files

james_westerfie
1-Newbie

Windows 7 Batch File launch to copy config.pro files

Hello,


I am trying to run a batch file to simply copy a network config.pro file to my local machine. I am learning that Windows 7 does not like this idea. I made a shortcut on my desktop and tried to run that shortcut as Admin and that didn't help. When I run the below batch files I get "Access Denied". I do have rights to write to my local directory, that was the first thing I checked.


CODE:


copy /Y "R:\somewhere on the network\config.sup" "C:\Program Files\proeWildfire 5.0\text\config.sup"
copy /Y "R:\somewhere on the network\config.pro" "C:\Program Files\proeWildfire 5.0\text\config.pro"
copy /Y "R:\somewhere on the network\univer_splash.gif" "C:\Program Files\proeWildfire 5.0\text\resource\univer_splash.gif"


call "C:\Program Files\proeWildfire 5.0\bin\proe.exe"


This should be easy, but....


Thanks,


James


This thread is inactive and closed by the PTC Community Management Team. If you would like to provide a reply and re-open this thread, please notify the moderator and reference the thread. You may also use "Start a topic" button to ask a new question. Please be sure to include what version of the PTC product you are using so another community member knowledgeable about your version may be able to assist.
1 REPLY 1

I suspect that you are encountering Windows DEP; do some Googling and you will discover many discussions on the subject...


The solution is to either disable it (at your own risk) or find a method to execute the "copy" command as Administrator.


Good LucK!

Announcements
NEW Creo+ Topics: PTC Control Center and Creo+ Portal


Top Tags