Quantcast
Channel: psappdeploytoolkit Discussions Rss Feed
Viewing all articles
Browse latest Browse all 1769

New Post: copy file - create folder if not exits..

$
0
0
Hi

how would you do the following with psapp script:
  1. check if folder exists, if not create it, if exists don't do any more.
  2. copy ALL files from appdeployscripts "files" folder
  3. register-dll (this part I haven't gotten to yet.)
I've tried execute-process with arguments ""mkdir %windir%\SysWOW64\srs_rpe"" but here I can't check if folder exists OR just force it..

I tried: Execute-Process -filepath "cmd.exe" -Arguments "IF exist %windir%\SysWOW64\srs_rpe (echo srs_rpe exists) ELSE mkdir %windir%\SysWOW64\srs_rpe" -ContinueOnError

but this just hangs and gets nowhere

There must be an easier way..

Any ideas?

Viewing all articles
Browse latest Browse all 1769

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>