Jump to content

Cmd Ile Exe Dosyasını Yönetici Olarak çalıştırmak.


Recommended Posts

@ECHO off &title WanDrive 6.6 Kur
SETLOCAL ENABLEEXTENSIONS ENABLEDELAYEDEXPANSION
FOR /f "tokens=1,2* delims=." %%a IN ('ver') DO (
SET WVer=%%a
SET WVer=!WVer:~-1!
SET WVer=!WVer!.%%b.%%c
SET WVer=!WVer:]=!
)
IF DEFINED ProgramFiles(x86) (
SET OSBit=x64
) ELSE (
SET OSBit=x86
)
ECHO %WVer% %OSBit%
@if %OSBit%==x86 set pro_arch_location=x86\
@if %WVer%==5.1.2600 set WVer=XP\WanDrv6(WinXP).exe
@if %WVer%==6.0.6002 set WVer=7\WanDrv6(Win7).exe
@if %WVer%==6.1.7600 set WVer=7\WanDrv6(Win7).exe
@if %WVer%==6.2.9200 set WVer=10\WanDrv6(Win10).exe
@if %WVer%==0.0.10586 set WVer=10\WanDrv6(Win10).exe
echo %pro_arch_location%%WVer%
start %pro_arch_location%%WVer%

böyle bişey düzenledim daha kısa olabilirdi ama uğraşmak istemedim dahada geliştirilebilir

Edited by FeritEtemSinBin
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...