bristi / swinlnk Goto Github PK
View Code? Open in Web Editor NEWLicense: MIT License
License: MIT License
to recreate the issue I used this:
`from swinlnk.swinlnk import SWinLnk
target = '\\CFTBG-FS01\CUSTOMERS\DAY\_Final Docs\CO-0000131_1 docs'
shortcut = 'C:\BACKUP\console\customers.lnk'
swl = SWinLnk()
swl.create_lnk(target, shortcut)`
if I check the properties of the created shortcut the target is:
"\Cftbg-fs01\customers\DAY_Final Doc\CO-0000131_1 docs"
which is missing an "s"
a work around that I found was putting an space after "Docs" or an extra s Ex. "Docss"
any ideas?
At least in Windows, in shortcut you can select not only target path in quotes, but also execution arguments right after target
like "path/to/python" -m "path\to\myscript"
.
At this moment, such behaviour could be achieved using inner quotes (link_target=f'{python_path}" -m "{my_script_path}'
)
This looks like hack. Can you add additional parameter for such purpose?
Unfortunately .lnk files created with swinlnk do not keep references if the target file is renamed or moved as it does for .lnk files created from the windows file browser.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.