Jump to content

Command/batch File Help


Recommended Posts

Posted

I want to reset the date to certain date when we are run the application. And after some time It should set it back to current date.

deeniki command lo date MM\DD\YYYY isthe vastundi... kaani naaku batch file laa kaavali.

neenu oka software use chestunna, adi license expire ayipoyindi... every time ade start chese mundu time set cheyyalsi vastundi...

so daaniki solution kaavali *<:( *<:(

Q ardam kaakapothe thittakandi s%H# s%H#

Posted

ardhamaindi le...aa software use cheyyali ante date back ki move chesi...software open chesaka malli current date ki set chesi use cheskovachu..anthena?

I've seen this for SAS software...dont know which softtware u r asking abt

Posted

[quote name='deals2buy' timestamp='1355787836' post='1302969461']
ardhamaindi le...aa software use cheyyali ante date back ki move chesi...software open chesaka malli current date ki set chesi use cheskovachu..anthena?

I've seen this for SAS software...dont know which softtware u r asking abt
[/quote]

SAP di baa adi LICENSE KONALEM GAAA...

idi 3-4 lines code anthe.. ippude ee thought vachindi ila rasthe elavutudani

Posted

[quote name='lolliman' timestamp='1355787936' post='1302969473']

SAP di baa adi LICENSE KONALEM GAAA...

idi 3-4 lines code anthe.. ippude ee thought vachindi ila rasthe elavutudani
[/quote]


ee SAP SAS anni okate baapatha? @3$%

emo naaku idea ledu sSa_j@il

Posted

[quote name='deals2buy' timestamp='1355787987' post='1302969480']


ee SAP SAS anni okate baapatha? @3$%

emo naaku idea ledu sSa_j@il
[/quote]

ade kadaaa??

Posted

ltt

Posted

[quote name='deals2buy' timestamp='1355787987' post='1302969480']


ee SAP SAS anni okate baapatha? @3$%

emo naaku idea ledu sSa_j@il
[/quote]

inka evina trail applications ki kooda use chesukovachu gaaa :#< :#<

Posted

[quote name='lolliman' timestamp='1355788399' post='1302969515']

inka evina trail applications ki kooda use chesukovachu gaaa :#< :#<
[/quote]
ya chesukovachu anukunta...google lo dorakaleda?

Posted

[color=#333333][font=Arial, Helvetica, sans-serif][size=3][background=rgb(245, 245, 245)]Here is the code(I named my batch file run.bat):[/background][/size][/font][/color]

[color=#333333][font=Arial, Helvetica, sans-serif][size=3][background=rgb(245, 245, 245)]REM Store systems current time into BEFOREDATE var as mm-dd-yy[/background][/size][/font][/color]
[color=#333333][font=Arial, Helvetica, sans-serif][size=3][background=rgb(245, 245, 245)]SET BEFOREDATE=%date:~4,2%-%date:~7,2%-%date:~10,4%[/background][/size][/font][/color]

[color=#333333][font=Arial, Helvetica, sans-serif][size=3][background=rgb(245, 245, 245)]REM Set the below date to date you wish to roll your system date back to[/background][/size][/font][/color]
[color=#333333][font=Arial, Helvetica, sans-serif][size=3][background=rgb(245, 245, 245)]DATE 01-03-07[/background][/size][/font][/color]

[color=#333333][font=Arial, Helvetica, sans-serif][size=3][background=rgb(245, 245, 245)]REM First param of START command needs empty double quotes[/background][/size][/font][/color]
[color=#333333][font=Arial, Helvetica, sans-serif][size=3][background=rgb(245, 245, 245)]REM Second param of Start command should be absolute path to application[/background][/size][/font][/color]
[color=#333333][font=Arial, Helvetica, sans-serif][size=3][background=rgb(245, 245, 245)]REM IE "C:\Program Files(x86)\directory\filename.exe"[/background][/size][/font][/color]
[color=#333333][font=Arial, Helvetica, sans-serif][size=3][background=rgb(245, 245, 245)]START "" "filename.exe"[/background][/size][/font][/color]

[color=#333333][font=Arial, Helvetica, sans-serif][size=3][background=rgb(245, 245, 245)]REM Cause a delay to allow application to load[/background][/size][/font][/color]
[color=#333333][font=Arial, Helvetica, sans-serif][size=3][background=rgb(245, 245, 245)]PING -n 10 127.0.0.1 > NUL 2>&1[/background][/size][/font][/color]

[color=#333333][font=Arial, Helvetica, sans-serif][size=3][background=rgb(245, 245, 245)]REM Set system date back to current date[/background][/size][/font][/color]
[color=#333333][font=Arial, Helvetica, sans-serif][size=3][background=rgb(245, 245, 245)]DATE %BEFOREDATE%[/background][/size][/font][/color]

[color=#333333][font=Arial, Helvetica, sans-serif][size=3][background=rgb(245, 245, 245)]To use this script you will want to:[/background][/size][/font][/color]
[color=#333333][font=Arial, Helvetica, sans-serif][size=3][background=rgb(245, 245, 245)]-Create the batch file and place it into the applications directory.[/background][/size][/font][/color]
[color=#333333][font=Arial, Helvetica, sans-serif][size=3][background=rgb(245, 245, 245)]-Create a shortcut to this batch file and place it on your desktop.[/background][/size][/font][/color]
[color=#333333][font=Arial, Helvetica, sans-serif][size=3][background=rgb(245, 245, 245)]-Right click the batch files shortcut and select properties.[/background][/size][/font][/color]
[color=#333333][font=Arial, Helvetica, sans-serif][size=3][background=rgb(245, 245, 245)]-On the shortcut tab click the advanced button.[/background][/size][/font][/color]
[color=#333333][font=Arial, Helvetica, sans-serif][size=3][background=rgb(245, 245, 245)]-Place a check mark in the run as administrator check box.[/background][/size][/font][/color]
[color=#333333][font=Arial, Helvetica, sans-serif][size=3][background=rgb(245, 245, 245)]-Click OK to close the advanced properties window.[/background][/size][/font][/color]
[color=#333333][font=Arial, Helvetica, sans-serif][size=3][background=rgb(245, 245, 245)]-Click OK to close the shortcuts properties window. [/background][/size][/font][/color]

  • Upvote 1
Posted

[quote name='Alexander' timestamp='1355789291' post='1302969598']
[color=#333333][font=Arial, Helvetica, sans-serif][size=3][background=rgb(245, 245, 245)]Here is the code(I named my batch file run.bat):[/background][/size][/font][/color]

[color=#333333][font=Arial, Helvetica, sans-serif][size=3][background=rgb(245, 245, 245)]REM Store systems current time into BEFOREDATE var as mm-dd-yy[/background][/size][/font][/color]
[color=#333333][font=Arial, Helvetica, sans-serif][size=3][background=rgb(245, 245, 245)]SET BEFOREDATE=%date:~4,2%-%date:~7,2%-%date:~10,4%[/background][/size][/font][/color]

[color=#333333][font=Arial, Helvetica, sans-serif][size=3][background=rgb(245, 245, 245)]REM Set the below date to date you wish to roll your system date back to[/background][/size][/font][/color]
[color=#333333][font=Arial, Helvetica, sans-serif][size=3][background=rgb(245, 245, 245)]DATE 01-03-07[/background][/size][/font][/color]

[color=#333333][font=Arial, Helvetica, sans-serif][size=3][background=rgb(245, 245, 245)]REM First param of START command needs empty double quotes[/background][/size][/font][/color]
[color=#333333][font=Arial, Helvetica, sans-serif][size=3][background=rgb(245, 245, 245)]REM Second param of Start command should be absolute path to application[/background][/size][/font][/color]
[color=#333333][font=Arial, Helvetica, sans-serif][size=3][background=rgb(245, 245, 245)]REM IE "C:\Program Files(x86)\directory\filename.exe"[/background][/size][/font][/color]
[color=#333333][font=Arial, Helvetica, sans-serif][size=3][background=rgb(245, 245, 245)]START "" "filename.exe"[/background][/size][/font][/color]

[color=#333333][font=Arial, Helvetica, sans-serif][size=3][background=rgb(245, 245, 245)]REM Cause a delay to allow application to load[/background][/size][/font][/color]
[color=#333333][font=Arial, Helvetica, sans-serif][size=3][background=rgb(245, 245, 245)]PING -n 10 127.0.0.1 > NUL 2>&1[/background][/size][/font][/color]

[color=#333333][font=Arial, Helvetica, sans-serif][size=3][background=rgb(245, 245, 245)]REM Set system date back to current date[/background][/size][/font][/color]
[color=#333333][font=Arial, Helvetica, sans-serif][size=3][background=rgb(245, 245, 245)]DATE %BEFOREDATE%[/background][/size][/font][/color]

[color=#333333][font=Arial, Helvetica, sans-serif][size=3][background=rgb(245, 245, 245)]To use this script you will want to:[/background][/size][/font][/color]
[color=#333333][font=Arial, Helvetica, sans-serif][size=3][background=rgb(245, 245, 245)]-Create the batch file and place it into the applications directory.[/background][/size][/font][/color]
[color=#333333][font=Arial, Helvetica, sans-serif][size=3][background=rgb(245, 245, 245)]-Create a shortcut to this batch file and place it on your desktop.[/background][/size][/font][/color]
[color=#333333][font=Arial, Helvetica, sans-serif][size=3][background=rgb(245, 245, 245)]-Right click the batch files shortcut and select properties.[/background][/size][/font][/color]
[color=#333333][font=Arial, Helvetica, sans-serif][size=3][background=rgb(245, 245, 245)]-On the shortcut tab click the advanced button.[/background][/size][/font][/color]
[color=#333333][font=Arial, Helvetica, sans-serif][size=3][background=rgb(245, 245, 245)]-Place a check mark in the run as administrator check box.[/background][/size][/font][/color]
[color=#333333][font=Arial, Helvetica, sans-serif][size=3][background=rgb(245, 245, 245)]-Click OK to close the advanced properties window.[/background][/size][/font][/color]
[color=#333333][font=Arial, Helvetica, sans-serif][size=3][background=rgb(245, 245, 245)]-Click OK to close the shortcuts properties window. [/background][/size][/font][/color]
[/quote]


baa nuvvu super, it will work #4H# #4H#

CITI_y@R

Posted

[quote name='lolliman' timestamp='1355790116' post='1302969682']


baa nuvvu super, it will work #4H# #4H#

CITI_y@R
[/quote]
S%Hi

Posted

[quote name='Alexander' timestamp='1355790207' post='1302969691']
S%Hi
[/quote]

idi XP lo work avuddi anukuntaa... windows 7 lo administrator privileges ani aduguthundi... inka deeniki additional gaa inkakoncham code kaavali.... let me see... thanks baaa S%Hi S%Hi

Posted

[quote name='lolliman' timestamp='1355791029' post='1302969782']
idi XP lo work avuddi anukuntaa... windows 7 lo administrator privileges ani aduguthundi... inka deeniki additional gaa inkakoncham code kaavali.... let me see... thanks baaa S%Hi S%Hi
[/quote]

if i am not wrong ni system ki nuvu adiminisrator vey kada........ if not poyi groups and users lo nuvu unavo chusuko..........

Posted

[quote name='ghazni' timestamp='1355791353' post='1302969819']
if i am not wrong ni system ki nuvu adiminisrator vey kada........ if not poyi groups and users lo nuvu unavo chusuko..........
[/quote]

group lo choosthe nenu administrator ga vunna kaani every time run as admin ane option vastundi mari sCo_^Y sCo_^Y

×
×
  • Create New...