Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

File input return backslashes and forward slashes #3843

Closed
alexcroox opened this issue Sep 18, 2015 · 3 comments
Closed

File input return backslashes and forward slashes #3843

alexcroox opened this issue Sep 18, 2015 · 3 comments
Labels

Comments

@alexcroox
Copy link

I have a strange issue, 2 versions of Windows 8.1, when I choose a file from a file input element the returned value on one machine is backslashes, the other is forward slashes.

Eg

C:/Program Files (x86)/Steam/

and

C:\Program Files (x86)\Steam\steamappa\common\Arma 3

Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

@ghost
Copy link

ghost commented Sep 26, 2015

Mmmh i know you are steam user than you need to use STeamWorks API with C++ with gyl compiler - I think sure.

Ps: You mean detect to current path like registry? If you have added it registry example HKEY_CURRENT_USER\Software\Valve\Arma3\

Install with npm: npm install winreg from node.js command prompt
than add code var reg = require("winreg");

than you can check it if your game was installed than you need process with exec or what?

If you don't want to choose hard tto path directory of steam.( I have written "than you can check ...."

More info you can visit it: https://www.npmjs.com/package/winreg
I hope my solution helps you...

@Christywl
Copy link
Contributor

The backslashes are used in the returned file path on my Windows 8 with nwjs-sdk-v0.22.3.

@Christywl
Copy link
Contributor

close until there is more information.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants