• 2024-08-24用C#写一个随机音乐播放器
    form1中namespce里的代码如下publicpartialclassForm1:Form{publicForm1(){InitializeComponent();}privatevoidbutton1_Click(objectsender,EventArgse){stringfolder=textBox1.Text;stringfolderPath
  • 2024-07-07unity编辑器拓展,查找项目中预制体引用的组件或者脚本
    `usingSystem.Collections;usingSystem.Collections.Generic;usingUnityEngine;usingUnityEditor;usingUnityEngine.UI;usingSystem.Reflection;usingSystem;publicclassSearchComponent:EditorWindow{privatestringcomponentName="UnityEngine.
  • 2024-05-23把文件压缩成zip包并设置密码
    引入依赖<!--zip--><dependency><groupId>net.lingala.zip4j</groupId><artifactId>zip4j</artifactId><version>1.3.2</version></dependency>代码p
  • 2024-05-19文件拷贝脚本
    #include<FileConstants.au3>#include<Array.au3>Global$sourceFolder="G:\test_bak"Global$destinationFolder="G:\select"Global$listFilePath="G:\list.txt"Global$logFilePath="G:\search_log.tx
  • 2024-01-19再windows批量处理脚本删除和移动文件
    @echooffsetlocalset"folderPath=D:\projects\cloudsignapp\app\src\main\assets\apps\__UNI__BCD1716\www"ifexist"%folderPath%"(echoDeletingfilesin%folderPath%...del/q"%folderPath%\*.*"for/
  • 2024-01-14Asp.Net怎么上传图片-基础教程
    aspx页面script方法内用于判断用户上传的文件是否为自己要求的格式和展示图片的方法body内定义一个图片框用于预览用户上传的图片一个上传文件的控件一个提交按钮代码如下Script代码:$(function(){$('#uploadImage').on('change',function(){var
  • 2023-07-04C# 上传文件至指定目录,并返回文件路径
     ///<summary>///上传图片并返回文件路径///</summary>///<paramname="file"></param>///<returns></returns>[HttpPost("UploadImage")]publicasync
  • 2023-06-20批量打印文件doc,设置几分,powershell实现
    $folderPath="C:\path\to\folder"$printCopies=3Get-ChildItem-Path$folderPath-Filter*.doc|ForEach-Object{for($i=0;$i-lt$printCopies;$i++){Start-Process-FilePath$_.FullName-VerbPrint}}#一定要指定默认打印机
  • 2023-06-08对图片进行压缩处理
    composerrequireintervention/image<?phpnamespaceapp\api\controller;useIntervention\Image\ImageManagerStaticasImage;classTestextendsBase{publicfunctionindex(){$folderPath='./upload';$files=$this->get
  • 2023-05-10C# .Net Core 合并PDF文件
    使用PdfSharpCorenuget包代码实现usingMicrosoft.AspNetCore.Razor.TagHelpers;usingPdfSharpCore.Pdf;usingPdfSharpCore.Pdf.IO;usingSystem;usingSystem.Collections.Generic;usingSystem.Linq;usingSystem.Text;usingSystem.Threading.Tasks;namespace
  • 2022-11-11开源一段 Mac 批量压缩图片的脚本
    近日处理了一批照片,现在分享一下如何在mac平台进行图片批量处理。0、安装xCode命令行工具,需要确定电脑上已经安装了xCode,如果没有,自己去AppStore里面搜索就看到了。
  • 2022-11-09C++中如何实现创建文件夹
    C++中如何实现创建文件夹:使用system()调用dos命令#include<iostream>usingnamespacestd;intmain(){stringfolderPath="E:\\database\\testFolder";
  • 2022-10-20.Net Core WebApi 控制器自动创建文件夹上传图片
    ///<summary>///异步图片或文件上传///</summary>///<paramname="formFile"></param>///<returns></returns>[Http
  • 2022-09-07C#,拷贝文件到另一个文件夹下,替换文件夹中的文件
    ///<summary>///拷贝文件到另一个文件夹下///</summary>///<paramname="sourceName">新文件路径</param>///<paramname="fo