Skip to content
View in the app

A better way to browse. Learn more.

MSFN

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

i want to create a program and i need help

Featured Replies

hi, i don't know if i'm writing in right section, but i need help.

first of all i know how create a program that copies all needed files to some place i want (with installshield) but then i face up some problems:

first of all i have a .bat file that should be launched when i install the program and inside that file a have many lines with this line

"I386 source"
which i want change during my program installation, something like this:

i want to locate windows source I386 folder and i want that "I386 source" would be changed to it, for egzample

from this

"I386 source"

to this

E:\Atomix\XP\XP\I386

insise that .bat file (maybe there is an easier way).

how could i do that? :}:huh::unsure:

Edited by maniaq

copy and paste these lines into a file called source.bat:

@ECHO off

IF NOT [%1]==[] goto start

ECHO.
ECHO no command line argument passed.
ECHO.

GOTO :eof

:start

ECHO argument passed = %1

after that if for instance you ran source.bat d:\i386 the %1 variable would equal d:\i386, try the example for yourself.

you can also set your own variables within the .bat code using set.

for instance:

set test=this is a test

later in your code %test% would equal this is a test

Edited by ophiel

@ophiel > even though that will work im still curious if someone has a good tip for replacing lines inside a bat or txt file for that matter :)

i don't understand why you would want to replace a line in a batch script. it would require patching the file and kind of negates the simplicity of a batch file.

i sometimes have a batch file create another batch file via echo > file.txt, perhaps that would be a better solution than trying to patch an existing script?

  • Author
copy and paste these lines into a file called source.bat:

@ECHO off

IF NOT [%1]==[] goto start

ECHO.
ECHO no command line argument passed.
ECHO.

GOTO :eof

:start

ECHO argument passed = %1

after that if for instance you ran source.bat d:\i386 the %1 variable would equal d:\i386, try the example for yourself.

you can also set your own variables within the .bat code using set.

for instance:

set test=this is a test

later in your code %test% would equal this is a test

thanks i have tested and it worked :lol:

  • Author

the next problem that i'm faced up is i don't know how to call cmd automatically when i extract files...

first when i add files (included a .bat file) to sfx archive i select what file to run after extract and here i stop...

i want to add a line for egzample "source.bat d:\i386" in command promt (when the files are beeing extracted). the reason i ask is because win xp source folder always changes. so is there any way i could do that? tnx :P

instead of making a self-extracting archive, i would recommend using makecab to create a .cab archive of your files.

then afterwards you would use a batch script like this to decompress:

@echo off
expand myfiles.cab %1

if the script was named filecopy.bat, you would call it like this: filecopy.bat d:\i386

note: expand and makecab are microsoft utilities that come with xp

Create an account or sign in to comment

Recently Browsing 0

  • No registered users viewing this page.

Account

Navigation

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.