This site uses cookies for analytics, personalized content and ads. By continuing to browse this site, you agree to this use. Learn More

Skip to main content
Microsoft
Scripting
Scripting
  • Home
    • App Center
    • Azure DevOps
    • Visual Studio
    • Visual Studio Code
    • Visual Studio for Mac
    • Xamarin
    • Azure Artifacts
    • Azure Boards
    • Azure Pipelines
    • Azure Repos
    • Azure Test Plans
    • DevOps
    • Diagnostics
    • Setup
    • C++
    • Java
    • JavaScript
    • Powershell
    • Python
    • Q#
    • Scripting
    • TypeScript
    • Visual Basic
    • Visual C#
    • Visual F#
    • .NET
    • ASP.NET
    • ASP.NET by Scott Hanselman
    • Apps for Windows
    • Bing Dev Center
    • IoT Developer
    • Microsoft Edge Dev
    • Microsoft Azure
    • Office 365 Development
    • OData
    • Revolutions R
    • SQL Server Data Tools

    FileSystemObject Archives | Scripting

    Dr Scripto
    Weekend Scripter: Use PowerShell and Pinvoke to Remove Stubborn Files
    The Scripting GuysThe Scripting GuysOctober 19, 2013Oct 19, 201310/19/13

    Summary: Windows PowerShell MVP, Boe Prox, talks about using Windows PowerShell and Pinvoke to delete locked files.

    Microsoft Scripting Guy, Ed Wilson, is here. Today we have a guest blog post by newly crowned Windows PowerShell MVP, Boe Prox.

    Dr Scripto
    Hey, Scripting Guy! How Can I Remove Duplicate Values From a Pair of Text Files?
    ScriptingGuy1December 14, 2007Dec 14, 200712/14/07

    Hey, Scripting Guy! Question

    Hey, Scripting Guy! I have two text files that contain numbers. I need to write a script that can determine whether a given number exists in both of these text files. If it does, I need to delete that line from each of the two files.

    Dr Scripto
    Hey, Scripting Guy! How Can I Replace Text That Includes Double Quote Marks and a Tab Character?
    ScriptingGuy1December 11, 2007Dec 11, 200712/11/07

    Hey, Scripting Guy! Question

    Hey, Scripting Guy! I read one of your columns on replacing text in a file and I found it very useful. However, I have a somewhat more-complicated need: I want to replace text that includes both double quote marks and a tab character.

    Dr Scripto
    How Can I Copy Selected Columns From a CSV File to an Excel File?
    ScriptingGuy1June 4, 2007Jun 4, 200706/4/07

    Hey, Scripting Guy! Question

    Hey, Scripting Guy! How can I copy selected columns from a CSV file to an Excel file?

    — MdP

    SpacerHey, Scripting Guy! AnswerScript Center

    Hey, MdP. One thing that people always worry about (and rightly so) is that one of these days the Scripting Guys will do something that tears a hole in the space-time continuum.

    Dr Scripto
    How Can I Convert a Tilde-Delimited File to Microsoft Excel Format?
    ScriptingGuy1December 5, 2006Dec 5, 200612/5/06

    Hey, Scripting Guy! Question

    Hey, Scripting Guy! How can I convert a tilde-delimited file to Microsoft Excel format?

    — JN

    SpacerHey, Scripting Guy! AnswerScript Center

    Hey, JN. You know, to tell you the truth we’re beginning to rethink our approach to this column.

    Dr Scripto
    How Can I Extract Information Located Between Two Known Values in a Text File?
    ScriptingGuy1November 14, 2006Nov 14, 200611/14/06

    Hey, Scripting Guy! Question

    Hey, Scripting Guy! In a text file, how can I extract the information that appears between the string HOSTNAME= and a blank space?

    — B

    SpacerHey, Scripting Guy! AnswerScript Center

    Hey,

    Dr Scripto
    How Can I Clear the Contents of Any File Dropped on My Script Icon?
    ScriptingGuy1October 17, 2006Oct 17, 200610/17/06

    Hey, Scripting Guy! Question

    Hey, Scripting Guy! How can I write a script that will clear the contents of any file that I drag and drop on the script icon?

    — SN

    SpacerHey, Scripting Guy! AnswerScript Center

    Hey,

    Dr Scripto
    How Can I Remove Double Double Quotes From a Text File?
    ScriptingGuy1August 15, 2006Aug 15, 200608/15/06

    Hey, Scripting Guy! Question

    Hey, Scripting Guy! I have a comma-separated values file that has data similar to this: data1″,””data2″”,”data3″,””data4″”. As you can see, some of the items are enclosed by two sets of double quote marks (like “”data2″”).

    Dr Scripto
    How Can I Move the Oldest File in a Folder to a Different Folder?
    ScriptingGuy1July 26, 2006Jul 26, 200607/26/06

    Hey, Scripting Guy! Question

    Hey, Scripting Guy! How can I move the oldest file in the folder C:\Upload to C:\Download?

    — DD

    SpacerHey, Scripting Guy! AnswerScript Center

    Hey, DD. Funny you should mention the word “oldest.” The Scripting Guy who writes this column recently attended a family reunion and,

    Dr Scripto
    How Can I Get a Script to Delete Itself?
    ScriptingGuy1May 24, 2006May 24, 200605/24/06

    Hey, Scripting Guy! Question

    Hey, Scripting Guy! I have a script for installing a printer that I give to my end users. When the script finishes, I’d like it to be able to delete itself. How can I get a script to delete itself?

    • 1
    • of
    • 3
    • 
    Relevant Links

    Scripting Forums

    PowerShell Forums

    PowerShell on TechCommunity

    PowerShell.org – Community owned resources for PowerShell

    Top bloggers
    The Scripting Guys

    The Scripting Guys

    ScriptingGuy1

    mredwilson

    mredwilson

    CraigLieb

    I_am_mr_ed

    Twitter Feed

    Tweets by The Scripting Guys

    Stay informed

    What's new

    • NEW Surface Pro 6
    • NEW Surface Laptop 2
    • NEW Surface Go
    • Xbox One X
    • Xbox One S
    • VR & mixed reality
    • Windows 10 apps
    • Office apps

    Store & Support

    • Account profile
    • Download Center
    • Sales & support
    • Returns
    • Order tracking
    • Store locations
    • Support
    • Buy online, pick up in store

    Education

    • Microsoft in education
    • Office for students
    • Office 365 for schools
    • Deals for students & parents
    • Microsoft Azure in education

    Enterprise

    • Microsoft Azure
    • Microsoft Industry
    • Data platform
    • Find a solution provider
    • Microsoft partner resources
    • Microsoft AppSource
    • Health
    • Financial services

    Developer

    • Microsoft Visual Studio
    • Windows Dev Center
    • Developer Network
    • TechNet
    • Microsoft developer program
    • Channel 9
    • Office Dev Center
    • Microsoft Garage

    Company

    • Careers
    • About Microsoft
    • Company news
    • Privacy at Microsoft
    • Investors
    • Diversity and inclusion
    • Accessibility
    • Security
    English (United States)
    • Sitemap
    • Contact Microsoft
    • Privacy & cookies
    • Terms of use
    • Trademarks
    • Safety & eco
    • About our ads
    • © Microsoft 2019