# Windows - Double-click or run:
setup.bat
# Windows PowerShell:
.\setup.ps1
# macOS/Linux:
chmod +x setup.sh && ./setup.shpip install pyperclip# Copy all .cs, .md, .py files in current directory
python copy.cs.md.py.py
# Copy all .js, .ts, .json files
python copy.js.ts.json.py
# Copy all .html, .css files
python copy.html.css.py# Exclude single folder
python copy.cs.md.py.py --exclude test
# Exclude multiple folders
python copy.cs.md.py.py --exclude test --exclude docs
# Short flag
python copy.cs.md.py.py -e node_modules -e dist -e build
# Common exclusions for web projects
python copy.js.ts.py --exclude node_modules --exclude dist --exclude .next
# Common exclusions for .NET projects
python copy.cs.py --exclude bin --exclude obj --exclude packages--help, -h Show help message
--exclude PATH, -e PATH Exclude a folder (can use multiple times)The script name determines which extensions to copy:
copy.{extension1}.{extension2}.py
Examples:
copy.cs.md.py.py → Copies .cs, .md, .py files
copy.js.ts.jsx.tsx.py → Copies .js, .ts, .jsx, .tsx files
copy.html.css.js.py → Copies .html, .css, .js files
These folders are always ignored automatically:
.git,.vs,.idea(Version control & IDEs)Library,Temp,obj,Builds(Build artifacts)__pycache__,node_modules(Package folders)
.DS_Store(macOS)Thumbs.db(Windows)
Files are copied to clipboard as Markdown with syntax highlighting:
## File: `src/main.cs`
```csharp
public class Program {
// code here
}# Projectsrc/main.cs
README.md
Summary: 2 files | 150 lines
## Platform-Specific
### Windows
```cmd
# Direct Python execution (recommended)
python copy.cs.md.py.py
# Using batch file
run_copy.bat
# With exclusions
run_copy_no_tests.bat
# PowerShell bypass
powershell -ExecutionPolicy Bypass -File copy.cs.md.py.py
# Standard execution
python3 copy.cs.md.py.py
# Make executable (one-time)
chmod +x copy.cs.md.py.py
./copy.cs.md.py.pypython copy.cs.md.py.py --exclude test --exclude docs
# Paste into ChatGPT, Claude, etc.python copy.cs.md.py.py --exclude node_modules
# Paste into review tool or emailpython copy.md.py # Only markdown files
# Paste into documentationpython copy.cs.js.py --exclude dist
# Paste into notes or backup system# Windows - Check PATH
python --version
# macOS/Linux - Use python3
python3 --versionpip install pyperclip
# or
python -m pip install pyperclip- Close clipboard managers
- Try running as administrator (Windows)
- Check if file matched: Look for "Added: filename" in output
Check:
- File extension matches script name
- Folder not in auto-ignore list
- File not excluded with
--exclude
- Rename script to match desired extensions
- Verify files exist in directory
- Check if all folders are excluded
# Always exclude large folders
python copy.cs.md.py.py -e node_modules -e dist -e build
# Don't run in root directory
cd /specific/project && python copy.cs.md.py.py
# Exclude binary/media folders
python copy.cs.md.py.py -e assets -e images -e videos# Run test suite
python test_copy.py
# Should output: OK (skipped=1) on macOS/Linux
# Should output: OK on Windows| File | Purpose |
|---|---|
copy.cs.md.py.py |
Main script (rename as needed) |
test_copy.py |
Test suite |
run_copy.bat |
Windows launcher |
run_copy_no_tests.bat |
Windows launcher with exclusions |
requirements.txt |
Python dependencies |
- README.md - Full documentation
- WINDOWS_SETUP.md - Windows-specific guide
- TESTING.md - Testing guide
- CHANGELOG.md - Version history
- Check output for error messages
- Run tests:
python test_copy.py - See WINDOWS_SETUP.md for Windows issues
- Open GitHub issue with error details
python copy.cs.csproj.py --exclude bin --exclude objpython copy.js.ts.tsx.jsx.py --exclude node_modules --exclude distpython copy.py.txt.py --exclude __pycache__ --exclude venvpython copy.html.css.js.py --exclude node_modulespython copy.cs.js.html.css.py -e node_modules -e bin -e obj -e distPro Tip: Create different named copies for different purposes:
copy.cs.py- Only C# filescopy.js.ts.py- Only JS/TS filescopy.md.py- Only docscopy.full.cs.js.html.css.py- Everything