How would I create a simple script that does these specific things?

I am trying to create a script that does these few simple task but I can't seem to compile all the cmdlets together into one. I can pick one task out and have a command for it but I want one script to do it all. Here are the tasks I need it to do.
store the current location (as in C:\scripts)
test to see if a folder C:\output exists, if it does not, create it
prompt the visitor for a folder name (no C:\)
obtain a directory listing of that folder showing all .ps1 files only
place the results of this listing in a file named PS1_files_[folder name].txt in the c:\output folder
repeat this task as part of a loop until an empty string is entered
restore the present location (for example C:\scripts)

This is a very good script for a someone new to computers to use as a learning exercise.  You will learn how the computer works an learn how to use scripts to manage the computer.
This is the excat kind of scritp a teach hands you to do on the first day of class.  THe challenge will help you learn.
Start here to learn how to write a script:http://technet.microsoft.com/en-us/scriptcenter/dd793612.aspx
Good luck. Post back with specific questions.  Do not forget to include your script and the complete error message.
You need to learn basic computer logic and decision making.  The learning materials will step you through that.
¯\_(ツ)_/¯

Similar Messages

  • How can I create a manual activity that waits a specific number of seconds

    Hi
    I need to create a manual activity that waits a specific number of seconds. Is there a way to do that?
    Regards

    If you have a manual activity (Human Task) and you would like to define a task deadline in order to continue the process you can define it in the task definition as desribed here: Configuring Human Tasks - 11g Release 1 (11.1.1.6.1)
    But if you just like to stop the process without manual activities involved you can ideed use the Timer Catch Event. See section "6.8.2 Introduction to the Timer Catch Event" in Modeling Business Processes with Oracle BPM for further details.
    Regards, Danilo

  • How can I create a simple app that will automatically add folder script

    Hi! I hope I can get a little help on this.  I tried searching online and haven't found anything.
    Is there away I can make a simple "application" that will automatically add a folder script to a users folder?
    Basically I need a folder script to run but I don't want to explaint o a user how they'd have to do it in automator.
    I'd like to be able to create an application they double click.  The app tells them to select a folder then automatically runs the script.
    Does anyone have any ideas of how'd I'd do this?

    Oh I get it. Yeah I read you post on one of the other pages and didn't quite understand, but not that you say that your're makeing this for another user, it makes sence.
    So what you want to do is have the computer automatically install a script on a customer's computer, right?
    (I'm using "custumer" loosly; i.e. just another user)
    If that's what you'd like to do, then you'll probably have to write an actual program in Xcode, since I imagine automiticlly installing folder action scrips will be highly discuraged by Apple because it would cause a huge security hole in the OS. (You wouldn't want some random person sending you a folder action installer disgused as a regular app LOL.)
    But I will actually suggest the following, which I think will work great for your users:
    Make a regular Automator app, and drag it to your Dock. Now, have the user click and drag a bunch of photos to the application icon, and it will run the app automatically on those files.
    You could try a work flow like this:
    ask the user Are you sure?
    convert pictures
    save pictures to ConvertedPics folder
    pop up a confirmation message saying that everything was resized
    Hope this helps

  • How would I create old, glitchy like effects like these ones?

    Recently, there have been some teasers coming out on Snap-chat for an upcoming video game that feature some creepy, hypnotic, and cool effects. They can be found here:
    Black Ops 2 has been updated with viral marketing for Call of Duty: Black Ops 3 - UPDATE 12 | Charlie INTEL
    And I was wondering if there were any experts on here who would know how to recreate these things in premiere. For instance that overlay over the video, those lines over the video, that make it look almost like its a CRT TV screen being externally filmed. Or the static etc.
    If anyone could link me to other assets that I can use to just mess up video and make it look, I don't know, any type of visual artifacting or 80s/90s video tropes/effects, or even earlier. I'm open to anything. I'm attempting to make this film into a very similar style as those quick teasers.
    Also I do understand that I am limiting things here by making this a premiere thing. But I am a completely lost child trying to land on the moon when it comes to After Effects, so keep this premiere please. I do understand this kind of limits this stuff to mostly overlays or presets or other things that are for the most part already created. But im open to anything.
    Thanks and I hope you guys have some good ideas.
    TJ

    to further encourage your creativity:
    you can also export screenshots of your video and manipulate them, then reimport them and play with blending modes and/or mattes...
    Did you know that you can manipulate and distort image files by opening them in a text or audio editor?
    (for the latter you may have to change the file extension to .txt or another text format... then back to .tiff or jpg)
    Here's some ideas:
    Tutorial on Databending and Glitch Art | Critique Collective
    or for a cheap quick and easy way, throw your jpg screenshots through here:
    image glitch experiment
    And hey, go crazy, be creative, have fun!
    the most versatile and controlled way i know of is still RG Universe...

  • How do I run a simple script that loads an image into photoshop CS - CS4?

    Hello,
    I am at a loss on how to get my simple application to work. I have a small desktop air application that simply opens Photoshop and runs an action. I used switchboard and the application ran great on PC and MAC. However it only worked for CS3, and CS4 not CS or CS2?. Plus the size of switchboard was a bit large for my small app. I am willing to live with that though . I am using Air with Flex and wanted to know if perhaps there is a beter approach? All the application does is open photoshop, loads an image, and runs an action. Can I do this for all versions of Photoshop using switchboard? Can I do this without switchboard and just use javascript. The big issue is the Air app needs to open Photoshop, and most of the examples have me open PS first and then execute a script located in the PS directory. This needs to work outside of the PS directory. Any examples are appreciated.
    I have looked at the following:
    - SwitchBoard : only works for CS3-CS4 (on my tests)
    - PatchPanel: same issue, plus seperate SDKs
    - ExtendScript: requires script to be run from PS not Air

    Hello,
    I am at a loss on how to get my simple application to work. I have a small desktop air application that simply opens Photoshop and runs an action. I used switchboard and the application ran great on PC and MAC. However it only worked for CS3, and CS4 not CS or CS2?. Plus the size of switchboard was a bit large for my small app. I am willing to live with that though . I am using Air with Flex and wanted to know if perhaps there is a beter approach? All the application does is open photoshop, loads an image, and runs an action. Can I do this for all versions of Photoshop using switchboard? Can I do this without switchboard and just use javascript. The big issue is the Air app needs to open Photoshop, and most of the examples have me open PS first and then execute a script located in the PS directory. This needs to work outside of the PS directory. Any examples are appreciated.
    I have looked at the following:
    - SwitchBoard : only works for CS3-CS4 (on my tests)
    - PatchPanel: same issue, plus seperate SDKs
    - ExtendScript: requires script to be run from PS not Air

  • How would I create a continues shape that has a drop shadow?

    I found these photos and would like to know how they where made. I have a concept for a poster that would need a number of shapes with this treatment. TX

    Zeno Bokor wrote:
    upload the files using the camera icon, the Attach Files command is buggy
    Buggy just like the rest of this Jived up forum.

  • How would one Create a "Custom Cursor" that can move BEHIND certain layers?

    In terms of Flash expertise I am on the the doddering divkid level -- but have mananged to create a custom cursor; a hand that I want to move about over most layers but under one specific layer. Currently, no matter the layer order, when published the cursor image jumps straight to the top.
    Is there a property I can imbue in the would-be "top" layer or a way of editing or modifying the custom mouse cursor actionscript that would bring about the desired result?
    Many thanks in advance for your time and expertise...........................peace

    you can easily attach the cursor between the specific layers you want using an empty movieclip and add your cursor movieclip to the emptyMC using the class name. Look at the screenshot and follow the code. it works
    and here is the code:
    import flash.display.MovieClip;
    var whytehand:MovieClip=new cur();
    emptyMC.addChild(whytehand);
    emptyMC.mouseEnabled = false;
    emptyMC.addEventListener(Event.ENTER_FRAME, fl_CustomMouseCursor_5);
    function fl_CustomMouseCursor_5(event:Event)
        emptyMC.x = stage.mouseX;
        emptyMC.y = stage.mouseY;
    Mouse.hide();
    Thatz it!

  • How do I create an iTunes library that is genre specific i.e. Christmas Music

    I have accumulated a large amount of Christmas music in my iTunes library and am running out of space on my hard drive.  I would like to create a library on an external hard drive that contains only my Christmas music and delete it from my computer.  I have successfully created a library that i named "iTunes - Christmas".  On this  HD there were 64 albums that had nothing to do with Christmas music. 
    My question is, how do I get my 758 pieceses Christmas music from my MacBook Pro to my iTunes Library on my external HD, freeing up space on my computer?

    If your description of the scenario, or at least your wording thereof, made sense then my reading your question would suffice.
    You made a library but you have 64 non Christmas albums in it.  I don't know how those ended up in it if you didn't add them yourself.  You make a new library by creating one when starting iTunes with the option key held down.  It makes a blank library.  You add files to it.  If you did it some other way then it would help if you would grace us with that information or else we'll just keep on guessing and give you the wrong answer.  If you want your Christmas albums in it then copy them to the hard drive and drag them to the Christmas library when it is open in iTunes.
    Being polite will get you help from people who know the answers to your question.

  • How can I create a custom step that does nothing but make calls to a dll

    What I'd like to end up with is a Custom step that
    1. Takes several string parameters
    2. Makes several calls to functions in a DLL
    3. Returns and stores error codes returned from the function
    I've been through the KB article "How Do I Make a Custom Step Type".
    This got me about halfway there; while helpful, it didn't provide a
    reference for some of the questions I had, specifically:
    1. What sort of sequence action type should I start with (to use as a template)?
    2. If I start with a "Call Executable", do I need to specify the module when I incorporate the step into the sequence?
    3. How does one pass parameters in and out of a custom step type?
    4. How does the step type report progress/errors to the report?
    Thanks in advance.
    Mike

    Hi,
    To interface to a DLL you will need to use either the DLL Adapter or the CVI Adapter, not the Call Executable adapter.
    Have you been through the Using LabWindowsCVI with TestStand manual. This should answer all your questions, all the chapters are relevant.
    Regards
    Ray Farmer
    Regards
    Ray Farmer

  • How can I create a private app that does not appear in a search on the app store?

    I have an app which I only want certain people to see but no matter what I do it continues to appear when people search for it in the app store. Is there a setting I can use so that it doesn't appear in any search?

    Thanks, it was linked in iPhoto.  After removing it from iPhoto I still got the same message when trying to delete the account from Mail.  After rebooting, I was able to remove the account from Mail.

  • I want to know how to create a new script that can be run in batch proces in Photoshop Element 11 ?

    I want to know how to create a new script that can be run in batch proces in Photoshop Element 11 ?

    Have a look at the menu file/process multiple files. You can choose to add your signature (or the caption) to the image and export the new files.
    If that solution is not flexible enough, consider using the very affordable (12$)  Elements+ add-on which offers a 'meta stamp' script :
    http://elementsplus.net/v5/en/meta-stamp.htm
    Otherwise, have a look at other free and good solutions like Faststone Photoresizer, Xnview...

  • How do I create a simple flare?

    Hello,
    I am a total newbie to AI, so any help/advice would be greatly appreciated.
    I am trying to create a simple flare that will make my light bulb look like it is glowing really bright.  I have been fooling around with the flare tool, but I can not figure out how to change the colors of the flare, etc.
    I want the background of the flare to be transparent so that I can use it on any of my images and the image will show through.  There are 5 different color flares that I need since I have 5 different bulb colors...1 yellow, 1 blue, 1 green, 1 amber, 1 red.  I think that the scale should be about 25% height to 100% width...
    Also, I want the same affect for a lighthouse image that I would like to put together...Like the light from the lighhouse is really bright and a focal
    point.
    Any help?
    thx
    Mike

    There's a multitude of ways to draw flares. But let's explore the Flare Tool a bit more. After all, it's been sitting there occupying primary tool space in the Toolbox for years; might as well use it in the rare times you have occasion for it. To get a sense of the behavior, try the following exercise.
    (The following assumes a CMYK document.):
    Additional tips:
    Like so many Illustrator features, tweaking the settings in the Flare Tool's stupid modal dialog is excruciatingly tedious. Before clicking to create the Flare you are going to adjust, go to the View menu and Hide Edges. Turn on the Preview checkbox in the dialog. Now you'll be able to tell what your adjustments are making are doing, without Illustrator's annoying highlighting of every path in a selected Group. (Absolutely hideous interface. I despise this program!)
    Once you finallyget a Flare that you find useful, drag it and drop it into the Symbols Palette. Then save the Symbol Library somewhere for safe keeping, naming it UsefulFlares. Next time you work with Flares, load the library, even if you need a different Flare. When you manage to create another Flare you find useful, make it a Symbol, and export the Symbol Library again. (Do the same kind of thing with Brushes.)
    Flares stored as Symbols, of course, can also be colorized somewhat by using the Symbol Stainer. That's a quick way to add a little color variance to tiny flares used as stars. But it's rather unpredictable due to the Screen Opacity Mode.
    Don't be afraid to use two different Flares together. Store them together in the same Symbol.
    The highlights of the screw threads on the bulbs are just an ArtBrush made from an expanded radial black-to-white grad, applied off-center to a circle. The ArtBrush is frequently useful for specular lights on cylindrical surfaces. The Brush's colorization mode is set to Hue Shift. (When expanding the grad, remember: There's no need to go nuts with the number of steps. 10 is usually a gracious plenty.) Each screw thread is just a single curved path with two Strokes: A thick black stroke with rounded end caps and an added stroke for the highlight brush.
    JET

  • How would I create buttons states for MCs I am creating abstract MCs

    I am creating a generic website that would have abstract MCs that would load jpg or TXT fields for the user interface to allow for fast updates to the site. The MCs that would make up the user interface would be empty and load things into it using XML or PHP later on. How would I create button states for the user interface MCs.  I started creating a function for every MC button state but I thought there might be a more efficient way.
    would creating a array help in this case?
    and is using URLRequest the way to link to pages with in a movie well the flash movie that is the site it's self?
    /*---------------------------- THE START OF MY ACTION SCRIPT ------------------------------*/
    var waywardLogo_mc:MovieClip = new MovieClip;
    var theCollection_mc:MovieClip = new MovieClip;
    var newsPage_mc:MovieClip = new MovieClip;
    var whatthe#$@!doyouwant!?_mc:MovieClip = new MovieClip;
    /*---------------------------- onOver ------------------------------*/
    waywardLogo_mc.addEventListener(MouseEvent.ROLL_OVER,onOver);
    theCollection_mc.addEventListener(MouseEvent.ROLL_OVER,onOver);
    newspage_mc.addEventListener(MouseEvent.ROLL_OVER,onOver);
    whatthe#$@!doyouwant!?_mc.addEventListener(MouseEvent.ROLL_OVER,onOver);
    /*---------------------------- onOut ------------------------------*/
    waywardLogo_mc.addEventListener(MouseEvent.ROLL_OUT,onOut);
    theCollection_mc.addEventListener(MouseEvent.ROLL_OUT,onOut);
    newspage_mc.addEventListener(MouseEvent.ROLL_OUT,onOut);
    whatthe#$@!doyouwant!?_mc.addEventListener(MouseEvent.ROLL_OUT,onOut);
    /*---------------------------- onClick ------------------------------*/
    waywardLogo_mc.addEventListener(MouseEvent.CLICK,onClick);
    theCollection_mc.addEventListener(MouseEvent.CLICK,onClick);
    newspage_mc.addEventListener(MouseEvent.CLICK,onClick);
    whatthe#$@!doyouwant!?_mc.addEventListener(MouseEvent.CLICK,onClick);
    function onOver(event:MouseEvent):void
    event.target.alpha = .5;
    function onOut(event:MouseEvent):void
    event.target.alpha = 1;
    function onClick(event:MouseEvent):void
    event.target.URLRequest("");
    /*---------------------------- onover, onOut, onClick buttonModes ------------------------------*/
    waywardLogo_mc.buttonMode = true;
    theCollection_mc.buttonMode = true;
    newspage_mc.buttonMode = true;
    whatthe#$@!doyouwant!?_mc.buttonMode = true;

    click insert/new symbol, tick movieclip, assign a name, tick export for actionscript and in the class textfield enter a name (say ButtonClass) and click ok.
    attached to the first frame of your new movieclip, type stop() in the actions panel.  put whatever graphic you want on-stage for your button's up stage.  create another keyframe, label it "over" and put whatever graphic you want for button's over state on-stage.
    in a layer above those graphics, you'll probably want to add a dynamic textfield so each of your buttons can have different text.  assign the textfield and instance name (say tf) and extend its timeline to the last frame of your movieclip button.
    then when you want to create a button, on your timeline you can use:
    var b:ButtonClass=new ButtonClass();  // these two lines need to be entered for each button
    buttonhandlerF(b,someX,someY);
    //-------code between dotted lines only needs to be entered once no matter how many buttons you add --------------------
    function buttonhandlerF(b:ButtonClass,x:Number,y:Number){
    b.addEventListener(MouseEvent.MOUSE_OVER,overF);
    b.addEventListener(MouseEVent.MOUSE_OUT,outF);
    b.x=x
    b.y=y
    addChild(b);
    function overF(e:MouseEvent){
    e.currentTarget.gotoAndStop("over");
    function outF(e:MouseEvent){
    e.currentTarget.gotoAndStop(1);
    //-------code between dotted lines only needs to be entered once --------------------
    // you'll also want to create a click listener and listener function
    the code between the dotted lines is amenable to being added to a ButtonClass.as class file if want to expand your capabilities.

  • How do I create a new Style that can be applied to an object?

    Under the Assets menu there is a tab called “Styles”.  My question is how do I create a new Style that I can apply to an object???  A link to a tutorial or something like that would be useful because I can’t find anything!!!    Thanks in advance for helping me eliminate this frustration!!! 

    KomputerMan.com wrote:
    What I want to do is create a library of styles that are basically pictures of various wood types.
    There are a couple of approaches you could try.
    Clipping paths
    1. Draw the part shape as a closed path.
    2. Position the image of woodgrain above or below the shape where you want it positioned.
    3. Cut
    4. Select the closed path.
    5. Paste Inside.
    See: Using FreeHand MX > Contents > Working with Objects > Working with clipping paths
    Tiled fills
    1. Use autotrace to trace the image of the woodgrain, using plenty of colors.
    Using FreeHand MX > Contents > Using Imported Artwork > Tracing bitmaps > Tracing an image
    2. Group the traced paths (but not the image) and create a tiled fill,
    Using FreeHand MX > Contents > Using Strokes and Fills > Applying attributes to fills > Using tiled fill attributes
    3. Make a style from a tile-filled object
    4. Apply the style to other objects.
    Judy Arndt

  • UCCX 8.5 - How do I create a menu option that overwites a prompt?

    Hi All,
    I'm fairly new to UCCX scripting and have a question about a way to create a menu option that overwrites a prompt.
    Here is the situation, we have only one small call center. There are two scripts in play here, one is their production script. Everythign is working fine with that script. The other is a recording script. The call center supervisors would like to be able to call into the recording script and record a prompt that says something like "All agents will be out today, November 1st, until 2pm on a staff luncheon, please call back at 2pm". This would overwrite the welcome prompt on their production script. As you can see from the language above, the message would be different depending on what was going on that day. I actually have this working quite well.
    The problem is that when they come back from their luncheon, or from whatever they were doing, they want the ability to revert back to the original opening greeting wav file. The way it's set up now, when they get back from lunch they'd have to re-record the whole opening greeting "Thank you for calling XXX, press 1 to be connected to an agent, press 2...".
    It seems like there should be a way, a new menu option in the recording script, that would allow me to revert back to the original recording so they don't need to re-record the opening greeting every time. I've created a new folder in Prompt Managment called "Revert" and placed the orginal opening greeting there. Can anyone give me guidance on what step to insert that would in effect say, if the caller presses 3, copy "Revert/Welcome.wav" to "CallCenter/Welcome.wav"? In this case the "CallCenter" folder contains the production prompts for the CallCenter script.
    Thanks,
    Josh

    Josh,
         I would recommend the following configuration:
              1.) Setup a XML file that has an option called "EarlyClose" or something similar.
              2.) Setup your script with an "IF" that reads in that XML document and looks for "EarlyClose".  If it's set, then play the custom closed message.  If not, then play the normal message that is never overwritten.
         The second part is to create a second script that has an internal only extension.  This would then allow your supervisor to dial in, and put in a PIN.  Once this is done, set have the agent record the greeting.  Then (and only then) set the "EarlyClose" variable in your XML document.  This will prevent the user not getting the new prompt recorded and EarlyClose being set early.  You can also setup the script to play back the prompt and then have the end user validate that everything is working right.  I would recommend reading through the scripting guides as they have some great infomation on this type of thing and example scripts.  I hope this helps you out.
    Thank you,
    Robert W. Rogier -- UCCE TAC Support Engineer
    Cisco, RTP NC.

Maybe you are looking for

  • Windows vista Error response-PLEASE HELP

    Recently purchased a new computer w/Vista. Problem is that I couldn't transfer my songs from my old computer, so decided to use IGADGET to transfer from my IPOD. Error:retrieving the COM CLASS FACTORY for component w/CLSID. Please help if you have an

  • Tempo changes for specific loops

    Is there a way to change the tempo for only a certain loop in a song without changing the tempo of ever part? I've done the trick to make all the loops purple so they can be edited, but when I change the tempo it won't let me simply up the speed of o

  • Passing javascript value to jsp param

    Hi all, I want to be able to pass the return value of function getUrl() to jsp param...Is this a correct way? it's not working.... What should I assign to the value of param? <HTML> <HEAD> </HEAD> <script language="javascript"> function getUrl()     

  • Issue with Getting the file path from InputFile component

    Hi, One of our requirement is like below: I am working on ADF 11g (latest release R1) page. User will select the file and when he/she clicks on the Save button we need to store the file path in the database. In the database file_path is varchar2(300)

  • Copying tables from the pdf file & loosing all table format when pasted into a word document

    I have tables in an Adobe Reader 9.2 file that need to be placed in a word document. When I copy the table and paste it into the word document I loose all table formating and am left w/just text--and, not in the right places, I might add. Help please