Go Back   FileForums > Game Backup > PC Games > PC Games - CD/DVD Conversions > Conversion Tutorials

Reply
 
Thread Tools Display Modes
  #1  
Old 11-10-2015, 21:43
DarkSoul19 DarkSoul19 is offline
Registered User
 
Join Date: Sep 2015
Location: Australia
Posts: 18
Thanks: 12
Thanked 21 Times in 6 Posts
DarkSoul19 is on a distinguished road
Bat script installer problem -SOLVED -

UPDATE: I :SOLVED: my Problem

Code:
 @echo off
setlocal

set "psCommand="(new-object -COM 'Shell.Application')^
.BrowseForFolder(0,'PLEASE SELECT A LOCATION TO INSTALL GAME TOO.',0,0).self.path""

for /f "usebackq delims=" %%I in (`powershell %psCommand%`) do set "folder=%%I"

setlocal enabledelayedexpansion
echo You chose !folder!
endlocal
pause
It needs Powershell or .Net installed on host, .Net is pretty standard these days on Windows, So should work without problems



OLD PROBLEM :SOLVED:
Hey I'm writing my bat script to install a game and want the user to select where they wish to install the game
I can do this with the input syntax /p %input%
But I don't really want them to have to type in the destination, is there a way or any known program that can open a file browser and return the result as a %input% I can use in my bat
If so please share as I really want this feature

Last edited by DarkSoul19; 13-10-2015 at 05:01. Reason: solved problem
Reply With Quote
Sponsored Links
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
altef_4's installer altef_4 Conversion Tutorials 244 24-05-2024 23:20
Blackbox Inno Setup Script Kurutucu Conversion Tutorials 1190 18-08-2019 23:43
Tutorial using CI 8.0.0 yener90 Conversion Tutorials 424 21-10-2014 10:49
Inno Script problem (Duplicate Identifier 'INITIALIZEWIZARD') [SOLVED] gabrimor Software 2 23-10-2013 12:33
dvd playing problem... themis_t CD/DVD Software & Utilities 6 20-10-2004 14:44



All times are GMT -7. The time now is 11:31.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Copyright 2000-2020, FileForums @ https://fileforums.com